I am using the BATMAN tutorial in order to get familiar with MRtrix3, but at step 2.4:
dwipreproc dwi_den_unr.mif dwi_den_unr_preproc.mif –pe_dir AP –rpe_pair–se_epi b0_pair.mif –eddy_options “ --slm=linear”
There occurs an error:
zsh: command not found: dwipreproc
I think that I did not set up MRtrix3 correctly, because I did not enter ./set_path when building MRtrix. Therefore, I need to navigate back to the root MRtrix3 directory to do the setup retrospectively. Which steps are necessary in order to avigate to the root MRtrix3 directory?
Or are there any other reasons for the error?
I am working on a MacBook with the latest version of MRtrix3.
Thank you so much in advance! I am completely new to this so any advice would be greatly appreciated.
sorry for the confusion. The tutorial is indeed a bit outdated and I should be providing an updat one of these days… Indeed, the command “dwipreproc” does no longer exist in the current MRtrix3 verison. It has now been replaced with “dwifslpreproc”. You can try the following command (also notice the different eddy options as compared to the tutorial, but this is what I myself am using right now):
thanks for your reply. This helps a lot! I will try it out.
Due to the fact that this command needs to run overnight, I already tried to continue with the next step for Bias Field correction yesterday (using the provided supplementary file), but there occurs an error as well if I enter: dwibiascorrect ants dwi_den_unr_preproc.mif dwi_den_unr_preproc_unbiased.mif –bias bias.mif
Traceback (most recent call last):
File “/Users/ls/mrtrix3/bin/dwibiascorrect”, line 82, in
import mrtrix3
File “/Users/ls/mrtrix3/bin/mrtrix3.py”, line 17, in
import imp, os, sys
ModuleNotFoundError: No module named ‘imp’
According to some advice I found online, I would be supposed to change the path or even the python set-up, but I do not know how to do this yet. So it is turning out to be a challenge right now - do you have any tips on how I can solve this problem?
hm, looks like another Python issue to me… unfortunately, this is a little off my area of expertise… @jdtournier: Any ideas from your side - needs the " distutils" package need to be installed separately?
Yes, you’ll need to install the python3-distutils package – though it might be called something slightly different depending on the specifics of your system.
There are often minor changes to the list of dependencies required as different distributions call the different packages by different names and sometimes change which modules are available as part of which package, etc. Makes it quite hard to keep everything up to date! Though I have to admit, the distutils thing is not new…