@@ -286,7 +286,7 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
286
286
(ar3_rh_wf1 , volume_mask , [('outputspec.pial' , 'rh_pial' )]),
287
287
])
288
288
289
- if fsvernum > 6 :
289
+ if fsvernum >= 6 :
290
290
ar3_wf .connect ([(inputspec , volume_mask , [('aseg_presurf' , 'in_aseg' )])])
291
291
else :
292
292
ar3_wf .connect ([(inputspec , volume_mask , [('aseg_presurf' , 'aseg' )])])
@@ -296,12 +296,8 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
296
296
297
297
for hemisphere , hemiwf2 in [('lh' , ar3_lh_wf2 ), ('rh' , ar3_rh_wf2 )]:
298
298
if hemisphere == 'lh' :
299
- opp_hemi = 'rh'
300
- opp_wf = ar3_rh_wf2
301
299
hemiwf1 = ar3_lh_wf1
302
300
else :
303
- opp_hemi = 'lh'
304
- opp_wf = ar3_lh_wf2
305
301
hemiwf1 = ar3_rh_wf1
306
302
307
303
hemi_inputs2 = ['wm' ,
@@ -603,7 +599,7 @@ def create_AutoRecon3(name="AutoRecon3", qcache=False, plugin_args=None,
603
599
'lh_ribbon' ),
604
600
('out_ribbon' , 'ribbon' )])])
605
601
606
- if fsvernum > 6 :
602
+ if fsvernum >= 6 :
607
603
apas_2_aseg = pe .Node (Apas2Aseg (), name = "Apas_2_Aseg" )
608
604
ar3_wf .connect ([(aparc_2_aseg , apas_2_aseg , [('out_file' , 'in_file' )]),
609
605
(relabel_hypos , aparc_2_aseg_2009 , [('out_file' , 'aseg' )])])
@@ -667,7 +663,7 @@ def out_aseg(in_aparcaseg, in_aseg, out_file):
667
663
]),
668
664
])
669
665
670
- if fsvernum > 6 :
666
+ if fsvernum >= 6 :
671
667
ar3_wf .connect (inputspec , 'aseg_presurf' , segstats , 'presurf_seg' )
672
668
else :
673
669
ar3_wf .connect (inputspec , 'aseg_presurf' , segstats , 'aseg' )
@@ -737,7 +733,7 @@ def out_aseg(in_aparcaseg, in_aseg, out_file):
737
733
]),
738
734
])
739
735
740
- if fsvernum > 6 :
736
+ if fsvernum >= 6 :
741
737
ar3_wf .connect (inputspec , 'aseg_presurf' , wm_segstats , 'presurf_seg' )
742
738
else :
743
739
ar3_wf .connect (inputspec , 'aseg_presurf' , wm_segstats , 'aseg' )
@@ -937,7 +933,7 @@ def out_aseg(in_aparcaseg, in_aseg, out_file):
937
933
(volume_mask , outputspec , [('out_ribbon' , 'ribbon' ),
938
934
('lh_ribbon' , 'lh_ribbon' ),
939
935
('rh_ribbon' , 'rh_ribbon' )])])
940
- if fsvernum > 6 :
936
+ if fsvernum >= 6 :
941
937
ar3_wf .connect ([(relabel_hypos , outputspec , [('out_file' , 'aseg_presurf_hypos' )])])
942
938
943
939
0 commit comments