[Mne_analysis] average of M1 and M2 reference with brainvision files

Justin Murphy justin.murphy at vuw.ac.nz
Wed Mar 25 19:22:52 EDT 2020
Search archives:

        External Email - Use Caution        

Hello MNEers,

I’m having trouble setting a reference that is the  average of M1 and M2.

M1 is the reference used for recording, and is stored as “Ref” in the vhdr file, but not with the other channels.

I have read the link:
https://mne.tools/stable/auto_tutorials/preprocessing/plot_55_setting_eeg_reference.html
and the suggestion to do this:

# add new reference channel (all zero)

raw_new_ref<https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw> = mne.add_reference_channels<https://mne.tools/stable/generated/mne.add_reference_channels.html#mne.add_reference_channels>(raw<https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw>, ref_channels=['EEG 999'])


raw_new_ref<https://mne.tools/stable/generated/mne.io.Raw.html#mne.io.Raw>.set_eeg_reference(ref_channels=['EEG 050'])

Which I gather switches the reference channel – I can do that. But how do I, instead of swithing, create the average of M1 and M2, AND know that it worked?
Also, is there an easy way to find what the current reference being used is??

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20200325/de8b913e/attachment.html 


More information about the Mne_analysis mailing list