Hi experts

I would like to run the response function, however, it showed some errors when processing. Please have a look at the following command and looking forward to your reply! Many thanks in advance!

[xixi@titan male]1% /usr2/mrtools/mrtrix3-20160419/scripts/dwi2response tax DWI.mif response.txt -voxels sf.mif
dwi2response: Note that this script makes use of commands / algorithms that have relevant articles for citation; INCLUDING FROM EXTERNAL SOFTWARE PACKAGES. Please consult the help page (-help option) for more information.
dwi2response: Generated temporary directory: /tmp/dwi2response-tmp-32AAS0/
Command: mrconvert DWI.mif - -stride 0,0,0,1 -quiet | dwiextract - /tmp/dwi2response-tmp-32AAS0/dwi.mif  -quiet
dwi2response: Changing to temporary directory (/tmp/dwi2response-tmp-32AAS0/)
Command: dwi2mask dwi.mif mask.mif  -quiet
Command: amp2sh dwi.mif dwiSH.mif  -quiet
Command: dwiextract dwi.mif shell.mif  -quiet
Command: dwi2fod dwi.mif init_RF.txt iter0_FOD.mif -mask mask.mif  -quiet
dwi2fod: [ERROR] unknown format for image "init_RF.txt"
dwi2fod: [ERROR] error opening image "init_RF.txt"
dwi2response: [ERROR] Command failed: dwi2fod dwi.mif init_RF.txt iter0_FOD.mif -mask mask.mif  -quiet
dwi2response: Changing back to original directory (/home/xixi/LUTfMRI01/tractography/orig_data/whole_brain_connectivity/MS/male)
dwi2response: Deleting temporary directory /tmp/dwi2response-tmp-32AAS0/

Best wishes


That sounds like a mismatch between the version of your dwi2response script and the dwi2fod executable that it calls. The dwi2fod call will now expect either csd or mmst_csd as its second argument, which is not the case here. So it looks like your dwi2response script is quite a bit older than your dwi2fod executable. Do you have different versions of MRtrix3 installed in different places? Maybe there’s an old version listed in your PATH that you’ve forgotten about? What does this say:

echo $PATH