Skip to content

Commit 450c7d2

Browse files
authored
Merge pull request #2255 from salma1601/afni_Warp_more_options
More options to afni's Warp
2 parents 1a4efff + efb43fd commit 450c7d2

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

nipype/interfaces/afni/preprocess.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2711,6 +2711,11 @@ class WarpInputSpec(AFNICommandInputSpec):
27112711
desc='apply transformation from 3dWarpDrive',
27122712
argstr='-matparent %s',
27132713
exists=True)
2714+
oblique_parent = File(
2715+
desc='Read in the oblique transformation matrix from an oblique '
2716+
'dataset and make cardinal dataset oblique to match',
2717+
argstr='-oblique_parent %s',
2718+
exists=True)
27142719
deoblique = traits.Bool(
27152720
desc='transform dataset from oblique to cardinal',
27162721
argstr='-deoblique')
@@ -2728,6 +2733,9 @@ class WarpInputSpec(AFNICommandInputSpec):
27282733
zpad = traits.Int(
27292734
desc='pad input dataset with N planes of zero on all sides.',
27302735
argstr='-zpad %d')
2736+
verbose = traits.Bool(
2737+
desc='Print out some information along the way.',
2738+
argstr='-verb')
27312739

27322740

27332741
class Warp(AFNICommand):

nipype/interfaces/afni/tests/test_auto_Warp.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ def test_Warp_inputs():
3232
num_threads=dict(nohash=True,
3333
usedefault=True,
3434
),
35+
oblique_parent=dict(argstr='-oblique_parent %s',
36+
),
3537
out_file=dict(argstr='-prefix %s',
3638
name_source='in_file',
3739
name_template='%s_warp',
@@ -42,6 +44,8 @@ def test_Warp_inputs():
4244
),
4345
tta2mni=dict(argstr='-tta2mni',
4446
),
47+
verbose=dict(argstr='-verb',
48+
),
4549
zpad=dict(argstr='-zpad %d',
4650
),
4751
)

0 commit comments

Comments
 (0)