OK, might need to back-track a little on this one, explain some more fundamentals:
in the page for the dwi2response on the official site it talks about the link to the algorithm page, but the link doesnt work.
This was an error in the documentation file, that was causing the documentation generation to not be able to find the intended page that the link was supposed to go to. This will be fixed soon among a bunch of other changes to the documentation.
how do i save the dwi2response file to a directory, do i need to know python??? i dont know python
Itâs not clear to me exactly what your question is here. When you execute any of the provided Python scripts at the command line, (at least) one of the compulsory entries you must provide at the command-line is the path to an output file, of whatever that script generates. The scripts are executed at the command-line just like any binary command, and will generate their outputs at whatever location you specify. So thereâs no need to have an understanding of Python (unless you wish to make your own modifications to the scripts).
You mean this step?
echo PATH=$(pwd)/release/bin:$(pwd)/scripts:\$PATH >> ~/.bashrc
Just to be clear: When you execute this command, the current directory of the terminal must be the directory in which MRtrix3 is installed.
I tried it and this is the eror i get when i run mrtrix 3. ⌠Although I pressed sudo bash, and everything works including dwi2response.
What the above command is doing is inserting the paths to the MRtrix3 executable directories into the file ~/.bashrc
. This file is then executed every time you open a new terminal. However, executing the above line alone does not influence your PATH
environment variable in any way; therefore it does not instruct your system where to find the MRtrix3 commands. To execute that file, you need to either re-initialise bash
, or simply close the terminal and open a new one.
Likely the reason why sudo bash
is working for you, but opening a new terminal is not, is that your configuration of the bashrc
file was done as the super-user, and therefore the corresponding change has occurred in the super-userâs version of the bashrc
file, which is only executed if a terminal is created (or bash
re-initialised) as the super-user. See more below.
Pretty much to get anything done I have to type sudo bash and everything works
If i just open terminal, go cd mrtrix3 (go into mrtrix directory) and type in a command it doesnt work.
As Donald said, this suggests that when you ran this command:
echo PATH=$(pwd)/release/bin:$(pwd)/scripts:\$PATH >> ~/.bashrc
, you were logged in as a super-user. Therefore, this modified the bashrc
file for the super-user, not the one for your own user account. Re-run this command using your own user account, from the MRtrix3 installation directory.
Another factor to observe in the above command is that it adds the MRtrix3 paths to the start of the PATH
variable. This means that if you try to run a command with a name that is common between MRtrix 0.2 and MRtrix3, your system will find the MRtrix3 version first, and that is the version that will be executed. If you still find that MRtrix 0.2 commands are being executed, itâs possible that some other file is inserting the MRtrix 0.2 binary path into the PATH
variable after this step, and therefore those binaries would be the first found by your system.