[Mne_analysis] Drop epochs if > N electrodes are bad

Alex Murphy murphyalex at gmail.com
Wed Jan 9 08:43:44 EST 2019
Search archives:

        External Email - Use Caution        

Hi all,

I was wondering if there was a way to do epoch rejection using the drop_bad
method of an Epochs object, but in a way that specifies that I only want to
drop epochs if a certain amount don't pass the threshold. My data is quite
noisy and I lose an awful lot of channels where only one electrode failed
the peak-to-peak threshold test and my analyses would be robust enough to
withstand these. However, if, say, over 5-6 electrodes were bad then I
would want to drop them.

To give an example, I would like to be able to apply a procedure that
ignores these cases:

Rejecting  epoch based on EEG : ['CP3']
Rejecting  epoch based on EEG : ['CP3']
Rejecting  epoch based on EEG : ['CP3']
Rejecting  epoch based on EEG : ['T8']
Rejecting  epoch based on EEG : ['PO9']
Rejecting  epoch based on EEG : ['PO9']
Rejecting  epoch based on EEG : ['PO9']
Rejecting  epoch based on EEG : ['F2']
Rejecting  epoch based on EEG : ['T7']


While not ignoring these cases:


Rejecting  epoch based on EEG : ['F3', 'Fz', 'F4', 'FC1', 'FC2',
'FC6', 'Cz', 'C4', 'T8', 'TP9', 'CP6', 'P7', 'P3', 'Pz', 'P4',
'P8'...]
Rejecting  epoch based on EEG : ['F3', 'Fz', 'F4', 'FC1', 'FC2',
'FC6', 'C3', 'Cz', 'C4', 'T8', 'TP9', 'CP6', 'P7', 'P3', 'Pz', 'P4',
'P8'...]
Rejecting  epoch based on EEG : ['F3', 'Fz', 'F4', 'FC1', 'FC2',
'FC6', 'C3', 'Cz', 'C4', 'T8', 'TP9', 'CP6', 'P7', 'P3', 'Pz', 'P4',
'P8'...]
Rejecting  epoch based on EEG : ['F3', 'Fz', 'F4', 'F8', 'FC1', 'FC2',
'FC6', 'C3', 'Cz', 'C4', 'T8', 'TP9', 'CP5', 'CP6', 'P7', 'P3', 'Pz',
'P4', 'P8'...]
Rejecting  epoch based on EEG : ['F3', 'Fz', 'F4', 'F8', 'FC1', 'FC2',
'FC6', 'Cz', 'C4', 'T8', 'CP5', 'P7', 'P3', 'Pz', 'P4', 'PO9'...]
Rejecting  epoch based on EEG : ['F3', 'T8', 'CP5', 'TP10', 'P7',
'P3', 'P8', 'PO9', 'O1'...]
Rejecting  epoch based on EEG : ['F3', 'P8', 'PO9', 'O1', 'Oz',
'PO10', 'AF4', 'PO7', 'PO3', 'POz']

Does anyone have an idea how this could be implemented in a way that
doesn't require a lot of hacky solutions?


Thanks
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.nmr.mgh.harvard.edu/pipermail/mne_analysis/attachments/20190109/f8fad01c/attachment.html 


More information about the Mne_analysis mailing list