This Slicer extension provides tools for advanced white matter analysis using diffusion MRI data. It includes three modules designed for FODF generation, tractography, and metric analysis of white matter fiber tracks.
-
Generate FODF (First Module)
Responsible for generating Fiber Orientation Distribution Functions (FODFs) from diffusion MRI data.Inputs:
- White Mask: Binary mask for white matter regions.
- Diffusion NIfTI: Diffusion-weighted image file.
- BVALS: File containing b-values (
.bvals). - BVECS: File containing b-vectors (
.bvecs).
-
Tractography (Second Module)
Generates white matter fiber tracts using seeding masks and FODF data. Tracks can be visualized directly in 3D Slicer.Inputs:
- Approximate Mask: Binary mask approximating regions of interest for tractography.
- FODF: Fiber Orientation Distribution Function file generated from the first module.
- Step Size: Step size for tractography.
- Algorithm: Choice of tractography algorithm (
deterministicorprobabilistic).
Outputs:
- .trk file: Generated track file containing white matter fiber tracts.
- .vtk file: Visualization-ready track file for rendering in Slicer.
Key Features:
- Automatically generates a seeding mask from the approximate mask.
- Converts
.trkfiles to.vtkfor 3D visualization in Slicer.
-
Metric Analysis (Third Module)
Computes metrics between two.trkfiles to quantify overlap, overreach, and agreement.Metrics:
- Dice Score: Measures spatial agreement between tracks.
- Overreach Score: Quantifies tracks extending beyond the target area.
- Overlap Score: Measures the shared region between two tractographies.
- Clone the repository or download the source code:
git clone https://github.com/yourusername/white-matter-analysis-extension.git
- Switch to extension-with-submodules branch and then Clone the scilpy library inside each module directory:
cd MTP git clone https://github.com/scilus/scilpy.git FirstModule/scilpy git clone https://github.com/scilus/scilpy.git SecondModule/scilpy git clone https://github.com/scilus/scilpy.git ThirdModule/scilpy
The scilpy library provides essential tools for diffusion MRI processing and tractography.
-
Open 3D Slicer and navigate to the Extensions Manager.
-
Install the extension manually by adding the repository directory to Slicer's module paths:
- Go to Edit > Application Settings > Modules > Additional Module Paths.
- Add the path to the downloaded repository.
-
Restart Slicer to load the extension.



