Skip to content

Commit e818b64

Browse files
committed
ENH: Added transposeInputBVectors to DWIConvert input spec
1 parent 6d4535e commit e818b64

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

nipype/interfaces/semtools/diffusion/diffusion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ class DWIConvertInputSpec(CommandLineInputSpec):
245245
gradientVectorFile = traits.Either(traits.Bool, File(), hash_files=False, desc="Text file giving gradient vectors", argstr="--gradientVectorFile %s")
246246
smallGradientThreshold = traits.Float(desc="If a gradient magnitude is greater than 0 and less than smallGradientThreshold, then DWIConvert will display an error message and quit, unless the useBMatrixGradientDirections option is set.", argstr="--smallGradientThreshold %f")
247247
allowLossyConversion = traits.Bool(desc="The only supported output type is \'short\'. Conversion from images of a different type may cause data loss due to rounding or truncation. Use with caution!", argstr="--allowLossyConversion ")
248+
transposeInputBVectors = traits.Bool(desc="FSL input BVectors are expected to be encoded in the input file as one vector per line. If it is not the case, use this option to transpose the file as it is read.", argstr="--transposeInputBVectors ")
248249

249250

250251
class DWIConvertOutputSpec(TraitedSpec):

nipype/interfaces/semtools/diffusion/tests/test_auto_DWIConvert.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ def test_DWIConvert_inputs():
5353
),
5454
allowLossyConversion=dict(argstr='--allowLossyConversion ',
5555
),
56+
transposeInputBVectors=dict(argstr='--transposeInputBVectors ',
57+
),
5658
)
5759
inputs = DWIConvert.input_spec()
5860

0 commit comments

Comments
 (0)