Skip to content

ENH: add more inputs to AFNI 3dAllineate interface #2149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion nipype/interfaces/afni/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class AllineateInputSpec(AFNICommandInputSpec):
desc='Use a two pass alignment strategy for all volumes, searching '
'for a large rotation+shift and then refining the alignment.')
two_blur = traits.Float(
argstr='-twoblur',
argstr='-twoblur %f',
desc='Set the blurring radius for the first pass in mm.')
two_first = traits.Bool(
argstr='-twofirst',
Expand Down Expand Up @@ -222,6 +222,18 @@ class AllineateInputSpec(AFNICommandInputSpec):
'EPI slices, and the base as comprising anatomically '
'\'true\' images. Only phase-encoding direction image '
'shearing and scaling will be allowed with this option.')
maxrot = traits.Float(
argstr='-maxrot %f',
desc='Maximum allowed rotation in degrees.')
maxshf = traits.Float(
argstr='-maxshf %f',
desc='Maximum allowed shift in mm.')
maxscl = traits.Float(
argstr='-maxscl %f',
desc='Maximum allowed scaling factor.')
maxshr = traits.Float(
argstr='-maxshr %f',
desc='Maximum allowed shearing factor.')
master = File(
exists=True,
argstr='-master %s',
Expand Down
10 changes: 9 additions & 1 deletion nipype/interfaces/afni/tests/test_auto_Allineate.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ def test_Allineate_inputs():
),
master=dict(argstr='-master %s',
),
maxrot=dict(argstr='-maxrot %f',
),
maxscl=dict(argstr='-maxscl %f',
),
maxshf=dict(argstr='-maxshf %f',
),
maxshr=dict(argstr='-maxshr %f',
),
newgrid=dict(argstr='-newgrid %f',
),
nmatch=dict(argstr='-nmatch %d',
Expand Down Expand Up @@ -88,7 +96,7 @@ def test_Allineate_inputs():
),
two_best=dict(argstr='-twobest %d',
),
two_blur=dict(argstr='-twoblur',
two_blur=dict(argstr='-twoblur %f',
),
two_first=dict(argstr='-twofirst',
),
Expand Down