.. _pipelines: Pipelines _________ .. _spm_pipelines: SPM-based pipelines ~~~~~~~~~~~~~~~~~~~ Using T1w and T2w images ************************ :class:`full SPM pipeline `, with the processing sequence: * :class:`Data preparation ` (See :ref:`Data preparation ` for more details) * :class:`T1xT2BiasFieldCorrection `: iterative normalisation to template space * :class:`IterREGBET ` * :class:`old_segment SPM based pipeline ` Using only a T1w image ********************** :class:`full SPM T1 pipeline `, with the processing sequence: * :class:`Data preparation ` (See :ref:`Data preparation ` for more details) * :class:`T1xT2BiasFieldCorrection ` but the T1w replaces the T2w * :class:`IterREGBET `: iterative normalisation to template space * ANTS non linear registration and FSL Apply XFM to tranform images to the template * :class:`old_segment SPM based pipeline ` ---- .. _ants_pipelines: ANTS-based pipelines ~~~~~~~~~~~~~~~~~~~~ Using T1w and T2w images ************************ :class:`full ANTS pipeline `, with the processing sequence : * :class:`Short data preparation ` or :class:`Long single data preparation ` or :class:`Long multi data preparation ` (See :ref:`Data preparation ` for more details) * :class:`Brain extraction pipeline ` - :class:`debias pipeline ` (similar to :class:`T1xT2BiasFieldCorrection `, but all steps are nipype nodes) - :class:`extract brain pipeline ` (using Atlax-Brex) * :class:`Brain segment from mask ` : - :class:`masked debias pipeline ` - :class:`register pipeline ` from template (NMT) to subject space - :class:`segmentation pipeline ` in subject space with Atropos Using only T1w images ********************* :class:`full ANTS T1 pipeline `, with the processing sequence : * :class:`Short data T1 preparation ` (See :ref:`Data preparation ` for more details) * :class:`Brain extraction pipeline ` - :class:`extract brain pipeline ` (using Atlax-Brex) * :class:`Brain segment from mask ` : - :class:`register pipeline ` from template (NMT) to subject space - :class:`segmentation pipeline ` in subject space with Atropos ---- .. _data_prep: Data preparation ~~~~~~~~~~~~~~~~ Short data preparation ********************** Short data preparation corresponds to the pipelines where T1 and T2 images are averaged by modality from the beginning, and T2 is aligned to T1, then cropped or betcropped, and denoised. The "auto"" version corresponds to :class:`short data preparation ` with "betcrop" option (using :class:`T1xT2BET `) The "manual" version corresponds to :class:`short data preparation ` with "crop" option, and specify crop box in args for each subject in individual params .. _short_prep: .. |logo1| image:: ./img/short_manual_preparation_pipe/graph.png :scale: 100% .. |logo2| image:: ./img/short_auto_preparation_pipe/graph.png :scale: 100% .. table:: :align: center +---------+---------+ | |logo1| | |logo2| | +---------+---------+ The version with crop are used in :ref:`marmoset example `, the version with betcrop is used in both macaque examples with :ref:`SPM ` and :ref:`ANTS ` Long data preparation ********************* In some cases, you may want some processing done prior to the alignement, if T1 and T2 are very different. In this case, after aligning and averaging by modality (all T1s -> average_T1), you may crop, debias (N4) and denoise each image (average_T1 and average T2) indendantly before aligning average_T2 to average_T1 (:class:`long single data preparation `) But in a very specific case, where the data of multiple sessions have been acquired with different settings (e.g. antenna contrast), you may have even all multiple modality data preprocessed (reorient, cropped, debiased, denoised) indendantly before being averaged and aligned by modality, and then av_T2 aligned to av_T1 (:class:`long multi data preparation `) .. _long_prep: .. |logo3| image:: ./img/long_single_preparation_pipe/graph.png :scale: 80% .. |logo4| image:: ./img/long_multi_preparation_pipe/graph.png :scale: 80% .. table:: :align: center +---------+---------+ | |logo3| | |logo4| | +---------+---------+ The short version is used for the :ref:`baboon example `, the long version has been tested on a data set with multiple T1s (not shown in examples). Options ******* Reorient sub-pipeline --------------------- For all the preparation pipelines, it is possible to add at the beginning of the pipeline a "reorient" subpipelines by specifying An example can be found in :ref:`macaque sphinx ` Denoise and denoise_first ------------------------- By default, denoising is done at the end of the preparation pipeline, on the cropped data. It is however possible to move the denoise at the beginning at the pipeline, with option denoise first. *N.B.: This option is only available in long preparation (single and multi) so far*