@@ -87,10 +87,17 @@ class DeconvolveInputSpec(AFNICommandInputSpec):
87
87
desc = 'Build a mask automatically from input data (will be slow for '
88
88
'long time series datasets)' ,
89
89
argstr = '-automask' )
90
+ STATmask = File (
91
+ desc = 'Build a mask from input file, and use this mask for the purpose '
92
+ 'of reporting truncation-to float issues AND for computing the '
93
+ 'FDR curves. The actual results ARE not masked with this option '
94
+ '(only with \' mask\' or \' automask\' options).' ,
95
+ argstr = '-STATmask %s' ,
96
+ exists = True )
90
97
censor = File (
91
- desc = 'Filename of censor .1D time series. This is a file of 1s and 0s, '
92
- 'indicating which time points are to be included (1) and which '
93
- 'are to be excluded (0).' ,
98
+ desc = 'Filename of censor .1D time series. This is a file of 1s and '
99
+ '0s, indicating which time points are to be included (1) and '
100
+ 'which are to be excluded (0).' ,
94
101
argstr = '-censor %s' ,
95
102
exists = True )
96
103
polort = traits .Int (
@@ -181,8 +188,9 @@ class DeconvolveInputSpec(AFNICommandInputSpec):
181
188
182
189
183
190
class DeconvolveOutputSpec (AFNICommandOutputSpec ):
184
- out_file = File (desc = 'output statistics file' ,
185
- exists = True )
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' )
186
194
187
195
188
196
class Deconvolve (AFNICommand ):
@@ -202,16 +210,16 @@ class Deconvolve(AFNICommand):
202
210
>>> stim_times = [(1, 'timeseries.txt', 'SPMG1(4)'), (2, 'timeseries.txt', 'SPMG2(4)')]
203
211
>>> deconvolve.inputs.stim_times = stim_times
204
212
>>> deconvolve.inputs.stim_label = [(1, 'Houses'), (2, 'Apartments')]
205
- >>> deconvolve.inputs.gltsym = [('SYM: +Houses -Apartments')]
206
- >>> deconvolve.inputs.glt_label = [(1, 'Houses-Apartments ')]
213
+ >>> deconvolve.inputs.gltsym = [('+Houses -Apartments')]
214
+ >>> deconvolve.inputs.glt_label = [(1, 'Houses_Apartments ')]
207
215
>>> deconvolve.cmdline # doctest: +ALLOW_UNICODE
208
216
'3dDeconvolve -num_stimts 2 -num_glt 1 -glt_label 1 Houses_Apartments -gltsym SYM: +Houses -Apartments -input functional.nii functional2.nii -bucket output.nii -stim_label 1 Houses -stim_label 2 Apartments -stim_times 1 timeseries.txt SPMG1(4) -stim_times 2 timeseries.txt SPMG2(4) -x1D output.1D'
209
217
>>> res = deconvolve.run() # doctest: +SKIP
210
218
"""
211
219
212
220
_cmd = '3dDeconvolve'
213
221
input_spec = DeconvolveInputSpec
214
- output_spec = AFNICommandOutputSpec
222
+ output_spec = DeconvolveOutputSpec
215
223
216
224
def _parse_inputs (self , skip = None ):
217
225
if skip is None :
@@ -230,5 +238,10 @@ def _list_outputs(self):
230
238
else :
231
239
outputs ['x1D' ] = self .inputs .x1D
232
240
241
+ _gen_fname_opts = {}
242
+ _gen_fname_opts ['basename' ] = self .inputs .out_file
243
+ _gen_fname_opts ['cwd' ] = os .getcwd ()
244
+
245
+ outputs ['reml_script' ] = self ._gen_fname (suffix = '.REML_cmd' , ** _gen_fname_opts )
233
246
outputs ['out_file' ] = self .inputs .out_file
234
247
return outputs
0 commit comments