[FieldTrip] Independent component analysis (ICA) to remove EOG artifacts

Schoffelen, J.M. (Jan Mathijs) janmathijs.schoffelen at donders.ru.nl
Wed May 10 08:55:19 CEST 2023


Hi Erfan,

To add to Elif’s excellent suggestions: the below error could also be due to the fact that there is something wrong with your Matlab path. Please consult the frieldtrip website in order to get this right.

Good luck,
Jan-Mathijs


On 9 May 2023, at 20:56, Erfan Vi via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

Hi Elif,

I get the following error while using the ft_databrowse function:

Undefined function 'ft_colormap' for input arguments of type 'char'.

Error in ft_databrowser (line 686)
    cfg.colormap = ft_colormap(cfg.colormap);

Do you know how to fix it?

Thank you for your attention to my problem.

On Sun, May 7, 2023 at 1:48 PM Elif Tülay via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:
Hi Erfan,

Maybe I can suggest a way to try until a technical answer comes from Jan. If you are familiar with your data, you can detect the bad channel by visual inspection using ft_databrowse. After that, while you are running ICA, you can exclude the bad channel with the following format (you can modify it according to your data)

     cfg.channel = {'all','-Cz'} %just an example for excluding Cz from all channels


I hope it works for you

Best

On Sun, May 7, 2023 at 12:41 PM Erfan Vi via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:
Hi Jan,

Thank you for your clear response. How can I determine the name of this bad channel which is recognizable in the forwarded image? I am new to FildTrip sorry for the basic questions.

Erfan-Vajdi

On Thu, May 4, 2023 at 11:01 AM Schoffelen, J.M. (Jan Mathijs) via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:
Hi Erfan,

These results look like a classical example of a bad channel. If you remove this channel from the data prior to running the IC decomposition, results should look more sensible.

Good luck,
Jan-Mathijs


On 29 Apr 2023, at 11:04, Erfan Vi via fieldtrip <fieldtrip at science.ru.nl<mailto:fieldtrip at science.ru.nl>> wrote:

Dear FieldTrip users,
I have used an example script in the
FieldTrip site to remove EOG artifacts for MEG data example located at https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/example/ica_eog/__;!!HJOPV4FYYWzcc1jazlU!5_c4teSyU60O8po-U-p-jsUE8IhxH3JIuhQxCaFPatN8ySAi2KsFC7b60BtAh8LuzRNcxfxOx4A1ni3l5M4ZxuWbnJeBf_tRYvWtrQ$ <https://urldefense.com/v3/__https://www.fieldtriptoolbox.org/example/ica_eog/__;!!HJOPV4FYYWzcc1jazlU!8RVcT7vt9rwPHgbzvPH5IFv1KhvliFf9uclvd7fGeD9y3jTEiNhEtGq3rVOa03BcW9lZ3qoBc324h57I8PtCyKZbyA$> using ICA. But I got poor results as below image. Any one can help me?
Thank you,

<ICA.jpg>
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!_ooB63Attaf_OPdbDgrNPfoGjchpelM0P-JWMZ9lLTFVonbRSSbBpMb81R8FfvnjsUfICySBBmg0AjqLZ8PIy94KJuc3pStsIzKcgg$

_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!5_c4teSyU60O8po-U-p-jsUE8IhxH3JIuhQxCaFPatN8ySAi2KsFC7b60BtAh8LuzRNcxfxOx4A1ni3l5M4ZxuWbnJeBf_u0B-m_Wg$ <https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!4R773UOYOcin6tMZO6P8DVlwEoIVVdQiPW4NcLrS8aUY6JORVUwBCQaELONuwMZnlqOPhvaATA2uroUdlj6TQKts1Q$>
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!5_c4teSyU60O8po-U-p-jsUE8IhxH3JIuhQxCaFPatN8ySAi2KsFC7b60BtAh8LuzRNcxfxOx4A1ni3l5M4ZxuWbnJeBf_u0B-m_Wg$ <https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!78wfaL8guG-ERDfcMtJlfsMlm-2kAF65V4Nw6DWLMrhVqorpaATt5nUut9_x0qKtt2ofhlfC7OxWkMU2NYLJJgDR4g$>
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!5_c4teSyU60O8po-U-p-jsUE8IhxH3JIuhQxCaFPatN8ySAi2KsFC7b60BtAh8LuzRNcxfxOx4A1ni3l5M4ZxuWbnJeBf_u0B-m_Wg$ <https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!4aDSeO_wQ2IlhjEGwnD5NENcLttDjKL8Jd5NtOzxIsyJEt-toB8Tub8bIrizroTGcI5IOELHjqB_CBlxmOuo6G8tig$>
_______________________________________________
fieldtrip mailing list
https://mailman.science.ru.nl/mailman/listinfo/fieldtrip
https://urldefense.com/v3/__https://doi.org/10.1371/journal.pcbi.1002202__;!!HJOPV4FYYWzcc1jazlU!-bRAl6E74efF78vDRdU9LN9dxcmfTYjeDhe7hQUw29lXcGVBmDpj-Y4fKGq7BNQ-ld9UnI6dW9JftPbgZI56JlnWqg9vLZ9X8zKsOQ$

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20230510/fd68aa37/attachment-0001.htm>


More information about the fieldtrip mailing list