Skip to content

Commit d2bb045

Browse files
committed
FIX: Use msmsulc registration
1 parent be5ba8f commit d2bb045

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

fmriprep/workflows/base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def init_single_subject_wf(subject_id: str):
225225
)
226226

227227
spaces = config.workflow.spaces
228+
msm_sulc = config.workflow.run_msmsulc
228229

229230
anatomical_cache = {}
230231
if config.execution.derivatives:
@@ -300,7 +301,7 @@ def init_single_subject_wf(subject_id: str):
300301
freesurfer=config.workflow.run_reconall,
301302
hires=config.workflow.hires,
302303
longitudinal=config.workflow.longitudinal,
303-
msm_sulc=config.workflow.run_msmsulc,
304+
msm_sulc=msm_sulc,
304305
t1w=subject_data['t1w'],
305306
t2w=subject_data['t2w'],
306307
skull_strip_mode=config.workflow.skull_strip_t1w,
@@ -554,8 +555,11 @@ def init_single_subject_wf(subject_id: str):
554555
('outputnode.pial', 'inputnode.pial'),
555556
('outputnode.midthickness', 'inputnode.midthickness'),
556557
('outputnode.thickness', 'inputnode.thickness'),
557-
('outputnode.sphere_reg_fsLR', 'inputnode.sphere_reg_fsLR'),
558558
('outputnode.anat_ribbon', 'inputnode.anat_ribbon'),
559+
(
560+
f'outputnode.sphere_reg_{"msm" if msm_sulc else "fsLR"}',
561+
'inputnode.sphere_reg_fsLR',
562+
),
559563
]),
560564
]) # fmt:skip
561565
if fieldmap_id:

0 commit comments

Comments
 (0)