Skip to content

Commit 33a1fff

Browse files
authored
Merge pull request #3 from tsalo/afni-deconvolve
Add glt doctest.
2 parents 6d64cf2 + ebad803 commit 33a1fff

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

nipype/interfaces/afni/model.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,20 @@ class Deconvolve(AFNICommand):
212212
>>> deconvolve.cmdline # doctest: +ALLOW_UNICODE
213213
'3dDeconvolve -input functional.nii functional2.nii -num_stimts 2 -bucket output.nii -stim_times 1 timeseries.txt SPMG1(4) -stim_times 2 timeseries.txt SPMG2(4) -x1D output.1D'
214214
>>> res = deconvolve.run() # doctest: +SKIP
215+
216+
>>> from nipype.interfaces import afni
217+
>>> deconvolve = afni.Deconvolve()
218+
>>> deconvolve.inputs.in_files = ['functional.nii', 'functional2.nii']
219+
>>> deconvolve.inputs.out_file = 'output.nii'
220+
>>> deconvolve.inputs.x1D = 'output.1D'
221+
>>> stim_times = [(1, 'timeseries.txt', 'SPMG1(4)'), (2, 'timeseries.txt', 'SPMG2(4)')]
222+
>>> deconvolve.inputs.stim_times = stim_times
223+
>>> deconvolve.inputs.stim_label = [(1, 'Houses'), (2, 'Apartments')]
224+
>>> deconvolve.inputs.gltsym = [('+Houses -Apartments')]
225+
>>> deconvolve.inputs.glt_label = [(1, 'Houses_Apartments')]
226+
>>> deconvolve.cmdline # doctest: +ALLOW_UNICODE
227+
"3dDeconvolve -glt_label 1 Houses_Apartments -gltsym SYM: +Houses -Apartments -input functional.nii functional2.nii -num_glt 1 -num_stimts 2 -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"
228+
>>> res = deconvolve.run() # doctest: +SKIP
215229
"""
216230

217231
_cmd = '3dDeconvolve'

0 commit comments

Comments
 (0)