xcp_d.utils.utils.get_bold2std_and_t1w_xfms
- xcp_d.utils.utils.get_bold2std_and_t1w_xfms(bold_file, template_to_anat_xfm)[source]
Find transform files in reverse order to transform BOLD to MNI152NLin2009cAsym/T1w space.
Since ANTSApplyTransforms takes in the transform files as a stack, these are applied in the reverse order of which they are specified.
NOTE: This is a Node function.
- Parameters:
bold_file (
str) – The preprocessed BOLD file.template_to_anat_xfm – The
fromfield is assumed to be the same space as the BOLD file is in. The MNI space could be MNI152NLin2009cAsym, MNI152NLin6Asym, or MNIInfant.
- Returns:
xforms_to_MNI (list of str) – A list of paths to transform files for warping to MNI152NLin2009cAsym space.
xforms_to_MNI_invert (list of bool) – A list of booleans indicating whether each transform in xforms_to_MNI indicating if each should be inverted (True) or not (False).
xforms_to_T1w (list of str) – A list of paths to transform files for warping to T1w space.
xforms_to_T1w_invert (list of bool) – A list of booleans indicating whether each transform in xforms_to_T1w indicating if each should be inverted (True) or not (False).
Notes
Only used for QCReport in init_postprocess_nifti_wf. QCReport wants MNI-space data in MNI152NLin2009cAsym.