diff --git a/nipype/interfaces/afni/tests/test_auto_Unifize.py b/nipype/interfaces/afni/tests/test_auto_Unifize.py index e9f5095619..1d82e5aed5 100644 --- a/nipype/interfaces/afni/tests/test_auto_Unifize.py +++ b/nipype/interfaces/afni/tests/test_auto_Unifize.py @@ -6,6 +6,8 @@ def test_Unifize_inputs(): input_map = dict(args=dict(argstr='%s', ), + cl_frac=dict(argstr='-clfrac %f', + ), environ=dict(nohash=True, usedefault=True, ), @@ -31,14 +33,19 @@ def test_Unifize_inputs(): ), out_file=dict(argstr='-prefix %s', name_source='in_file', + name_template='%s_unifized', ), outputtype=dict(), + quiet=dict(argstr='-quiet', + ), rbt=dict(argstr='-rbt %f %f %f', ), scale_file=dict(argstr='-ssave %s', ), t2=dict(argstr='-T2', ), + t2_up=dict(argstr='-T2up %f', + ), terminal_output=dict(deprecated='1.0.0', nohash=True, ), diff --git a/nipype/interfaces/afni/utils.py b/nipype/interfaces/afni/utils.py index 3e03adda92..6ffe3d6ffa 100644 --- a/nipype/interfaces/afni/utils.py +++ b/nipype/interfaces/afni/utils.py @@ -2291,6 +2291,7 @@ class UnifizeInputSpec(AFNICommandInputSpec): exists=True, copyfile=False) out_file = File( + name_template='%s_unifized', desc='output image file name', argstr='-prefix %s', name_source='in_file') @@ -2337,6 +2338,22 @@ class UnifizeInputSpec(AFNICommandInputSpec): 'b = bottom percentile of normalizing data range, [default=70.0]\n' 'r = top percentile of normalizing data range, [default=80.0]\n', argstr='-rbt %f %f %f') + t2_up = traits.Float( + desc='Option for AFNI experts only.' + 'Set the upper percentile point used for T2-T1 inversion. ' + 'Allowed to be anything between 90 and 100 (inclusive), with ' + 'default to 98.5 (for no good reason).', + argstr='-T2up %f') + cl_frac = traits.Float( + desc='Option for AFNI experts only.' + 'Set the automask \'clip level fraction\'. Must be between ' + '0.1 and 0.9. A small fraction means to make the initial ' + 'threshold for clipping (a la 3dClipLevel) smaller, which ' + 'will tend to make the mask larger. [default=0.1]', + argstr='-clfrac %f') + quiet = traits.Bool( + desc='Don\'t print the progress messages.', + argstr='-quiet') class UnifizeOutputSpec(TraitedSpec):