eelbrain.load.mne.mne_epochs
- eelbrain.load.mne.mne_epochs(data, tmin=-0.1, tmax=None, baseline=None, i_start='i_start', raw=None, drop_bad_chs=True, picks=None, reject=None, tstop=None, decim=1, trigger='trigger', event_id=None, **kwargs)[source]
Load epochs as
mne.Epochs.- Parameters:
data (Dataset) – Dataset containing a variable which defines epoch cues (i_start).
tmin (float) – First sample to include in the epochs in seconds (Default is -0.1).
tmax (float) – Last sample to include in the epochs in seconds (Default 0.6; use
tstopinstead to specify index exclusive of last sample).baseline (tuple[float, float]) – Time interval for baseline correction.
(tmin, tmax)tuple in seconds, orNoneto use all the data (e.g.,(None, 0)uses all the data from the beginning of the epoch up tot = 0). Set toNonefor no baseline correction (default).i_start (str) – Name of the variable containing the sample index of each event.
raw (BaseRaw) – If None, ds.info[‘raw’] is used.
drop_bad_chs (bool) – Drop all channels in raw.info[‘bads’] form the Epochs. This argument is ignored if the picks argument is specified.
picks (Sequence[str]) –
mne.Epochsparameters.reject (float) –
mne.Epochsparameters.decim (int) –
mne.Epochsparameters.tstop (float) – Alternative to
tmax. Whiletmaxspecifies the last samples to include,tstopspecifies the sample before which to stop (standard Python indexing convention). For example, at 100 Hz the epoch withtmin=-0.1, tmax=0.4will have 51 samples, while the epoch specified withtmin=-0.1, tstop=0.4will have 50 samples.trigger (str) – Name of the variable containing the integer event ID (trigger code). If this variable is a
Factor(e.g. from a pipeline’slabel_events), it is converted to a stable numeric code automatically (seeevent_id).event_id (dict[str, int]) – Mapping from condition label to trigger code, stored on the resulting
mne.Epochsas itsevent_id(passed through tomne.Epochs). IfNoneandtriggerresolves to aFactor, this is derived automatically from the Factor’s own labels; otherwise MNE derives its own from the trigger codes. Withtrigger=None(every event gets the code 1),event_identries declaring any other code are ignored (with a warning), since they could never match an event.... –
mne.Epochsparameters.