@@ -121,7 +121,7 @@ class DeconvolveInputSpec(AFNICommandInputSpec):
121
121
desc = 'Stop running after writing .xmat.1D file' ,
122
122
argstr = '-x1D_stop' )
123
123
out_file = File (
124
- 'bucket .nii' ,
124
+ 'Decon .nii' ,
125
125
desc = 'Output statistics file' ,
126
126
argstr = '-bucket %s' )
127
127
jobs = traits .Int (
@@ -157,7 +157,7 @@ class DeconvolveInputSpec(AFNICommandInputSpec):
157
157
Str (desc = 'model' )),
158
158
desc = 'Generate a response model from a set of stimulus times'
159
159
' given in file.' ,
160
- argstr = '-stim_times %d %s %s ...' )
160
+ argstr = '-stim_times %d %s \' %s \' ...' )
161
161
stim_label = traits .List (
162
162
traits .Tuple (traits .Int (desc = 'k-th input stimulus' ),
163
163
Str (desc = 'stimulus label' )),
@@ -178,7 +178,7 @@ class DeconvolveInputSpec(AFNICommandInputSpec):
178
178
Str (desc = 'symbolic general linear test' ),
179
179
desc = 'General linear tests (i.e., contrasts) using symbolic '
180
180
'conventions (e.g., \' +Label1 -Label2\' )' ,
181
- argstr = '-gltsym SYM: %s...' )
181
+ argstr = '-gltsym \' SYM: %s\' ...' )
182
182
glt_label = traits .List (
183
183
traits .Tuple (traits .Int (desc = 'k-th general linear test' ),
184
184
Str (desc = 'GLT label' )),
@@ -187,10 +187,14 @@ class DeconvolveInputSpec(AFNICommandInputSpec):
187
187
requires = ['gltsym' ])
188
188
189
189
190
- class DeconvolveOutputSpec (AFNICommandOutputSpec ):
191
- out_file = File (desc = 'output statistics file' )
192
- reml_script = File (desc = 'Autogenerated script for 3dREML' )
193
- x1D = File (desc = 'save out X matrix' )
190
+ class DeconvolveOutputSpec (TraitedSpec ):
191
+ out_file = File (
192
+ desc = 'output statistics file' ,
193
+ exists = True )
194
+ reml_script = File (
195
+ desc = 'Autogenerated script for 3dREML' )
196
+ x1D = File (
197
+ desc = 'save out X matrix' )
194
198
195
199
196
200
class Deconvolve (AFNICommand ):
@@ -234,16 +238,17 @@ def _list_outputs(self):
234
238
outputs = self .output_spec ().get ()
235
239
if isdefined (self .inputs .x1D ):
236
240
if not self .inputs .x1D .endswith ('.xmat.1D' ):
237
- outputs ['x1D' ] = self .inputs .x1D + '.xmat.1D'
241
+ outputs ['x1D' ] = os . path . abspath ( self .inputs .x1D + '.xmat.1D' )
238
242
else :
239
- outputs ['x1D' ] = self .inputs .x1D
243
+ outputs ['x1D' ] = os . path . abspath ( self .inputs .x1D )
240
244
241
245
_gen_fname_opts = {}
242
246
_gen_fname_opts ['basename' ] = self .inputs .out_file
243
247
_gen_fname_opts ['cwd' ] = os .getcwd ()
248
+ _gen_fname_opts ['suffix' ] = '.REML_cmd'
244
249
245
- outputs ['reml_script' ] = self ._gen_fname (suffix = '.REML_cmd' , ** _gen_fname_opts )
246
- outputs ['out_file' ] = self .inputs .out_file
250
+ outputs ['reml_script' ] = self ._gen_fname (** _gen_fname_opts )
251
+ outputs ['out_file' ] = os . path . abspath ( self .inputs .out_file )
247
252
return outputs
248
253
249
254
0 commit comments