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)

Find ECG peaks from one selected ICA source


raw : instance of Raw

Raw object to draw sources from.

ecg_source : ndarray

ICA source resembling ECG to find peaks from.

event_id : int

The index to assign to found events.

tstart : float

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

l_freq : float

Low pass frequency.

h_freq : float

High pass frequency.

qrs_threshold : float | 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).

verbose : bool, str, int, or None

If not None, override default verbose level (see mne.verbose).


ecg_events : array


ch_ECG : string

Name of channel used.

average_pulse : float.

Estimated average pulse.