Skip to content

Commit 5b38fe5

Browse files
committed
added example to docstring, removed leftover genfile
1 parent d0640de commit 5b38fe5

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,6 @@ class TCorr1DInputSpec(AFNICommandInputSpec):
13241324
name_template='%s_correlation.nii.gz',
13251325
argstr = '-prefix %s',
13261326
name_source = 'xset',
1327-
genfile = True,
13281327
keep_extension = True)
13291328
pearson = traits.Bool(desc='Correlation is the normal' +
13301329
' Pearson correlation coefficient',
@@ -1359,6 +1358,14 @@ class TCorr1D(AFNICommand):
13591358
in the input 3D+time dataset.
13601359
For complete details, see the `3dTcorr1D Documentation.
13611360
<http://afni.nimh.nih.gov/pub/dist/doc/program_help/3dTcorr1D.html>`_
1361+
1362+
>>> from nipype.interfaces import afni as afni
1363+
>>> tcorr1D = afni.TCorr1D()
1364+
>>> tcorr1D.inputs.xset= 'u_rc1s1_Template.nii'
1365+
>>> tcorr1D.inputs.y_1d = 'seed.1D'
1366+
>>> tcorr1D.cmdline
1367+
'3dTcorr1D -prefix u_rc1s1_Template_correlation.nii.gz u_rc1s1_Template.nii seed.1D'
1368+
>>> res = tcorr1D.run() # doctest: +SKIP
13621369
"""
13631370

13641371
_cmd = '3dTcorr1D'

0 commit comments

Comments
 (0)