@@ -122,21 +122,6 @@ def init_mcribs_surface_recon_wf(
122122 t2w_las = pe .Node (ReorientImage (target_orientation = 'LAS' ), name = 't2w_las' )
123123 seg_las = pe .Node (ReorientImage (target_orientation = 'LAS' ), name = 'seg_las' )
124124
125- mcribs_recon = pe .Node (
126- MCRIBReconAll (
127- surfrecon = True ,
128- surfrecon_method = 'Deformable' ,
129- join_thresh = 1.0 ,
130- fast_collision = True ,
131- nthreads = omp_nthreads ,
132- ),
133- name = 'mcribs_recon' ,
134- mem_gb = 5 ,
135- )
136- if mcribs_dir :
137- mcribs_recon .inputs .outdir = mcribs_dir
138- mcribs_recon .config = {'execution' : {'remove_unnecessary_outputs' : False }}
139-
140125 # dilated mask and use in recon-neonatal-cortex
141126 mask_dil = pe .Node (BinaryDilation (radius = 3 ), name = 'mask_dil' )
142127 mask_las = pe .Node (ReorientImage (target_orientation = 'LAS' ), name = 'mask_las' )
@@ -157,11 +142,26 @@ def init_mcribs_surface_recon_wf(
157142 name = 'n4_mcribs' ,
158143 )
159144
145+ mcribs_recon = pe .Node (
146+ MCRIBReconAll (
147+ surfrecon = True ,
148+ surfrecon_method = 'Deformable' ,
149+ join_thresh = 1.0 ,
150+ fast_collision = True ,
151+ nthreads = omp_nthreads ,
152+ outdir = mcribs_dir ,
153+ ),
154+ name = 'mcribs_recon' ,
155+ mem_gb = 5 ,
156+ )
157+ mcribs_recon .config = {'execution' : {'remove_unnecessary_outputs' : False }}
158+
160159 mcribs_postrecon = pe .Node (
161160 MCRIBReconAll (autorecon_after_surf = True , nthreads = omp_nthreads ),
162161 name = 'mcribs_postrecon' ,
163162 mem_gb = 5 ,
164163 )
164+ mcribs_postrecon .config = {'execution' : {'remove_unnecessary_outputs' : False }}
165165
166166 fssource = pe .Node (FreeSurferSource (), name = 'fssource' , run_without_submitting = True )
167167 midthickness_wf = init_make_midthickness_wf (omp_nthreads = omp_nthreads )
0 commit comments