Closed
Description
Summary
Th Mrtrix3 dwi2response
CL wrapper generates the following runtime error:
dwi2response:
mrinfo: [ERROR] no diffusion encoding information found in image "<DWI_FILE>"
dwi2response: [ERROR] Script requires diffusion gradient table: either in image header, or using -grad / -fslgrad option
It turns out that the command generated by nipype
does not respect (my version of) the Mrtrix3 CL format.
Actual behavior
Generated command (not runnable):
dwi2response -fslgrad <BVEC_FILE> <BVAL_FILE> -mask <MASK_FILE> tournier <WM_FILE>
Expected behavior
Runnable command:
dwi2response tournier -fslgrad <BVEC_FILE> <BVAL_FILE> -mask <MASK_FILE> <WM_FILE>
Environment
MRtrix 3.0_RC2-117-gf098f097 dwi2response bin version: 3.0_RC2-117-gf098f097
Python 2.7.12
nipype v1.0.0
Quick and dirty solution
I'm really not sure how clean it is, but it worked for me; in the ResponseSDInputSpec
class, I changed position=-6
to position=1
in the algorithm
traits.