Skip to content

Commit 6401e97

Browse files
committed
Merge remote-tracking branch 'upstream/master' into enh-mrtrix3
2 parents 1197307 + 775e21b commit 6401e97

File tree

7 files changed

+49
-0
lines changed

7 files changed

+49
-0
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,12 @@ class AllineateInputSpec(AFNICommandInputSpec):
438438
traits.Enum(*_dirs),
439439
argstr='-nwarp_fixdep%s',
440440
desc='To fix non-linear warp dependency along directions.')
441+
verbose = traits.Bool(
442+
argstr='-verb',
443+
desc='Print out verbose progress reports.')
444+
quiet = traits.Bool(
445+
argstr='-quiet',
446+
desc="Don't print out verbose progress reports.")
441447

442448

443449
class AllineateOutputSpec(TraitedSpec):

nipype/interfaces/afni/tests/test_auto_Allineate.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ def test_Allineate_inputs():
9595
outputtype=dict(),
9696
overwrite=dict(argstr='-overwrite',
9797
),
98+
quiet=dict(argstr='-quiet',
99+
),
98100
reference=dict(argstr='-base %s',
99101
),
100102
replacebase=dict(argstr='-replacebase',
@@ -118,6 +120,8 @@ def test_Allineate_inputs():
118120
),
119121
usetemp=dict(argstr='-usetemp',
120122
),
123+
verbose=dict(argstr='-verb',
124+
),
121125
warp_type=dict(argstr='-warp %s',
122126
),
123127
warpfreeze=dict(argstr='-warpfreeze',

nipype/interfaces/afni/tests/test_auto_Copy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ def test_Copy_inputs():
3030
terminal_output=dict(deprecated='1.0.0',
3131
nohash=True,
3232
),
33+
verbose=dict(argstr='-verb',
34+
),
3335
)
3436
inputs = Copy.input_spec()
3537

nipype/interfaces/afni/tests/test_auto_MaskTool.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ def test_MaskTool_inputs():
4949
),
5050
union=dict(argstr='-union',
5151
),
52+
verbose=dict(argstr='-verb %s',
53+
),
5254
)
5355
inputs = MaskTool.input_spec()
5456

nipype/interfaces/afni/tests/test_auto_TCat.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def test_TCat_inputs():
3232
terminal_output=dict(deprecated='1.0.0',
3333
nohash=True,
3434
),
35+
verbose=dict(argstr='-verb',
36+
),
3537
)
3638
inputs = TCat.input_spec()
3739

nipype/interfaces/afni/tests/test_auto_Unifize.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
def test_Unifize_inputs():
77
input_map = dict(args=dict(argstr='%s',
88
),
9+
cl_frac=dict(argstr='-clfrac %f',
10+
),
911
environ=dict(nohash=True,
1012
usedefault=True,
1113
),
@@ -31,14 +33,19 @@ def test_Unifize_inputs():
3133
),
3234
out_file=dict(argstr='-prefix %s',
3335
name_source='in_file',
36+
name_template='%s_unifized',
3437
),
3538
outputtype=dict(),
39+
quiet=dict(argstr='-quiet',
40+
),
3641
rbt=dict(argstr='-rbt %f %f %f',
3742
),
3843
scale_file=dict(argstr='-ssave %s',
3944
),
4045
t2=dict(argstr='-T2',
4146
),
47+
t2_up=dict(argstr='-T2up %f',
48+
),
4249
terminal_output=dict(deprecated='1.0.0',
4350
nohash=True,
4451
),

nipype/interfaces/afni/utils.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,9 @@ class CopyInputSpec(AFNICommandInputSpec):
751751
argstr='%s',
752752
position=-1,
753753
name_source='in_file')
754+
verbose = traits.Bool(
755+
desc='print progress reports',
756+
argstr='-verb')
754757

755758

756759
class Copy(AFNICommand):
@@ -1377,6 +1380,9 @@ class MaskToolInputSpec(AFNICommandInputSpec):
13771380
'or using the labels in {R,L,A,P,I,S}.',
13781381
argstr='-fill_dirs %s',
13791382
requires=['fill_holes'])
1383+
verbose = traits.Int(
1384+
desc='specify verbosity level, for 0 to 3',
1385+
argstr='-verb %s')
13801386

13811387

13821388
class MaskToolOutputSpec(TraitedSpec):
@@ -1985,6 +1991,9 @@ class TCatInputSpec(AFNICommandInputSpec):
19851991
'dataset mean back in. Option -rlt++ adds overall mean of all '
19861992
'dataset timeseries back in.',
19871993
position=1)
1994+
verbose = traits.Bool(
1995+
desc='Print out some verbose output as the program',
1996+
argstr='-verb')
19881997

19891998

19901999
class TCat(AFNICommand):
@@ -2291,6 +2300,7 @@ class UnifizeInputSpec(AFNICommandInputSpec):
22912300
exists=True,
22922301
copyfile=False)
22932302
out_file = File(
2303+
name_template='%s_unifized',
22942304
desc='output image file name',
22952305
argstr='-prefix %s',
22962306
name_source='in_file')
@@ -2337,6 +2347,22 @@ class UnifizeInputSpec(AFNICommandInputSpec):
23372347
'b = bottom percentile of normalizing data range, [default=70.0]\n'
23382348
'r = top percentile of normalizing data range, [default=80.0]\n',
23392349
argstr='-rbt %f %f %f')
2350+
t2_up = traits.Float(
2351+
desc='Option for AFNI experts only.'
2352+
'Set the upper percentile point used for T2-T1 inversion. '
2353+
'Allowed to be anything between 90 and 100 (inclusive), with '
2354+
'default to 98.5 (for no good reason).',
2355+
argstr='-T2up %f')
2356+
cl_frac = traits.Float(
2357+
desc='Option for AFNI experts only.'
2358+
'Set the automask \'clip level fraction\'. Must be between '
2359+
'0.1 and 0.9. A small fraction means to make the initial '
2360+
'threshold for clipping (a la 3dClipLevel) smaller, which '
2361+
'will tend to make the mask larger. [default=0.1]',
2362+
argstr='-clfrac %f')
2363+
quiet = traits.Bool(
2364+
desc='Don\'t print the progress messages.',
2365+
argstr='-quiet')
23402366

23412367

23422368
class UnifizeOutputSpec(TraitedSpec):

0 commit comments

Comments
 (0)