Compute SSP (signal-space projection) vectors for EOG artifacts.
This function will:
Filter the EOG data channel.
Find the peaks of eyeblinks in the EOG data using
mne.preprocessing.find_eog_events().
Filter the raw data.
Create Epochs around the eyeblinks.
Optionally average the Epochs to produce an Evoked if
average=True was passed (default).
Calculate SSP projection vectors on that data to capture the artifacts.
Note
Raw data must be preloaded.
mne.io.RawRaw input file.
mne.io.Raw or NoneRaw file to use for event detection (if None, raw is used).
floatTime before event in seconds.
floatTime after event in seconds.
intNumber of SSP vectors for gradiometers.
intNumber of SSP vectors for magnetometers.
intNumber of SSP vectors for EEG.
float | NoneFilter low cut-off frequency for the data channels in Hz.
float | NoneFilter high cut-off frequency for the data channels in Hz.
Compute SSP after averaging. Default is True.
str | int | NoneNumber of taps to use for filtering.
int | NoneThe number of jobs to run in parallel. If -1, it is set
to the number of CPU cores. Requires the joblib package.
None (default) is a marker for ‘unset’ that will be interpreted
as n_jobs=1 (sequential execution) unless the call is performed under
a joblib.parallel_backend() context manager that sets another
value for n_jobs.
dict | NoneEpoch rejection configuration (see Epochs).
dict | NoneEpoch flat configuration (see Epochs).
listList with (additional) bad channels.
Add EEG average reference proj.
Exclude the SSP projectors currently in the fiff file.
intID to use for events.
floatLow pass frequency applied to the E0G channel for event detection.
floatHigh pass frequency applied to the EOG channel for event detection.
floatStart artifact detection after tstart seconds.
strMethod for filtering (‘iir’ or ‘fir’).
dict | NoneDictionary of parameters to use for IIR filtering. See mne.filter.construct_iir_filter for details. If iir_params is None and method=”iir”, 4th order Butterworth will be used.
str | NoneIf not None, specify EOG channel name.
If False, filtering raw data is done in place. Defaults to True.
If True, return the drop log.
New in version 0.15.
strCan be ‘separate’ (default) or ‘combined’ to compute projectors
for magnetometers and gradiometers separately or jointly.
If ‘combined’, n_mag == n_grad is required and the number of
projectors computed for MEG will be n_mag.
New in version 0.18.
str | int | NoneControl 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.
See also
Notes
Filtering is applied to the EOG channel while finding events using
eog_l_freq and eog_h_freq, and then to the raw instance
using l_freq and h_freq before creation of the epochs used to
create the projectors.
mne.preprocessing.compute_proj_eog#Working with CTF data: the Brainstorm auditory dataset