cmp.stages.eeg.preprocessing module
Definition of config and stage classes for computing brain parcellation.
- class cmp.stages.eeg.preprocessing.EEGPreprocessingConfig[source]
Bases:
traits.has_traits.HasTraits
Class used to store configuration parameters of a
EEGPreprocessingStage
instance.- task_label
Task label (e.g.
_task-<label>_
)- Type
Str
- eeg_ts_file
Instance of
CustomEEGPreprocBIDSFile
that describes the input BIDS-formatted preprocessed EEG file
- events_file
Instance of
CustomEEGEventsBIDSFile
that describes the input BIDS-formatted EEG events file
- electrodes_file_fmt
Select the type of tabular file describing electrode positions
- Type
Enum([“BIDS”, “Cartool”])
- bids_electrodes_file
Instance of
CustomEEGElectrodesBIDSFile
that describes the input BIDS-compliant EEG electrode file
- cartool_electrodes_file
Instance of
CustomEEGCartoolElectrodesBIDSFile
that describes the input BIDS-formatted EEG electrode file created by Cartool
- t_min
Start time of the epochs in seconds, relative to the time-locked event (Default: -0.2)
- Type
Float
- t_max
End time of the epochs in seconds, relative to the time-locked event (Default: 0.5)
- Type
Float
See also
cmp.stages.eeg.preparer.EEGPreprocessingStage
- class cmp.stages.eeg.preprocessing.EEGPreprocessingStage(subject, session, bids_dir, output_dir)[source]
Bases:
cmp.stages.common.Stage
Class that represents the preprocessing stage of a
EEGPipeline
.This stage consists of converting EEGLab
set
EEG files to MNE Epochs infif
format, the format used in the rest of the pipeline by calling, if necessary the following interface:EEGLAB2fif
: Reads eeglab data and converts them to MNE format (fif
file extension).
See also
cmp.pipelines.functional.eeg.EEGPipeline
,cmp.stages.eeg.preparer.EEGPreprocessingConfig
- create_workflow(flow, inputnode, outputnode)[source]
Create the stage workflow.
- Parameters
flow (nipype.pipeline.engine.Workflow) – The nipype.pipeline.engine.Workflow instance of the EEG pipeline
inputnode (nipype.interfaces.utility.IdentityInterface) – Identity interface describing the inputs of the stage
outputnode (nipype.interfaces.utility.IdentityInterface) – Identity interface describing the outputs of the stage