From d2bb04589f8bcabad8ebd11e72a2b6367a8f4f46 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Wed, 15 Nov 2023 17:09:20 -0500 Subject: [PATCH] FIX: Use msmsulc registration --- fmriprep/workflows/base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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: