Skip to content

Commit f341089

Browse files
committed
add all options for 3dTsmooth
1 parent 11d3422 commit f341089

File tree

1 file changed

+32
-5
lines changed

1 file changed

+32
-5
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2865,21 +2865,48 @@ class TSmoothInputSpec(AFNICommandInputSpec):
28652865
name_template='%s_smooth',
28662866
desc='output file from 3dTSmooth',
28672867
argstr='-prefix %s',
2868-
position=1,
28692868
name_source='in_file',
28702869
genfile=True)
2870+
datum = traits.Str(
2871+
desc='Sets the data type of the output dataset',
2872+
argstr='-datum %s')
2873+
lin = traits.Bool(
2874+
desc='3 point linear filter: 0.15*a + 0.70*b + 0.15*c'
2875+
'[This is the default smoother]',
2876+
argstr='-lin')
2877+
med = traits.Bool(
2878+
desc='3 point median filter: median(a,b,c)',
2879+
argstr='-med')
2880+
osf = traits.Bool(
2881+
desc='3 point order statistics filter:'
2882+
'0.15*min(a,b,c) + 0.70*median(a,b,c) + 0.15*max(a,b,c)',
2883+
argstr='-osf')
2884+
lin3 = traits.Int(
2885+
desc='3 point linear filter: 0.5*(1-m)*a + m*b + 0.5*(1-m)*c'
2886+
"Here, 'm' is a number strictly between 0 and 1.",
2887+
argstr='-3lin %d')
2888+
hamming = traits.Int(
2889+
argstr='-hamming %d',
2890+
desc='Use N point Hamming windows.'
2891+
'(N must be odd and bigger than 1.)')
2892+
blackman = traits.Int(
2893+
argstr='-blackman %d',
2894+
desc='Use N point Blackman windows.'
2895+
'(N must be odd and bigger than 1.)')
2896+
custom = File(
2897+
argstr='-custom %s',
2898+
desc='odd # of coefficients must be in a single column in ASCII file')
28712899
adaptive = traits.Int(
2872-
desc='adaptive',
28732900
argstr='-adaptive %d',
2874-
position=-2,
2875-
mandatory=False)
2901+
desc='use adaptive mean filtering of width N '
2902+
'(where N must be odd and bigger than 3).')
28762903

28772904

28782905
class TSmooth(AFNICommand):
28792906
"""Smooths each voxel time series in a 3D+time dataset and produces
28802907
as output a new 3D+time dataset (e.g., lowpass filter in time).
28812908
2882-
For complete details, see the `3dBandpass Documentation.
2909+
For complete details, see the `3dTsmooth Documentation.
28832910
<https://afni.nimh.nih.gov/pub/dist/doc/program_help/3dTSmooth.html>`_
28842911
28852912
Examples

0 commit comments

Comments
 (0)