@@ -728,11 +728,20 @@ def init_func_preproc_wf(
728
728
('outputnode.out_warp' , 'inputnode.fieldwarp' )]),
729
729
(bold_std_trans_wf , outputnode , [('outputnode.bold_std' , 'bold_std' ),
730
730
('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' )]),
734
732
])
735
733
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
+
736
745
if 'MNI152NLin2009cAsym' in std_spaces :
737
746
carpetplot_wf = init_carpetplot_wf (
738
747
standard_spaces = std_spaces ,
@@ -773,8 +782,6 @@ def init_func_preproc_wf(
773
782
(bold_std_trans_wf , func_derivatives_wf , [
774
783
('poutputnode.bold_std_ref' , 'inputnode.bold_std_ref' ),
775
784
('poutputnode.bold_std' , 'inputnode.bold_std' ),
776
- ('poutputnode.bold_aseg_std' , 'inputnode.bold_aseg_std' ),
777
- ('poutputnode.bold_aparc_std' , 'inputnode.bold_aparc_std' ),
778
785
('poutputnode.bold_mask_std' , 'inputnode.bold_mask_std' ),
779
786
]),
780
787
])
0 commit comments