@@ -225,6 +225,7 @@ def init_single_subject_wf(subject_id: str):
225
225
)
226
226
227
227
spaces = config .workflow .spaces
228
+ msm_sulc = config .workflow .run_msmsulc
228
229
229
230
anatomical_cache = {}
230
231
if config .execution .derivatives :
@@ -300,7 +301,7 @@ def init_single_subject_wf(subject_id: str):
300
301
freesurfer = config .workflow .run_reconall ,
301
302
hires = config .workflow .hires ,
302
303
longitudinal = config .workflow .longitudinal ,
303
- msm_sulc = config . workflow . run_msmsulc ,
304
+ msm_sulc = msm_sulc ,
304
305
t1w = subject_data ['t1w' ],
305
306
t2w = subject_data ['t2w' ],
306
307
skull_strip_mode = config .workflow .skull_strip_t1w ,
@@ -554,8 +555,11 @@ def init_single_subject_wf(subject_id: str):
554
555
('outputnode.pial' , 'inputnode.pial' ),
555
556
('outputnode.midthickness' , 'inputnode.midthickness' ),
556
557
('outputnode.thickness' , 'inputnode.thickness' ),
557
- ('outputnode.sphere_reg_fsLR' , 'inputnode.sphere_reg_fsLR' ),
558
558
('outputnode.anat_ribbon' , 'inputnode.anat_ribbon' ),
559
+ (
560
+ f'outputnode.sphere_reg_{ "msm" if msm_sulc else "fsLR" } ' ,
561
+ 'inputnode.sphere_reg_fsLR' ,
562
+ ),
559
563
]),
560
564
]) # fmt:skip
561
565
if fieldmap_id :
0 commit comments