The starting point and aim of this project is to use diffusion MRI to improve our understanding of chronic pain and its treatment.
Raw DWI images are acquired with the same protocol to offer a homogeneous dataset: b-values of 300, 1000 and 2000 with a resolution of
Before running the pipelines and scripts it is required to install Nextflow, Singularity, Scilpy, and Ants. A general installation procedure can be found here and more specific instructions, for each pipeline, can be found in their respective sections.
If the pipelines are ran on Linux, it is recommended to use Singularity. Pre-built singularity images and container related files for SCILUS flows can be found on the github repository containers-scilus or on the SCIL website.
Using the dmri_qc nextflow pipeline it is possible to check DWIs and the processed DWIs. A more in depth description and installation intruction can be found here.
Example command
nextflow run dmriqc-flow-0.1.2/main.nf -profile input_qc --root input/ -with-singularity singularity_dmriqc_0.1.2.img -resume --raw_dwi_nb_threads 10
Using the TractFlow nextflow pipeline it is possible to compute necessary derivatives: DTI metrics, fODF metrics. The script used to run is run_tractoflow
Resources
- Gihub repository
- SCIL TractoFlow documentation
- ReadTheDocs TractoFlow documentation
Theaud, G., Houde, J.-C., Boré, A., Rheault, F., Morency, F., Descoteaux, M.,TractoFlow: A robust, efficient and reproducible diffusion MRI pipeline leveraging Nextflow & Singularity, NeuroImage, https://doi.org/10.1016/j.neuroimage.2020.116889.
Example command
nextflow run main.nf --input <DATASET_ROOT_FOLDER> --dti_shells "0 300 1000" --fodf_shells "0 1000 1200" -with-singularity
Outputs
DTI metrics: The Diffusion Tensor Imaging metrics computed are: the axial diffusivity (AD), fractional anisotropy (FA), geodesic anisotropy (GA), mean diffusivity (MD), radial diffusivity (RD), tensor, tensor norm, tensor eigenvalues, tensor eigenvectors, tensor mode, color-FA. Use flag -dti_shell
to specify the desired shells t compute DTI metrics. Usually it is recommended to compute DTI metrics using b-values under
fODF metrics: The fiber Orientation Distribution Function metrics computed are: the total and maximum Apparent Fiber Density (AFD), the Number of Fiber Orientation (NuFO) and principal fODFs orientations (up to 5 per voxel). Use flag –fodf_shells
to specify the desired shells to compute fODF metrics and flag --sh_order to specify the spherical harmonic order (default is 8). Usually it is recommended to compute fODF metrics using b-values above
Using the rbx_flow nextflow pipeline it is possible to extract white matter fiber bundles of interest. The script used to run is run_rbxflow
.
Resources
- Github repository
- SCIL RecobundleX documentation
- Example atlases
Rheault, Francois. Analyse et reconstruction de faisceaux de la matière blanche. page 137-170, (2020), https://savoirs.usherbrooke.ca/handle/11143/17255
Example command
nextflow run main.nf -resume -with-singularity scilus-1.2.0_rbxflow-1.1.0.img --input input/ --atlas_config code/rbx-atlas/config.json --atlas_anat code/rbx-atlas/mni_masked.nii.gz --atlas_directory code/rbx-atlas/atlas/