@@ -53,7 +53,7 @@ class GTMSegInputSpec(FSTraitedSpec):
5353 desc = "run xcerebralseg on this subject to create apas+head.mgz"
5454 )
5555
56- out_file = File (
56+ gtm_file = File (
5757 argstr = "--o %s" ,
5858 desc = "output volume relative to subject/mri (default is gtmseg.mgz)"
5959 )
@@ -136,7 +136,7 @@ class GTMSegInputSpec(FSTraitedSpec):
136136
137137
138138class GTMSegOutputSpec (TraitedSpec ):
139- out_file = File (exists = True , desc = "GTM segmentation" )
139+ gtm_file = File (exists = True , desc = "GTM segmentation" )
140140
141141
142142class GTMSeg (FSCommand ):
@@ -155,6 +155,11 @@ class GTMSeg(FSCommand):
155155 input_spec = GTMSegInputSpec
156156 output_spec = GTMSegOutputSpec
157157
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+
158163 def _format_arg (self , name , spec , value ):
159164 return super (GTMSeg , self )._format_arg (name , spec , value )
160165
@@ -398,7 +403,7 @@ class GTMPVC(FSCommand):
398403 >>> gtmpvc.inputs.in_file = 'sub-01_ses-baseline_pet.nii.gz'
399404 >>> gtmpvc.inputs.segmentation = 'gtmseg.mgz'
400405 >>> gtmpvc.inputs.reg_file = 'sub-01_ses-baseline_pet_mean_reg.lta'
401- >>> gtmpvc.inputs.output_dir = 'pvc'
406+ >>> gtmpvc.inputs.pvc_dir = 'pvc'
402407 >>> gtmpvc.inputs.psf = 4
403408 >>> gtmpvc.inputs.default_seg_merge = True
404409 >>> gtmpvc.inputs.auto_mask = (1, 0.1)
@@ -515,7 +520,7 @@ def _list_outputs(self):
515520 ext = '.nii'
516521 else :
517522 ext = '.mgh'
518- outputs ['bp' ] = os .join (self .inputs .glm_dir , 'bp' + ext )
523+ outputs ['bp' ] = os .join (self .inputs .glm_dir , 'bp' , ext )
519524 return outputs
520525
521526class LoganRefInputSpec (GLMFitInputSpec ):
@@ -554,5 +559,5 @@ def _list_outputs(self):
554559 ext = '.nii'
555560 else :
556561 ext = '.mgh'
557- outputs ['bp' ] = os .join (self .inputs .glm_dir , 'bp' + ext )
562+ outputs ['bp' ] = os .join (self .inputs .glm_dir , 'bp' , ext )
558563 return outputs
0 commit comments