mne.preprocessing.ica_find_ecg_events

mne.preprocessing.ica_find_ecg_events(raw, ecg_source, event_id=999, tstart=0.0, l_freq=5, h_freq=35, qrs_threshold='auto', verbose=None)[source]

Find ECG peaks from one selected ICA source.

Parameters
rawinstance of Raw

Raw object to draw sources from.

ecg_sourcendarray

ICA source resembling ECG to find peaks from.

event_idint

The index to assign to found events.

tstartfloat

Start detection after tstart seconds. Useful when beginning of run is noisy.

l_freqfloat

Low pass frequency.

h_freqfloat

High pass frequency.

qrs_thresholdfloat | str

Between 0 and 1. qrs detection threshold. Can also be “auto” to automatically choose the threshold that generates a reasonable number of heartbeats (40-160 beats / min).

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns
ecg_eventsarray

Events.

ch_ECGstr

Name of channel used.

average_pulsefloat.

Estimated average pulse.