[Mne_analysis] using correlation as method for find_bads_ecg

Denis A. Engemann denis.engemann at gmail.com
Thu Oct 16 03:30:36 EDT 2014
Search archives:

Out of curiosity, why would you prefer the correlation method over the default phase-locking method? The latter is more reliable and is based on a significance test.

-Denis


> On 16 Oct 2014, at 09:23, Alexandre Gramfort <alexandre.gramfort at telecom-paristech.fr> wrote:
> 
> hi Lau,
> 
> would 'ECG003' be marked as bad? is it defined as an ECG channel
> (check with pick_types)?
> 
> Alex
> 
> On Thu, Oct 16, 2014 at 12:15 AM, Lau Møller Andersen
> <lau.andersen at cnru.dk> wrote:
>> Dear list
>> 
>> I can't get the correlation method to work for find_bads_ecg method
>> It always returns the error: ValueError: ECG003 not in channel list
>> 
>> method = 'correlation'
>> 
>> ekgEpochs = mne.preprocessing.create_ecg_epochs(raw)
>> 
>> ekgIndices, ekgScores = ica.find_bads_ecg(ekgEpochs, method=method)
>> 
>> 
>> It is in the ekgEpochs as seen below
>> 
>> ekgEpochs.info['ch_names'][:4]
>> Out[8]: ['EOG001', 'EOG002', 'ECG003', 'MEG0111']
>> 
>> it makes no difference whether I include ch_name = 'ECG003' in
>> create_ecg_epochs or in find_bads_ecg
>> 
>> Any thoughts on why this could be?
>> 
>> I'm running MNE 0.8.5 on MacOSX 10.9.5
>> 
>> Best
>> 
>> Lau
>> 
>> 
>> _______________________________________________
>> Mne_analysis mailing list
>> Mne_analysis at nmr.mgh.harvard.edu
>> https://mail.nmr.mgh.harvard.edu/mailman/listinfo/mne_analysis
>> 
>> 
>> The information in this e-mail is intended only for the person to whom it is
>> addressed. If you believe this e-mail was sent to you in error and the
>> e-mail
>> contains patient information, please contact the Partners Compliance
>> HelpLine at
>> http://www.partners.org/complianceline . If the e-mail was sent to you in
>> error
>> but does not contain patient information, please contact the sender and
>> properly
>> dispose of the e-mail.
>> 
> 
> _______________________________________________
> 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