Skip to main content

Radiomic Tractometry for advanced along-tract analysis of diffusion-weighted MRI

Project description

Radiomic Tractometry (RadTract)

Copyright © German Cancer Research Center (DKFZ), Division of Medical Image Computing (MIC). Please make sure that your usage of this code is in compliance with the code license.

If you use RadTract, please cite our paper: Neher, P., Hirjak, D. & Maier-Hein, K. Radiomic tractometry reveals tract-specific imaging biomarkers in white matter. Nat Commun 15, 303 (2024). https://doi.org/10.1038/s41467-023-44591-3

Overview

RadTract is a python implementation of radiomic tractometry or "Tractomics". It is designed for tract-specific microstructural analysis of the brain’s white matter using diffusion MRI. It enhances traditional tractometry, which often misses valuable information due to its reliance on bare summary statistics and scalar values. RadTract incorporates radiomics, a method that analyzes a multitude of quantitative image features beyond visual perception, into tractometry. This integration allows for improved predictive modeling while maintaining the localization capability of tractometry.

RadTract has demonstrated its effectiveness in diagnosing disease subgroups across various datasets and estimating demographic and clinical parameters in multiple clinical populations. It holds the potential to pioneer a new generation of tract-specific imaging biomarkers, benefiting a wide range of applications from basic neuroscience to medical research.

For details about the approach, please refer to our paper: Neher, P., Hirjak, D. & Maier-Hein, K. Radiomic tractometry reveals tract-specific imaging biomarkers in white matter. Nat Commun 15, 303 (2024). https://doi.org/10.1038/s41467-023-44591-3. An overview of the method is shown in Figure 1.

_Figure 1: Illustration of the complete RadTract process. The points of a statically resampled tract (a) can be seen as samples of partly overlapping classes that are not linearly separable. We are aiming at finding the hyperplanes, superimposed as white lines on the tract in (a), that optimally separate the classes with the smallest amount of errors. This task can be solved using large-margin classifiers such as SVMs. This enables us to create parcellations directly in voxel-space (b) that do not suffer from projection-induced misassignments, as is the case in the centerline-based approach (d). For visualization purposes, the tract parcellation in voxel-space is projected back on the original streamlines (e). The proposed tract parcellation in voxel-space (b) is used to calculate a multitude of radiomics features per parcel, visualized in (c). Exemplary feature classes and image filters available when using pyradiomics as calculation engine are listed in (f). RadTract currently supports MIRP as an alternative engine for calculating radiomics features.

Installation

Requirements

  • No specific hardware requirements. A state-of-the-art desktop computer should be sufficient.
  • Tested on Ubuntu 22.04 but should run on other systems as well.
  • Tested with Python 3.8 and higher
  • Numpy should be installed prior to the RadTract setup (pyradiomics requirement), all other dependencies will be installed automatically.
  • Should the pyradiomics setup fail with a missing numpy error despite installed numpy, see section "Pyradiomics installation issues" below.
  • It is recommended to use a virtual environment for the installation.

See .gitlab-ci.yml for the currently tested configurations.

Installation

Installation via anaconda is not supported currently!

  1. virtual environment
    • Create a virtual environment: python -m venv myvenv
    • Activate the virtual environment: source myvenv/bin/activate
  2. Installation
    • Install from source: navigate to the root directory of RadTract and run pip install .
    • Install from PyPI: run pip install radtract

Installation should complete within a few seconds.

Pyradiomics installation issues

If the pyradiomics installation fails with a missing numpy error despite numpy being installed, a workaround is to install pyradimics directly from source:

  1. Checkout the pyradiomics repo: git clone git://github.com/Radiomics/pyradiomics
  2. Activate your virtual environment (if you use one): source myvenv/bin/activate
  3. Navigate to the pyradiomics source and install from there: pip install .
  4. Then run pip pip install radtract again.

Examples

A complete pipeline example can be found in example.ipynb.

Further examples can be found in the RadTract test script tests\test_radtract.py. Test data is included in tests\test_data.

Expected runtimes

RadTract parcellation and feature calculation should complete within a couple of minutes on a standard desktop computer.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

radtract-0.2.4.tar.gz (41.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

radtract-0.2.4-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

Details for the file radtract-0.2.4.tar.gz.

File metadata

  • Download URL: radtract-0.2.4.tar.gz
  • Upload date:
  • Size: 41.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for radtract-0.2.4.tar.gz
Algorithm Hash digest
SHA256 e93f615b6faa9b99254f96882cdcadf959b46d4668ccd4da832d87815d4b4c3a
MD5 5c948c7ddb113fdac70008bac0c26be2
BLAKE2b-256 1bddbd7210b0b5040883926f5c1d0cc392990229641f29a6571c34f5dc7a27db

See more details on using hashes here.

File details

Details for the file radtract-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: radtract-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 41.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for radtract-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d25d320c44b49d5b5bb61f5eb3c7ecab40f46da873b45b46f9c89170b3ced969
MD5 e3a1cc5bc78ba4e48a45071b1f20d7bd
BLAKE2b-256 c596d702f32e3802f00f88b7b61e2afd89f6f83f730737a58dcd135bc2ffc922

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page