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, or None

If not None, override default verbose level (see mne.verbose() and Logging documentation for more). If used, it should be passed as a keyword-argument only.

Returns
ecg_eventsarray

Events.

ch_ECGstr

Name of channel used.

average_pulsefloat.

Estimated average pulse.