cmp.pipelines.functional.fMRI module

Functional pipeline Class definition.

class cmp.pipelines.functional.fMRI.Check_Input_Notification[source]

Bases: traits.has_traits.HasTraits

class cmp.pipelines.functional.fMRI.Global_Configuration[source]

Bases: traits.has_traits.HasTraits

Global pipeline configurations.

process_type

Processing pipeline type

Type

‘fMRI’

imaging_model

Imaging model used by RegistrationStage

Type

‘fMRI’

class cmp.pipelines.functional.fMRI.fMRIPipeline(project_info)[source]

Bases: cmp.pipelines.common.Pipeline

Class that extends a Pipeline and represents the processing pipeline for structural MRI.

It is composed of:
  • the preprocessing stage that can perform slice timing correction, deskiping and motion correction

  • the registration stage that co-registered the anatomical T1w scan to the mean BOLD image and projects the parcellations to the native fMRI space

  • the extra-preprocessing stage (FunctionalMRIStage) that can perform nuisance regression and bandpass filtering

  • the connectome stage that extracts the time-series of each parcellation ROI and computes the Pearson’s correlation coefficient between ROI time-series to create the functional connectome.

check_config()[source]
check_input(layout, gui=True, debug=False)[source]

Check if input of the diffusion pipeline are available.

Parameters
  • layout (bids.BIDSLayout) – Instance of BIDSLayout

  • gui (traits.Bool) – Boolean used to display different messages but not really meaningful anymore since the GUI components have been migrated to cmp.bidsappmanager

Returns

valid_inputs – True if inputs are available

Return type

traits.Bool

create_pipeline_flow(cmp_deriv_subject_directory, nipype_deriv_subject_directory)[source]

Create the pipeline workflow.

Parameters
  • <Directory> (nipype_deriv_subject_directory) – Main CMP output directory of a subject e.g. /output_dir/cmp/sub-XX/(ses-YY)

  • <Directory> – Intermediate Nipype output directory of a subject e.g. /output_dir/nipype/sub-XX/(ses-YY)

Returns

An instance of nipype.pipeline.engine.Workflow

Return type

fMRI_flow <nipype.pipeline.engine.Workflow>

define_custom_mapping(custom_last_stage)[source]

Define the pipeline to be executed until a specific stages.

Not used yet by CMP3.

Parameters

custom_last_stage (string) – Last stage to execute. Valid values are: “Preprocessing”, “Registration”, “FunctionalMRI” and “Connectome”.

global_conf = <cmp.pipelines.functional.fMRI.Global_Configuration object>
input_folders = ['anat', 'func']
now = '20210113_0814'
ordered_stage_list = ['Preprocessing', 'Registration', 'FunctionalMRI', 'Connectome']
process()[source]
update_nuisance_requirements()[source]

Update nuisance requirements.

Configure the registration to apply the estimated transformation to multiple segmentation masks depending on the Nuisance correction steps performed.

update_registration()[source]

Configure the list of registration tools.

update_scrubbing()[source]

Update to precompute or inputs for scrubbing during the FunctionalMRI stage.