@@ -107,7 +107,7 @@ def init_infant_brain_extraction_wf(
107
107
108
108
inputnode = pe .Node (niu .IdentityInterface (fields = ["t2w_preproc" ]), name = "inputnode" )
109
109
outputnode = pe .Node (
110
- niu .IdentityInterface (fields = ["t2w_brain" , "out_mask" , "out_probmap" ]),
110
+ niu .IdentityInterface (fields = ["t2w_preproc" , " t2w_brain" , "out_mask" , "out_probmap" ]),
111
111
name = "outputnode" ,
112
112
)
113
113
@@ -182,9 +182,9 @@ def init_infant_brain_extraction_wf(
182
182
workflow .connect ([
183
183
(inputnode , final_n4 , [("t2w_preproc" , "input_image" )]),
184
184
# 1. Massage T2w
185
- (inputnode , mrg_t2w , [("in_t2w " , "in1" )]),
186
- (inputnode , lap_t2w , [("in_t2w " , "op1" )]),
187
- (inputnode , map_mask_t2w , [("in_t2w " , "reference_image" )]),
185
+ (inputnode , mrg_t2w , [("t2w_preproc " , "in1" )]),
186
+ (inputnode , lap_t2w , [("t2w_preproc " , "op1" )]),
187
+ (inputnode , map_mask_t2w , [("t2w_preproc " , "reference_image" )]),
188
188
(bin_regmask , refine_mask , [("out_file" , "in_file" )]),
189
189
(refine_mask , fixed_masks , [("out_file" , "in4" )]),
190
190
(lap_t2w , norm_lap_t2w , [("output_image" , "in_file" )]),
@@ -241,7 +241,7 @@ def init_infant_brain_extraction_wf(
241
241
# fmt:off
242
242
workflow .connect ([
243
243
(clip_tmpl , init_aff , [("out_file" , "fixed_image" )]),
244
- (inputnode , init_aff , [("in_t2w " , "moving_image" )]),
244
+ (inputnode , init_aff , [("t2w_preproc " , "moving_image" )]),
245
245
(init_aff , norm , [("output_transform" , "initial_moving_transform" )]),
246
246
])
247
247
# fmt:on
0 commit comments