cmp.stages.eeg.preparer module

Definition of config and stage classes for computing brain parcellation.

class cmp.stages.eeg.preparer.EEGPreparerConfig[source]

Bases: traits.has_traits.HasTraits

Class used to store configuration parameters of a EEGPreparerStage instance.

eeg_format

Specify the format in which EGG data is stored (Default: set)

Type

Enum([‘.set’, ‘.fif’])

epochs

Name of file containing EEG epochs

Type

File

invsol_format

Specify the inverse solution algorithm (Default: Cartool-LAURA)

Type

Enum([‘Cartool-LAURA’, ‘Cartool-LORETA’, ‘mne-sLORETA’])

parcellation = Dict({'label'

Dictionary used to differentiate parcellation files

Type

‘aparc’, ‘desc’:’’, ‘suffix’:’’})

cartool_dir = Str

Name of cartool derivatives directory (Default: 'cartool-v3.80')

cmp3_dir = Str

Name of cartool derivatives directory (Default: 'cmp')

EEG_params = Dict()

Dictionary storing extra EEG parameters

class cmp.stages.eeg.preparer.EEGPreparerStage(bids_dir, output_dir)[source]

Bases: cmp.stages.common.Stage

Class that represents the preparing stage of a EEGPipeline.

This stage consists of three processing interfaces:

  • EEGLAB2fif: Reads eeglab data and converts them to MNE format (fif file extension).

  • CreateSrc: Creates the dipole locations along the surface of the brain.

  • CreateBEM: Creates the boundary element method.

create_workflow()[source]

Create the workflow of the EEGPreparerStage

create_workflow(flow, inputnode, outputnode)[source]

Create the stage workflow.

Parameters
  • flow (nipype.pipeline.engine.Workflow) – The nipype.pipeline.engine.Workflow instance of the Diffusion 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

define_inspect_outputs()[source]
has_run()[source]

Function that returns True if the stage has been run successfully.

Returns

Return type

True if the stage has been run successfully