brainlife / app-mrtrix3-act

Runs mrtrix3 ACT (Anatomically Constrained Tractography) using either single- or multi-shell diffusion-weighted MRI data.
https://doi.org/10.25663/bl.app.101
MIT License
4 stars 9 forks source link
tracking tractography

Abcdspec-compliant Run on Brainlife.io

app-mrtrix3-act

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).

Authors

Contributors

Funding Acknowledgement

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.

NSF-BCS-1734853 NSF-BCS-1636893 NSF-ACI-1916518 NSF-IIS-1912270 NIH-NIBIB-R01EB029272 NIH-NIBIB-2T32MH103213-06

Citations

Please cite the following articles when publishing papers that used data, code or other resources created by the brainlife.io community.

  1. 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.

  2. Takemura, H., Caiafa, C. F., Wandell, B. A., & Pestilli, F. (2016). Ensemble tractography. PLoS computational biology, 12(2), e1004692.

  3. 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

  4. 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

Running the App

On Brainlife.io

You can submit this App online at https://doi.org/10.25663/bl.app.101 via the "Execute" tab.

Running Locally (on your machine)

  1. git clone this repo.
  2. Inside the cloned directory, create 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",
}
  1. Launch the App by executing main
./main

Sample Datasets

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

Output

track.tck

tensor

csd

Product.json

The secondary output of this app is product.json. This file allows web interfaces, DB and API calls on the results of the processing.

Dependencies

This App only requires singularity to run. If you don't have singularity, you will need to install following dependencies.

MIT Copyright (c) 2020 Brent McPherson, brainlife.io, Indiana University, and The University of Texas at Austin