[FieldTrip] Re-reference data with EOG and heart electrodes

Jasmine Pani jasmine.pani at unifi.it
Tue Jul 1 11:30:14 CEST 2025


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%7C9853e00450cb4b55f65408ddb881ef24%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638869590430563397%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=5hfG3hTuqaQB5t%2BsQ%2F0x8eXm0ftq5PU5qiNM7p9OoLU%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%7C9853e00450cb4b55f65408ddb881ef24%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638869590430591627%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Um0rwKOb2IUs3pKJFyAY0fsRd0WweKPVdJ%2F0t%2FrH0ag%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%7C9853e00450cb4b55f65408ddb881ef24%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638869590430607908%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=oRGErBcg4I0mUzHlO9%2ByjWaCHfg8zccz9MNrXUBCZeU%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%7C9853e00450cb4b55f65408ddb881ef24%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638869590430623226%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=01i%2BkJ%2Bf76SUn4IUSDLAxAAr8zQJh5lGG1eiSbk8Bhw%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%7C9853e00450cb4b55f65408ddb881ef24%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638869590430638856%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=Si3wYdZJqCX3eIAO2c2JLD0v%2F8rYN8BATIt2816S%2FVs%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%7C9853e00450cb4b55f65408ddb881ef24%7C084578d9400d4a5aa7c7e76ca47af400%7C1%7C0%7C638869590430653254%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ps1ATzQN%2BhfWlXSZWNlxx68sn964b1UgebhTTHs01DQ%3D&reserved=0
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.science.ru.nl/pipermail/fieldtrip/attachments/20250701/4101baf7/attachment.htm>


More information about the fieldtrip mailing list