diff --git a/fmriprep/workflows/base.py b/fmriprep/workflows/base.py index 1e32e4e8a..2bbc739b0 100644 --- a/fmriprep/workflows/base.py +++ b/fmriprep/workflows/base.py @@ -225,6 +225,7 @@ def init_single_subject_wf(subject_id: str): ) spaces = config.workflow.spaces + msm_sulc = config.workflow.run_msmsulc anatomical_cache = {} if config.execution.derivatives: @@ -300,7 +301,7 @@ def init_single_subject_wf(subject_id: str): freesurfer=config.workflow.run_reconall, hires=config.workflow.hires, longitudinal=config.workflow.longitudinal, - msm_sulc=config.workflow.run_msmsulc, + msm_sulc=msm_sulc, t1w=subject_data['t1w'], t2w=subject_data['t2w'], skull_strip_mode=config.workflow.skull_strip_t1w, @@ -554,8 +555,11 @@ def init_single_subject_wf(subject_id: str): ('outputnode.pial', 'inputnode.pial'), ('outputnode.midthickness', 'inputnode.midthickness'), ('outputnode.thickness', 'inputnode.thickness'), - ('outputnode.sphere_reg_fsLR', 'inputnode.sphere_reg_fsLR'), ('outputnode.anat_ribbon', 'inputnode.anat_ribbon'), + ( + f'outputnode.sphere_reg_{"msm" if msm_sulc else "fsLR"}', + 'inputnode.sphere_reg_fsLR', + ), ]), ]) # fmt:skip if fieldmap_id: