Skip to content

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density

License

Notifications You must be signed in to change notification settings

daljit46/mrtrix3-ci-test

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MRtrix

Build Status @MRtrix3

MRtrix3 can be installed / run through multiple avenues:

  • Direct download through mechanisms tailored for different OS platforms;
  • Compiled from the source code in this repository. A quick overview on how to do this is provided below, for a more comprehensive overview of the process please see here.
  • Via containerisation technology using Docker or Singularity; see online documentation page for details.

Getting help

Instructions on software setup and use are provided in the online documentation. Support and general discussion is hosted on the MRtrix3 Community Forum. Please also look through the Frequently Asked Questions on the wiki section of the forum. You can address all MRtrix3-related queries there, using your GitHub or Google login to post questions.

Quick install

  1. Install dependencies by whichever means your system uses. These include: CMake (>= 3.16), Python3, a C++ compiler with full C++17 support, Eigen (>=3.2.8), zlib, OpenGL (>=3.3), and Qt (>=5.5).

  2. Clone Git repository and compile:

     $ git clone https://github.com/MRtrix3/mrtrix3.git
     $ cd mrtrix3/
     $ cmake -B build -DCMAKE_INSTALL_PREFIX=/path/to/installation/
     $ cmake --build build
     $ cmake --install build
    

    It's highly recommended, that you use Ninja and a compiler caching tool like ccache or sccache to speed up compilation time. You can install these tools using your package manager (e.g. apt install ninja-build ccache or brew install ninja ccache). Then, add -GNinja to the third step above or set the environment variable CMAKE_GENERATOR variable to Ninja.

    NOTE: by default MRtrix3 will build using Qt 6, but if you wish to use Qt 5 you can specify this by passing -DMRTRIX_USE_QT5=ON when configuring the build.

  3. Set the PATH:

    • Bash shell:

      edit the startup ~/.bashrc or /etc/bash.bashrc file manually by adding this line:

        $ export PATH=/path/to/installation/bin:$PATH
      
    • C shell:

      edit the startup ~/.cshrc or /etc/csh.cshrc file manually by adding this line:

        $ setenv PATH /path/to/installation/bin:$PATH
      
  4. Test installation:

    Command-line:

     $ mrconvert
    

    GUI:

     $ mrview
    

Keeping MRtrix3 up to date

  1. You can update your installation at any time by opening a terminal in the mrtrix3 folder, and typing:

     git pull
     # Run CMake build instructions
    

Building a specific release of MRtrix3

You can build a particular release of MRtrix3 by checking out the corresponding tag, and using the same procedure as above to build it:

git checkout 3.0_RC3
# Run CMake build instructions

NOTE: if you run into configuration errors, you may need to delete CMake's internal cache and reconfigure the project. You can do this by deleting the CMakeCache.txt file in your build directory.

Contributing

Thank you for your interest in contributing to MRtrix3! Please read on here to find out how to report issues, request features and make direct contributions.

About

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 87.1%
  • Python 7.8%
  • Shell 3.5%
  • CMake 0.9%
  • CSS 0.3%
  • C 0.2%
  • Other 0.2%