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, orNone 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.
- rawinstance of
- Returns