Skip to content

Mrtrix3 dwi2response - bad algorithm argument position #2408

Closed
@jguillon

Description

@jguillon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions