Warning: This document is for an old version of smriprep. The main version is master.

smriprep.workflows.norm module

Spatial normalization workflows.

smriprep.workflows.norm.init_anat_norm_wf(debug, omp_nthreads, templates)

Build an individual spatial normalization workflow using antsRegistration.

Workflow Graph

(Source code, png, svg, pdf)


This workflow defines an iterable input over the input parameter templates, so Nipype will produce one copy of the downstream workflows which connect poutputnode.template or poutputnode.template_spec to their inputs (poutputnode stands for parametric output node). Nipype refers to this expansion of the graph as parameterized execution. If a joint list of values is required (and thus cutting off parameterization), please use the equivalent outputs of outputnode (which joins all the parameterized execution paths).

  • debug (bool) – Apply sloppy arguments to speed up processing. Use with caution, registration processes will be very inaccurate.

  • omp_nthreads (int) – Maximum number of threads an individual process may use.

  • templates (list of str) – List of standard space fullnames (e.g., MNI152NLin6Asym or MNIPediatricAsym:cohort-4) which are targets for spatial normalization.

  • moving_image – The input image that will be normalized to standard space.

  • moving_mask – A precise brain mask separating skull/skin/fat from brain structures.

  • moving_segmentation – A brain tissue segmentation of the moving_image.

  • moving_tpms – tissue probability maps (TPMs) corresponding to the moving_segmentation.

  • lesion_mask – (optional) A mask to exclude regions from the cost-function input domain to enable standardization of lesioned brains.

  • orig_t1w – The original T1w image from the BIDS structure.

  • standardized – The T1w after spatial normalization, in template space.

  • anat2std_xfm – The T1w-to-template transform.

  • std2anat_xfm – The template-to-T1w transform.

  • std_mask – The moving_mask in template space (matches standardized output).

  • std_dseg – The moving_segmentation in template space (matches standardized output).

  • std_tpms – The moving_tpms in template space (matches standardized output).

  • template – Template name extracted from the input parameter template, for further use in downstream nodes.

  • template_spec – Template specifications extracted from the input parameter template, for further use in downstream nodes.