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_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).
- verbosebool |
str
|int
|None
Control verbosity of the logging output. If
None
, use the default verbosity level. See the logging documentation andmne.verbose()
for details. Should only be passed as a keyword argument.
- rawinstance of
- Returns