@@ -286,7 +286,7 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
286286 (ar3_rh_wf1 , volume_mask , [('outputspec.pial' , 'rh_pial' )]),
287287 ])
288288
289- if fsvernum > 6 :
289+ if fsvernum >= 6 :
290290 ar3_wf .connect ([(inputspec , volume_mask , [('aseg_presurf' , 'in_aseg' )])])
291291 else :
292292 ar3_wf .connect ([(inputspec , volume_mask , [('aseg_presurf' , 'aseg' )])])
@@ -296,12 +296,8 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
296296
297297 for hemisphere , hemiwf2 in [('lh' , ar3_lh_wf2 ), ('rh' , ar3_rh_wf2 )]:
298298 if hemisphere == 'lh' :
299- opp_hemi = 'rh'
300- opp_wf = ar3_rh_wf2
301299 hemiwf1 = ar3_lh_wf1
302300 else :
303- opp_hemi = 'lh'
304- opp_wf = ar3_lh_wf2
305301 hemiwf1 = ar3_rh_wf1
306302
307303 hemi_inputs2 = ['wm' ,
@@ -603,7 +599,7 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
603599 'lh_ribbon' ),
604600 ('out_ribbon' , 'ribbon' )])])
605601
606- if fsvernum > 6 :
602+ if fsvernum >= 6 :
607603 apas_2_aseg = pe .Node (Apas2Aseg (), name = "Apas_2_Aseg" )
608604 ar3_wf .connect ([(aparc_2_aseg , apas_2_aseg , [('out_file' , 'in_file' )]),
609605 (relabel_hypos , aparc_2_aseg_2009 , [('out_file' , 'aseg' )])])
@@ -667,7 +663,7 @@ def out_aseg(in_aparcaseg, in_aseg, out_file):
667663 ]),
668664 ])
669665
670- if fsvernum > 6 :
666+ if fsvernum >= 6 :
671667 ar3_wf .connect (inputspec , 'aseg_presurf' , segstats , 'presurf_seg' )
672668 else :
673669 ar3_wf .connect (inputspec , 'aseg_presurf' , segstats , 'aseg' )
@@ -737,7 +733,7 @@ def out_aseg(in_aparcaseg, in_aseg, out_file):
737733 ]),
738734 ])
739735
740- if fsvernum > 6 :
736+ if fsvernum >= 6 :
741737 ar3_wf .connect (inputspec , 'aseg_presurf' , wm_segstats , 'presurf_seg' )
742738 else :
743739 ar3_wf .connect (inputspec , 'aseg_presurf' , wm_segstats , 'aseg' )
@@ -937,7 +933,7 @@ def out_aseg(in_aparcaseg, in_aseg, out_file):
937933 (volume_mask , outputspec , [('out_ribbon' , 'ribbon' ),
938934 ('lh_ribbon' , 'lh_ribbon' ),
939935 ('rh_ribbon' , 'rh_ribbon' )])])
940- if fsvernum > 6 :
936+ if fsvernum >= 6 :
941937 ar3_wf .connect ([(relabel_hypos , outputspec , [('out_file' , 'aseg_presurf_hypos' )])])
942938
943939
0 commit comments