[Mne_analysis] Drop epochs if > N electrodes are bad

Alexandre Gramfort alexandre.gramfort at inria.fr
Wed Jan 9 13:05:10 EST 2019
Search archives:

        External Email - Use Caution        

hi Alex,

you have the option to mark some channels as bad to avoid loosing a
lot of epochs due to one very noisy channel.

you might also consider using autoreject: https://autoreject.github.io/
that can detect and clean locally bad channels.

HTH
Alex

On Wed, Jan 9, 2019 at 2:44 PM Alex Murphy <murphyalex at gmail.com> wrote:
>
>         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
>
> _______________________________________________
> Mne_analysis mailing list
> Mne_analysis at nmr.mgh.harvard.edu
> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis



More information about the Mne_analysis mailing list