Repository: nipy/nipype

Issue:
Wrong argstr for fsl:bedpostx
### Summary

File fsl/dti.py, Line 174:
An argument "burninnoard" for bedpostx is set. This argument does not exist, bedpostx crashes.
The correct argument is "burnin_noard".

### Solution
Please change 
argstr='--burninnoard=%d',
to
argstr='--burnin_noard=%d',

Discussion:

Patch:
diff --git a/nipype/interfaces/fsl/dti.py b/nipype/interfaces/fsl/dti.py
index f318b5cb1..d8812cec6 100644
--- a/nipype/interfaces/fsl/dti.py
+++ b/nipype/interfaces/fsl/dti.py
@@ -171,7 +171,7 @@ class FSLXCommandInputSpec(FSLCommandInputSpec):
         low=0,
         value=0,
         usedefault=True,
-        argstr='--burninnoard=%d',
+        argstr='--burnin_noard=%d',
         desc=('num of burnin jumps before the ard is'
               ' imposed'))
     sample_every = traits.Range(
@@ -424,7 +424,7 @@ class BEDPOSTX5(FSLXCommand):
     >>> bedp = fsl.BEDPOSTX5(bvecs='bvecs', bvals='bvals', dwi='diffusion.nii',
     ...                     mask='mask.nii', n_fibres=1)
     >>> bedp.cmdline
-    'bedpostx bedpostx -b 0 --burninnoard=0 --forcedir -n 1 -j 5000 \
+    'bedpostx bedpostx -b 0 --burnin_noard=0 --forcedir -n 1 -j 5000 \
 -s 1 --updateproposalevery=40'
 
     """


Test patch:
diff --git a/nipype/interfaces/fsl/tests/test_auto_BEDPOSTX5.py b/nipype/interfaces/fsl/tests/test_auto_BEDPOSTX5.py
index b105405c7..1ac5db111 100644
--- a/nipype/interfaces/fsl/tests/test_auto_BEDPOSTX5.py
+++ b/nipype/interfaces/fsl/tests/test_auto_BEDPOSTX5.py
@@ -15,7 +15,7 @@ def test_BEDPOSTX5_inputs():
             usedefault=True,
         ),
         burn_in_no_ard=dict(
-            argstr='--burninnoard=%d',
+            argstr='--burnin_noard=%d',
             usedefault=True,
         ),
         bvals=dict(mandatory=True, ),
diff --git a/nipype/interfaces/fsl/tests/test_auto_FSLXCommand.py b/nipype/interfaces/fsl/tests/test_auto_FSLXCommand.py
index b215f70bc..fd85eee3b 100644
--- a/nipype/interfaces/fsl/tests/test_auto_FSLXCommand.py
+++ b/nipype/interfaces/fsl/tests/test_auto_FSLXCommand.py
@@ -15,7 +15,7 @@ def test_FSLXCommand_inputs():
             usedefault=True,
         ),
         burn_in_no_ard=dict(
-            argstr='--burninnoard=%d',
+            argstr='--burnin_noard=%d',
             usedefault=True,
         ),
         bvals=dict(
diff --git a/nipype/interfaces/fsl/tests/test_auto_XFibres5.py b/nipype/interfaces/fsl/tests/test_auto_XFibres5.py
index 25da78450..d72bb3bb4 100644
--- a/nipype/interfaces/fsl/tests/test_auto_XFibres5.py
+++ b/nipype/interfaces/fsl/tests/test_auto_XFibres5.py
@@ -15,7 +15,7 @@ def test_XFibres5_inputs():
             usedefault=True,
         ),
         burn_in_no_ard=dict(
-            argstr='--burninnoard=%d',
+            argstr='--burnin_noard=%d',
             usedefault=True,
         ),
         bvals=dict(