This runs the recommended preprocessing steps for diffusion weighted magnetic resonance imaging (dMRI) data. It uses all tools and scripts distributed in MRTrix3 in the recommended order. Several applications use these preprocessing steps, specifically the previously published DESIGNER pipeline. All steps are can be turnded off / default values modified, but this should not be necessary for the majority of use cases.
The inputs are dMRI files after conversion from dicom and the anatomical scan in the final space the dMRI data will be aligned to (ideally AC-PC aligned, but this is not a strict requirement).
The resulting scan should be an adequately processed dMRI registered to the antomical space ready for further analysis (tensor / kurtosis, NODDI, tractography, etc.).
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.
We kindly ask that you cite the following articles when publishing papers and code using this code.
-
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
-
Ades-Aron, B., Veraart, J., Kochunov, P., McGuire, S., Sherman, P., Kellner, E., ... & Fieremans, E. (2018). Evaluation of the accuracy and precision of the diffusion parameter EStImation with Gibbs and NoisE removal pipeline. NeuroImage, 183, 532-543.https://doi.org/10.1016/j.neuroimage.2018.07.066
MIT Copyright (c) 2020 Brent McPherson, brainlife.io, Indiana University, and The University of Texas at Austin
You can submit this App online at https://doi.org/10.25663/bl.app.1 via the "Execute" tab.
- git clone this repo.
- Inside the cloned directory, create
config.json
with something like the following content with paths to your input files.
{
"anat": "./input/t1.nii.gz",
"dwi": "./input/dwi.nii.gz",
"bvecs": "./input/dwi.bvecs",
"bvals": "./input/dwi.bvals",
}
- Launch the App by executing
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
All output files will be generated under the current working directory (pwd). The main output of this App is a file called track.tck
. This file contains following object.
Tracks file: "tracks.tck"
DW_scheme: dwi.b
SIFT_mu: 0.19794122804040393
act: 5tt.mif
backtrack: 1
count: 500000
crop_at_gmwmi: 1
downsample_factor: 3
fod_power: 0.25
init_threshold: 0.100000001
lmax: 8
max_angle: 45
max_num_seeds: variable
max_num_tracks: variable
max_seed_attempts: 1000
max_trials: 1000
method: iFOD2
mrtrix_version: 3.0.0
output_step_size: 1
rk4: 0
samples_per_step: 4
sh_precomputed: 1
source: wmt_fod.mif
step_size: 1
stop_on_all_include: 0
threshold: 0.100000001
timestamp: 1518584698.6087715626
total_count: 500000
unidirectional: 0
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.