@@ -463,12 +463,10 @@ def init_infant_anat_wf(
463
463
# M-CRIB-S to dHCP42week (32k)
464
464
sphere_reg_wf = init_mcribs_sphere_reg_wf ()
465
465
466
- # fmt:off
467
466
wf .connect ([
468
467
(t2w_template_wf , denoise_t2w , [('outputnode.anat_ref' , 'input_image' )]),
469
468
(denoise_t2w , surface_recon_wf , [('output_image' , 'inputnode.t2w' )]),
470
- ])
471
- # fmt:on
469
+ ]) # fmt:skip
472
470
if derivatives .aseg :
473
471
wf .connect (deriv_buffer , 't2w_aseg' , surface_recon_wf , 'inputnode.ants_segs' )
474
472
if derivatives .mask :
@@ -811,7 +809,7 @@ def init_infant_single_anat_wf(
811
809
if not recon_method :
812
810
return workflow
813
811
814
- elif recon_method == 'freesurfer' :
812
+ if recon_method == 'freesurfer' :
815
813
from smriprep .workflows .surfaces import init_surface_recon_wf
816
814
817
815
surface_recon_wf = init_surface_recon_wf (omp_nthreads = omp_nthreads , hires = hires )
@@ -853,6 +851,12 @@ def init_infant_single_anat_wf(
853
851
else :
854
852
raise NotImplementedError
855
853
854
+ if recon_method in ('freesurfer' , 'infantfs' ):
855
+ from smriprep .workflows .surfaces import init_sphere_reg_wf
856
+
857
+ # fsaverage to fsLR
858
+ sphere_reg_wf = init_sphere_reg_wf ()
859
+
856
860
# Anatomical ribbon file using HCP signed-distance volume method
857
861
anat_ribbon_wf = init_anat_ribbon_wf ()
858
862
@@ -865,8 +869,7 @@ def init_infant_single_anat_wf(
865
869
("outputnode.anat_ref" , "inputnode.t1w" ),
866
870
]),
867
871
(mask_buffer , surface_recon_wf , [
868
- ("anat_brain" , "inputnode.skullstripped_t1" ),
869
- ("anat_mask" , "inputnode.anat_mask" )]),
872
+ ("anat_brain" , "inputnode.skullstripped_t1" )]),
870
873
(anat_preproc_wf , surface_recon_wf , [
871
874
("outputnode.anat_preproc" , "inputnode.corrected_t1" )]),
872
875
(surface_recon_wf , outputnode , [
0 commit comments