@@ -53,7 +53,7 @@ class GTMSegInputSpec(FSTraitedSpec):
53
53
usedefault = True ,
54
54
)
55
55
56
- usf = traits .Int (argstr = "--usf %i" , desc = "upsampling factor (default is 2)" )
56
+ upsampling_factor = traits .Int (argstr = "--usf %i" , desc = "upsampling factor (default is 2)" )
57
57
58
58
subsegwm = traits .Bool (
59
59
argstr = "--subsegwm" , desc = "subsegment WM into lobes (default)"
@@ -89,7 +89,7 @@ class GTMSegInputSpec(FSTraitedSpec):
89
89
desc = "annot lhbase rhbase : annotation to use for WM segmentation (with --subsegwm, default is lobes 3200 4200)" ,
90
90
)
91
91
92
- output_usf = traits .Int (
92
+ output_upsampling_factor = traits .Int (
93
93
argstr = "--output-usf %i" ,
94
94
desc = "set output USF different than USF, mostly for debugging" ,
95
95
)
@@ -118,7 +118,7 @@ class GTMSegInputSpec(FSTraitedSpec):
118
118
119
119
120
120
class GTMSegOutputSpec (TraitedSpec ):
121
- out_file = File (exists = True , desc = "GTM segmentation" )
121
+ out_file = File (desc = "GTM segmentation" )
122
122
123
123
124
124
class GTMSeg (FSCommand ):
@@ -139,13 +139,10 @@ class GTMSeg(FSCommand):
139
139
def _list_outputs (self ):
140
140
outputs = self .output_spec ().get ()
141
141
outputs ['gtm_file' ] = os .path .join (
142
- self .inputs .subjects_dir , self .inputs .subject_id , 'mri' , 'gtmseg.mgz'
142
+ self .inputs .subjects_dir , self .inputs .subject_id , 'mri' , self . inputs . out_file
143
143
)
144
144
return outputs
145
145
146
- def _format_arg (self , name , spec , value ):
147
- return super (GTMSeg , self )._format_arg (name , spec , value )
148
-
149
146
150
147
class GTMPVCInputSpec (FSTraitedSpec ):
151
148
0 commit comments