Description
Summary
When the gradient_matrix.txt file is created from bvecs, the lines are read in order y, z, x; instead of x, y, z swapping all the directions in the resulting gradient_matrix.txt file
Actual behavior
The columns of the actual gradient_matrix.txt are y, z, x, b-value.
Expected behavior
The columns of the expected gradient_matrix.txt must be x, y ,z, b-value.
How to replicate the behavior
Just run the example in the documentation of nipype interface for Diffusion Toolkit. My data comes from a Philips Scanner.
Platform details:
{'scipy_version': '1.0.0', 'sys_executable': '/Users/miguel/anaconda/bin/python', 'sys_platform': 'darwin', 'commit_hash': '%h', 'traits_version': '4.6.0', 'nipype_version': '1.0.0', 'pkg_path': '/Users/miguel/anaconda/lib/python3.5/site-packages/nipype', 'commit_source': 'archive substitution', 'nibabel_version': '2.2.1', 'numpy_version': '1.14.0', 'sys_version': '3.5.4 | packaged by conda-forge | (default, Dec 18 2017, 06:40:48) \n[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)]', 'networkx_version': '2.1'}
1.0.0