This app uses MRTrix3 to create Reproducible Anatomically Constrained Ensemble Tracking (RACE-Track).
The app generates a set of streamlines for every requested tractography model (Tensor or CSD) and algorithm (iFOD1, iFOD2, FACT, SD_STREAM, Tensor_Det, Tensor_Prod). A final output of the merged streamlines is returned to the user for further analysis.
IMPORTANT This code is used in multiple apps, some of which restrict the options available to the user. This is to more easily reproduce desired outputs for specific use cases (networks, specific features in the anatomy, etc.). The same code is run, but some parameters may have been fixed by the developer based on their work for a specific use.
The CSD-based models can be computed at different $l_{max}$ values. All candidate streamlines are combined into a single track.tck file.
Additionally, the Tensor (and Kurtosis if data is multishell) and the CSD models are stored as well.
This is a replacement for older processes (https://doi.org/10.25663/bl.app.33).
brainlife.io is publicly funded and for the sustainability of the project it is helpful to Acknowledge the use of the platform. We kindly ask that you acknowledge the funding below in your publications and code reusing this code.
Please cite the following articles when publishing papers that used data, code or other resources created by the brainlife.io community.
Smith, R. E., Tournier, J. D., Calamante, F., & Connelly, A. (2012). Anatomically-constrained tractography: improved diffusion MRI streamlines tractography through effective use of anatomical information. Neuroimage, 62(3), 1924-1938.
Takemura, H., Caiafa, C. F., Wandell, B. A., & Pestilli, F. (2016). Ensemble tractography. PLoS computational biology, 12(2), e1004692.
Tournier, J. D., Smith, R., Raffelt, D., Tabbara, R., Dhollander, T., Pietsch, M., ... & Connelly, A. (2019). MRtrix3: A fast, flexible and open software framework for medical image processing and visualisation. NeuroImage, 202, 116137. https://doi.org/10.1016/j.neuroimage.2019.116137
Avesani, P., McPherson, B., Hayashi, S. et al. The open diffusion data derivatives, brain data upcycling via integrated publishing of derivatives and reproducible open cloud services. Sci Data 6, 69 (2019). https://doi.org/10.1038/s41597-019-0073-y
You can submit this App online at https://doi.org/10.25663/bl.app.101 via the "Execute" tab.
config.json
with something like the following content with paths to your input files.{
"anat": "./input/anat/t1.nii.gz",
"dwi":"./input/dwi_preproc.nii.gz",
"bvecs":"./input/dwi_preproc.bvecs",
"bvals": "./input/dwi_preproc.bvals",
}
main
./main
If you don't have your own input file, you can download sample datasets from Brainlife.io, or you can use Brainlife CLI.
npm install -g brainlife
bl login
mkdir input
bl dataset download 5a0e604116e499548135de87 && mv 5a0e604116e499548135de87 input/anat
bl dataset download 5a0dcb1216e499548135dd27 && mv 5a0dcb1216e499548135dd27 input/dwi_preproc
track.tck
tensor
csd
The secondary output of this app is product.json
. This file allows web interfaces, DB and API calls on the results of the processing.
This App only requires singularity to run. If you don't have singularity, you will need to install following dependencies.