Skip to content

Commit 416610f

Browse files
committed
fix(workflow): resolve inconsistency with --fs-no-reconall
1 parent aa1456e commit 416610f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

fmriprep/workflows/bold/base.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -728,11 +728,20 @@ def init_func_preproc_wf(
728728
('outputnode.out_warp', 'inputnode.fieldwarp')]),
729729
(bold_std_trans_wf, outputnode, [('outputnode.bold_std', 'bold_std'),
730730
('outputnode.bold_std_ref', 'bold_std_ref'),
731-
('outputnode.bold_mask_std', 'bold_mask_std'),
732-
('outputnode.bold_aseg_std', 'bold_aseg_std'),
733-
('outputnode.bold_aparc_std', 'bold_aparc_std')]),
731+
('outputnode.bold_mask_std', 'bold_mask_std')]),
734732
])
735733

734+
if freesurfer:
735+
workflow.connect([
736+
(bold_std_trans_wf, func_derivatives_wf, [
737+
('poutputnode.bold_aseg_std', 'inputnode.bold_aseg_std'),
738+
('poutputnode.bold_aparc_std', 'inputnode.bold_aparc_std'),
739+
]),
740+
(bold_std_trans_wf, outputnode, [
741+
('outputnode.bold_aseg_std', 'bold_aseg_std'),
742+
('outputnode.bold_aparc_std', 'bold_aparc_std')]),
743+
])
744+
736745
if 'MNI152NLin2009cAsym' in std_spaces:
737746
carpetplot_wf = init_carpetplot_wf(
738747
standard_spaces=std_spaces,
@@ -773,8 +782,6 @@ def init_func_preproc_wf(
773782
(bold_std_trans_wf, func_derivatives_wf, [
774783
('poutputnode.bold_std_ref', 'inputnode.bold_std_ref'),
775784
('poutputnode.bold_std', 'inputnode.bold_std'),
776-
('poutputnode.bold_aseg_std', 'inputnode.bold_aseg_std'),
777-
('poutputnode.bold_aparc_std', 'inputnode.bold_aparc_std'),
778785
('poutputnode.bold_mask_std', 'inputnode.bold_mask_std'),
779786
]),
780787
])

0 commit comments

Comments
 (0)