eelbrain.pipeline.MneExperiment.load_selected_events¶
-
MneExperiment.
load_selected_events
(self, subjects=None, reject=True, add_bads=True, index=True, data_raw=False, vardef=None, cat=None, **kwargs)¶ Load events and return a subset based on epoch and rejection
Parameters: - subjects : str | 1 | -1
Subject(s) for which to load data. Can be a single subject name or a group name such as
'all'
.1
to use the current subject;-1
for the current group. Default is current subject (or group ifgroup
is specified).- reject : bool | ‘keep’
Reject bad trials. If
True
(default), bad trials are removed from the Dataset. Set toFalse
to ignore the trial rejection. Setreject='keep'
to load the rejection (added it to the events as'accept'
variable), but keep bad trails.- add_bads : False | True | list
Add bad channel information to the Raw. If True, bad channel information is retrieved from the bad channels file. Alternatively, a list of bad channels can be specified.
- index : bool | str
Index the Dataset before rejection (provide index name as str).
- data_raw : bool
Keep the
mne.io.Raw
instance inds.info['raw']
(default False).- vardef : str
Name of a test defining additional variables.
- cat : sequence of cell-names
Only load data for these cells (cells of model).
- …
State parameters.
Notes
When trial rejection is set to automatic, not rejection is performed because no epochs are loaded.