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

Erfan Vi erfan1994vi at gmail.com
Tue May 9 20:56:15 CEST 2023


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> 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> 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> 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> 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!4aDSeO_wQ2IlhjEGwnD5NENcLttDjKL8Jd5NtOzxIsyJEt-toB8Tub8bIrizroTGcI5IOELHjqB_CBlxmOt_GY0Byg$ 
>>> <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!4aDSeO_wQ2IlhjEGwnD5NENcLttDjKL8Jd5NtOzxIsyJEt-toB8Tub8bIrizroTGcI5IOELHjqB_CBlxmOuo6G8tig$ 
>>> <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!4aDSeO_wQ2IlhjEGwnD5NENcLttDjKL8Jd5NtOzxIsyJEt-toB8Tub8bIrizroTGcI5IOELHjqB_CBlxmOuo6G8tig$ 
>> <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!4aDSeO_wQ2IlhjEGwnD5NENcLttDjKL8Jd5NtOzxIsyJEt-toB8Tub8bIrizroTGcI5IOELHjqB_CBlxmOuo6G8tig$ 
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20230509/173850c2/attachment.htm>


More information about the fieldtrip mailing list