@@ -128,9 +128,9 @@ def init_bold_confs_wf(
128
128
Mask of the skull-stripped template image
129
129
t1w_tpms
130
130
List of tissue probability maps in T1w space
131
- t1_bold_xform
132
- Affine matrix that maps the T1w space into alignment with
133
- the native BOLD space
131
+ boldref2anat_xfm
132
+ Affine matrix that maps the BOLD reference space into alignment with
133
+ the anatomical (T1w) space
134
134
135
135
Outputs
136
136
-------
@@ -224,7 +224,7 @@ def init_bold_confs_wf(
224
224
"skip_vols" ,
225
225
"t1w_mask" ,
226
226
"t1w_tpms" ,
227
- "t1_bold_xform " ,
227
+ "boldref2anat_xfm " ,
228
228
]
229
229
),
230
230
name = "inputnode" ,
@@ -244,7 +244,7 @@ def init_bold_confs_wf(
244
244
245
245
# Project T1w mask into BOLD space and merge with BOLD brainmask
246
246
t1w_mask_tfm = pe .Node (
247
- ApplyTransforms (interpolation = "MultiLabel" ),
247
+ ApplyTransforms (interpolation = "MultiLabel" , invert_transform_flags = [ True ] ),
248
248
name = "t1w_mask_tfm" ,
249
249
)
250
250
union_mask = pe .Node (niu .Function (function = _binary_union ), name = "union_mask" )
@@ -266,9 +266,9 @@ def init_bold_confs_wf(
266
266
# Generate aCompCor probseg maps
267
267
acc_masks = pe .Node (aCompCorMasks (is_aseg = freesurfer ), name = "acc_masks" )
268
268
269
- # Resample probseg maps in BOLD space via T1w -to-BOLD transform
269
+ # Resample probseg maps in BOLD space via BOLD -to-T1w transform
270
270
acc_msk_tfm = pe .MapNode (
271
- ApplyTransforms (interpolation = "Gaussian" ),
271
+ ApplyTransforms (interpolation = "Gaussian" , invert_transform_flags = [ True ] ),
272
272
iterfield = ["input_image" ],
273
273
name = "acc_msk_tfm" ,
274
274
mem_gb = 0.1 ,
@@ -500,7 +500,7 @@ def _select_cols(table):
500
500
# Brain mask
501
501
(inputnode , t1w_mask_tfm , [("t1w_mask" , "input_image" ),
502
502
("bold_mask" , "reference_image" ),
503
- ("t1_bold_xform " , "transforms" )]),
503
+ ("boldref2anat_xfm " , "transforms" )]),
504
504
(inputnode , union_mask , [("bold_mask" , "mask1" )]),
505
505
(t1w_mask_tfm , union_mask , [("output_image" , "mask2" )]),
506
506
(union_mask , dilated_mask , [("out" , "in_mask" )]),
@@ -512,7 +512,7 @@ def _select_cols(table):
512
512
("skip_vols" , "ignore_initial_volumes" )]),
513
513
(inputnode , acc_masks , [("t1w_tpms" , "in_vfs" ),
514
514
(("bold" , _get_zooms ), "bold_zooms" )]),
515
- (inputnode , acc_msk_tfm , [("t1_bold_xform " , "transforms" ),
515
+ (inputnode , acc_msk_tfm , [("boldref2anat_xfm " , "transforms" ),
516
516
("bold_mask" , "reference_image" )]),
517
517
(inputnode , acc_msk_brain , [("bold_mask" , "in_mask" )]),
518
518
(acc_masks , acc_msk_tfm , [("out_masks" , "input_image" )]),
@@ -624,9 +624,9 @@ def init_carpetplot_wf(
624
624
BOLD series mask
625
625
confounds_file
626
626
TSV of all aggregated confounds
627
- t1_bold_xform
628
- Affine matrix that maps the T1w space into alignment with
629
- the native BOLD space
627
+ boldref2anat_xfm
628
+ Affine matrix that maps the BOLD reference space into alignment with
629
+ the anatomical (T1w) space
630
630
std2anat_xfm
631
631
ANTs-compatible affine-and-warp transform file
632
632
cifti_bold
@@ -653,7 +653,7 @@ def init_carpetplot_wf(
653
653
"bold" ,
654
654
"bold_mask" ,
655
655
"confounds_file" ,
656
- "t1_bold_xform " ,
656
+ "boldref2anat_xfm " ,
657
657
"std2anat_xfm" ,
658
658
"cifti_bold" ,
659
659
"crown_mask" ,
@@ -708,6 +708,7 @@ def init_carpetplot_wf(
708
708
extension = [".nii" , ".nii.gz" ],
709
709
)
710
710
),
711
+ invert_transform_flags = [True , False ],
711
712
interpolation = "MultiLabel" ,
712
713
args = "-u int" ,
713
714
),
@@ -720,7 +721,7 @@ def init_carpetplot_wf(
720
721
721
722
# fmt:off
722
723
workflow .connect ([
723
- (inputnode , mrg_xfms , [("t1_bold_xform " , "in1" ),
724
+ (inputnode , mrg_xfms , [("boldref2anat_xfm " , "in1" ),
724
725
("std2anat_xfm" , "in2" )]),
725
726
(inputnode , resample_parc , [("bold_mask" , "reference_image" )]),
726
727
(inputnode , parcels , [("crown_mask" , "crown_mask" )]),
0 commit comments