[FieldTrip] Re-reference data with EOG and heart electrodes
STEPHAN MORATTI
smoratti at psi.ucm.es
Wed Jul 2 07:55:54 CEST 2025
Dear Jasmine,
It depends on what you want to do. You can also read your EEG data
specifying cfg.channel = 'EEG' and it will only read your EEG channels and
you dont have to care about the EOG and ECG channel during re-referencing.
Normally, EOG and EKG channels are bipolar channels, that means that you
have to reference them as a difference between them. Please consult the
fieldtrip webpages on how to implement that. It should be straightforward.
Best,
Stephan
El mar, 1 jul 2025 a las 11:41, Jasmine Pani via fieldtrip (<
fieldtrip at science.ru.nl>) escribió:
> Thank you so much for the quick reply.
> Given that:
> cfg = [];
> cfg.reref = 'yes';
> cfg.refmethod = 'avg';
> cfg.refchannel = {'EEG','-EOG,','-EKG'};
>
> then:
> data = ft_preprocessing(cfg);
>
> and what about the EOG and EKG channel? do I need to re-reference them to
> themselves an then append them back to the processed EEG data? or it's not
> necessary?
>
> Thanks,
> Jasmine
>
> Il giorno mar 1 lug 2025 alle ore 11:22 STEPHAN MORATTI via fieldtrip <
> fieldtrip at science.ru.nl> ha scritto:
>
>> Dear Jasmine,
>>
>> Of course you should take care that your EOG and ECG channels are not
>> included during re-referencing to average. Normally, your EOG and ECG
>> channels should be defined as those and not figure as EEG channel type.
>> This depends on your set up when you record. If so, the following should do:
>>
>> cfg = [];
>> cfg.reref = 'yes';
>> cfg.refmethod = 'avg';
>> cfg.refchannel = {'EEG'};
>>
>> If your ECG and EOG channels are not defined as different channel type
>> (let's assume they are also defined as EEG channels and you have used TP9
>> and TP10 as ECG and F2 and F3 as EOG channels), the the following should do:
>>
>> cfg = [];
>> cfg.reref = 'yes';
>> cfg.refmethod = 'avg';
>> cfg.refchannel = {'EEG','-TP9,','-TP10','-F2','-F3'};
>>
>> Best,
>>
>> Stephan
>>
>>
>> El lun, 30 jun 2025 a las 14:49, Jasmine Pani via fieldtrip (<
>> fieldtrip at science.ru.nl>) escribió:
>>
>>> Hello all,
>>>
>>> I'm super new to fieldtrip and I'm currently trying to write a script to
>>> analyze a single subject.
>>> I have a brain products 32 channel eeg cap with two electrodes that can
>>> be used to record eye movement and heart rate.
>>> In the pre-processing I'm re-referencing the data to avg, I was
>>> wondering about these two no-brain electrodes. Should I include them and
>>> reference, or remove them, reference and then include them back??
>>>
>>> I'm sorry if the question is really basic.
>>> Best,
>>> Jasmine Pani
>>>
>>> Post-doc
>>>
>>>
>>> UNIVERSITÀ DEGLI STUDI DI FIRENZE
>>>
>>> Dipartimento di Ingegneria Industriale (DIEF)
>>> *Biomedical and Robotics Lab (**Stanze 344 - 345)*
>>> *Viale Morgagni, 40 *
>>> *50134 Firenze, Italia*
>>> _______________________________________________
>>> fieldtrip mailing list
>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325717917786%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=TPY8%2Bhk89QB72x29tICQv3gwzyk10m70l%2B7fEluzHdw%3D&reserved=0
>>> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325717956437%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=BtfmiF4N8zXzHlzHH8CQHpvPXBk5QTtGY%2BXA1HK1Hno%3D&reserved=0>
>>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325717983458%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=VS09aKxdabCLAgxbznk0BEQQbpXILeRV%2B2ojt65J39I%3D&reserved=0
>>> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325718006169%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=bu12LFjPUWLaA8k6eHHy1VRH24DnN2e5lQx8WxYlGQM%3D&reserved=0>
>>>
>>
>>
>> --
>>
>> Stephan Moratti, PhD
>> Profesor de Psicología Experimental
>> Departamento de Psicología Experimental
>> Facultad de Psicología
>> Center for Cognitive and Computational Neuroscience
>> Universidad Complutense de Madrid
>> smoratti at ucm.es
>>
>>
>>
>> La información contenida en este correo es CONFIDENCIAL, de uso exclusivo
>> del destinatario/a arriba mencionado. Si ha recibido este mensaje por
>> error, notifíquelo inmediatamente por esta misma vía y proceda a su
>> eliminación, ya que ud. tiene totalmente prohibida cualquier utilización
>> del mismo, en virtud de la legislación vigente.
>>
>> Los datos personales recogidos serán incorporados en la actividad de
>> tratamiento 'Correoweb', bajo la titularidad del Vicerrectorado de
>> Tecnologías de la Información, y en él el interesado/a podrá ejercer los
>> derechos de acceso, rectificación, supresión u oposición ante el mismo
>> (artículos 15-21 del Reglamento UE 2016/679 de 27 de abril de 2016).
>>
>> Antes de imprimir este correo piense si es necesario: el medio ambiente
>> es cosa de todos.
>>
>> This message is private and confidential and it is intended exclusively
>> for the addressee. If you receive this message by mistake, you should not
>> disseminate, distribute or copy this e-mail. Please inform the sender and
>> delete the message and attachments from your system, as it is completely
>> forbidden for you to use this information, according to the current
>> legislation. No confidentiality nor any privilege regarding the information
>> is waived or lost by any mistransmission or malfunction.
>>
>> The personal data herein will be collected in the file "Correoweb", under
>> the ownership of the Vice-Rectorate for Information Technologies, in which
>> those interested may exercise their right to access, rectify, erasure or
>> right to object the contents (article 15-21 of Regulation (EU) 2016/679,
>> General Data Protection Regulation).
>>
>> Before printing this mail please consider whether it is really
>> necessary: the environment is a concern for us all.
>>
>> _______________________________________________
>> fieldtrip mailing list
>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325718034149%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=PtksFquqCne385hpihjACind33OSvqdysyzh0tcloVs%3D&reserved=0
>> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325718056750%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=By1hMyYc2Wox2gJjRUpyoS8iYN4cfunZz5Po2pOy4NE%3D&reserved=0>
>> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325718076753%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=fCNSofFyuHu0s%2FMkLU9SQe5Zg7CxJHSXKXHL3rxr5W8%3D&reserved=0
>> <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325718096571%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=5NUO5P8XTnaiV0mtvg6%2BHbd2fDYvbMbGWR97VBDLPSY%3D&reserved=0>
>>
> _______________________________________________
> fieldtrip mailing list
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmailman.science.ru.nl%2Fmailman%2Flistinfo%2Ffieldtrip&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325718118038%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=QqXJi1su9Zwh6hU8jybwwR%2FyQ77s0LRKyZPGCFPhEoI%3D&reserved=0
> https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdoi.org%2F10.1371%2Fjournal.pcbi.1002202&data=05%7C02%7Cfieldtrip%40science.ru.nl%7C464e7330160c461d534308ddb92d24b6%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638870325718136356%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=CkiqTCFg3%2FvTLBkCZUdKqHGVEsJpzydW9xzHftA6oQI%3D&reserved=0
>
--
Stephan Moratti, PhD
Profesor de Psicología Experimental
Departamento de Psicología Experimental
Facultad de Psicología
Center for Cognitive and Computational Neuroscience
Universidad Complutense de Madrid
smoratti at ucm.es
La información contenida en este correo es CONFIDENCIAL, de uso exclusivo
del destinatario/a arriba mencionado. Si ha recibido este mensaje por
error, notifíquelo inmediatamente por esta misma vía y proceda a su
eliminación, ya que ud. tiene totalmente prohibida cualquier utilización
del mismo, en virtud de la legislación vigente.
Los datos personales recogidos serán incorporados en la actividad de
tratamiento 'Correoweb', bajo la titularidad del Vicerrectorado de
Tecnologías de la Información, y en él el interesado/a podrá ejercer los
derechos de acceso, rectificación, supresión u oposición ante el mismo
(artículos 15-21 del Reglamento UE 2016/679 de 27 de abril de 2016).
Antes de imprimir este correo piense si es necesario: el medio ambiente es
cosa de todos.
This message is private and confidential and it is intended exclusively for
the addressee. If you receive this message by mistake, you should not
disseminate, distribute or copy this e-mail. Please inform the sender and
delete the message and attachments from your system, as it is completely
forbidden for you to use this information, according to the current
legislation. No confidentiality nor any privilege regarding the information
is waived or lost by any mistransmission or malfunction.
The personal data herein will be collected in the file "Correoweb", under
the ownership of the Vice-Rectorate for Information Technologies, in which
those interested may exercise their right to access, rectify, erasure or
right to object the contents (article 15-21 of Regulation (EU) 2016/679,
General Data Protection Regulation).
Before printing this mail please consider whether it is really necessary:
the environment is a concern for us all.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20250702/6d9b81b1/attachment.htm>
More information about the fieldtrip
mailing list