- CMake (min version 3.15)
- gcc-8 or newer
- libzip
- QT5 or newer
- VTK7 or newer (installed with QT support)
- ACVD (https://github.com/valette/ACVD/tree/83f7c05a7b3ccf0445708cea918b4b11325fb229)
- Trekker (https://github.com/dmritrekker/trekker)
- First, make sure that you have QT5 or QT6 installed. If you decide to install QT from source, you may need to install WebEngine, WebChannel, WebSockets, WebView, Positioning.
- For VTK, you will need an installation with QT support. Some operating systems have readily available packages for this. For example, in Debian (or Ubuntu), you can just install "libvtk*-qt" (* indicates the VTK version).
- If you are going to install VTK from source, make sure to set VTK_USE_QT to ON.
- You will then need to install ACVD from source. ACVD recently went through an update and the latest update is not yet supported by real-time tractogram visualizer. Please use the above link when installing ACVD (commit #83f7c05).
- Lastly, compile Trekker.
Edit and run the build.sh
file. This will make a clean install by replacing the existing build
folder.
Executable will be generated under the build/bin
directory.
Provide the four necessary input images listed below. Make sure that all images are in the same RASMM space based on the NIFTI sform convention.
- T1: T1-weighted MRI image of the subject
- Mask: Brain mask image. For example the mask generated by FSL eddy during the diffusion MRI preprocessing step can be used.
- FOD: Fiber orientation distribution image. Trekker accepts for example MRtrix generated FODs. More information on the FOD format can be found here.
- ACT: rttvis performs anatomically constraint tractography using Trekker's pathway rules. With this, generated streamlines: (i) do not end inside the white-matter, and (ii) they do not cross corticospinal fluid. Currently there is no option to disable this and an ACT image has to be provided. The ACT image basically consists of only 4 numbers. There are -1, 0, 1 and 2. Outside the brain is -1. Corticospinal fluid is 0. White matter is 1. Gray matter is 2. If you had run the Freesurfer pipeline and have an aparc+aseg image, you can use the Python tool here to obtain the ACT image.
Different processing pipelines might have different conventions for FOD directions. You can use the Order Of Direction
option to vary the direction as you wish. By default XYZ is assumed (no change). A lower case can be used to switch the direction, e.g., xYZ switches the sign of the first component. The order of components can be changed as well, e.g., yXz switches the sign of the second component while replacing it with the first, at the same time the sign of the last component is also changed.
By default spherical harmonics coefficients are converted to a discretized spherical function to increase the tracking speed. If desired this can be turned off.
Tractography parameters are explained in Trekker's web-site.
ENJOY!
Please contact by e-mail for questions.
Dogu Baran Aydogan, PhD | ([email protected])
-Research Director (Assist. Prof.) @ A.I. Virtanen Inst. for Molecular Sciences, Uni. of Eastern Finland (UEF)
-Research Fellow @ Dept. of Neuroscience and Biomedical Eng., Aalto Uni.