@@ -53,7 +53,7 @@ class GTMSegInputSpec(FSTraitedSpec):
53
53
desc = "run xcerebralseg on this subject to create apas+head.mgz"
54
54
)
55
55
56
- out_file = File (
56
+ gtm_file = File (
57
57
argstr = "--o %s" ,
58
58
desc = "output volume relative to subject/mri (default is gtmseg.mgz)"
59
59
)
@@ -136,7 +136,7 @@ class GTMSegInputSpec(FSTraitedSpec):
136
136
137
137
138
138
class GTMSegOutputSpec (TraitedSpec ):
139
- out_file = File (exists = True , desc = "GTM segmentation" )
139
+ gtm_file = File (exists = True , desc = "GTM segmentation" )
140
140
141
141
142
142
class GTMSeg (FSCommand ):
@@ -155,6 +155,11 @@ class GTMSeg(FSCommand):
155
155
input_spec = GTMSegInputSpec
156
156
output_spec = GTMSegOutputSpec
157
157
158
+ def _list_outputs (self ):
159
+ outputs = self .output_spec ().get ()
160
+ outputs ['gtm_file' ] = os .path .join (self .inputs .subjects_dir ,self .inputs .subject_id ,'mri' ,'gtmseg.mgz' )
161
+ return outputs
162
+
158
163
def _format_arg (self , name , spec , value ):
159
164
return super (GTMSeg , self )._format_arg (name , spec , value )
160
165
@@ -398,7 +403,7 @@ class GTMPVC(FSCommand):
398
403
>>> gtmpvc.inputs.in_file = 'sub-01_ses-baseline_pet.nii.gz'
399
404
>>> gtmpvc.inputs.segmentation = 'gtmseg.mgz'
400
405
>>> gtmpvc.inputs.reg_file = 'sub-01_ses-baseline_pet_mean_reg.lta'
401
- >>> gtmpvc.inputs.output_dir = 'pvc'
406
+ >>> gtmpvc.inputs.pvc_dir = 'pvc'
402
407
>>> gtmpvc.inputs.psf = 4
403
408
>>> gtmpvc.inputs.default_seg_merge = True
404
409
>>> gtmpvc.inputs.auto_mask = (1, 0.1)
@@ -515,7 +520,7 @@ def _list_outputs(self):
515
520
ext = '.nii'
516
521
else :
517
522
ext = '.mgh'
518
- outputs ['bp' ] = os .join (self .inputs .glm_dir , 'bp' + ext )
523
+ outputs ['bp' ] = os .join (self .inputs .glm_dir , 'bp' , ext )
519
524
return outputs
520
525
521
526
class LoganRefInputSpec (GLMFitInputSpec ):
@@ -554,5 +559,5 @@ def _list_outputs(self):
554
559
ext = '.nii'
555
560
else :
556
561
ext = '.mgh'
557
- outputs ['bp' ] = os .join (self .inputs .glm_dir , 'bp' + ext )
562
+ outputs ['bp' ] = os .join (self .inputs .glm_dir , 'bp' , ext )
558
563
return outputs
0 commit comments