Skip to content

ENH Added grad_dev input to fsl.dti.bedpostx5 interface #1493

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 6 commits into from
Jun 7, 2016
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
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Release 0.12.0-rc1 (April 20, 2016)
============

* ENH: Added grad_dev input to fsl.dti.bedpostx5 interface(https://github.com/nipy/nipype/pull/1493)
* ENH: ResourceMultiProc plugin to support resource allocation (https://github.com/nipy/nipype/pull/1372)
* ENH: Added dcm2niix interface (https://github.com/nipy/nipype/pull/1435)
* ENH: Add nipype_crash_search command (https://github.com/nipy/nipype/pull/1422)
Expand Down
5 changes: 5 additions & 0 deletions nipype/interfaces/fsl/dti.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ class BEDPOSTX5InputSpec(FSLXCommandInputSpec):
usedefault=True, position=1, argstr='%s')
gradnonlin = traits.Bool(False, argstr='-g', desc=('consider gradient '
'nonlinearities, default off'))
grad_dev = File(exists=True, desc='grad_dev file, if gradnonlin, -g is True')
use_gpu = traits.Bool(False, desc='Use the GPU version of bedpostx')


Expand Down Expand Up @@ -348,6 +349,10 @@ def _run_interface(self, runtime):
os.path.join(subjectdir, 'bvals'))
copyfile(self.inputs.bvecs,
os.path.join(subjectdir, 'bvecs'))
if isdefined(self.inputs.grad_dev):
_, _, ext = split_filename(self.inputs.grad_dev)
copyfile(self.inputs.grad_dev,
os.path.join(subjectdir, 'grad_dev' + ext))

retval = super(BEDPOSTX5, self)._run_interface(runtime)

Expand Down
1 change: 1 addition & 0 deletions nipype/interfaces/fsl/tests/test_auto_BEDPOSTX5.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def test_BEDPOSTX5_inputs():
),
fudge=dict(argstr='-w %d',
),
grad_dev=dict(),
gradnonlin=dict(argstr='-g',
),
ignore_exception=dict(nohash=True,
Expand Down