Error while running dwi2reponse

Dear Mrtrix experts

I am trying to run dwi2response using the following code:

dwi2response dhollander sub-14426_session1_denoise_preproc_unbiased_dwi.mif wm.txt gm.txt csf.txt -fslgrad sub-14426_session1_dwi1.bvec sub-14426_session1_dwi1.bval -nocleanup –voxels voxels.mif

but i encounter to this error massage:
Error: unrecognized arguments: –voxels voxels.mif
Usage: dwi2response dhollander input out_sfwm out_gm out_csf [ options ]
(Run dwi2response -help for more information)

how i can fix this error?

thanks in advance to your helps

milad

Hey Milad,

You’ve used an en dash character rather than a hyphen for the -voxels option (it’s subtle, but if you look closely, you can tell it’s a little bit longer than the other hyphens in your command line). Copy-paste this, and it should work:

dwi2response dhollander sub-14426_session1_denoise_preproc_unbiased_dwi.mif wm.txt gm.txt csf.txt -fslgrad sub-14426_session1_dwi1.bvec sub-14426_session1_dwi1.bval -nocleanup -voxels voxels.mif

Cheers,
Thijs (Monday, 18-Oct-21 04:53:02 UTC)

Dear Dr Dhollander

Thank you so much for your very fast response and sorry if my question was trivial.

my problem was solved.

best regards,

milad