SANDI model fitting in python + BIDS handling
Project description
SANDI python toolbox
A BIDS app for fitting the Soma and Neurite Density Imaging (SANDI) model, adapted from the SANDI Matlab Toolbox by Marco Palombo into python using snakebids.
This toolbox enables model-based estimation of MR signal fraction of brain cell bodies (of all cell types, from neurons to glia, namely soma) and cell projections (of all cell types, from dentrites and myelinated axons to glial processes, namely neurties ) as well as apparent MR cell body radius and intraneurite and extracellular apparent diffusivities from a suitable diffusion-weighted MRI acquisition using Machine Learning (see the original SANDI paper for more details DOI: https://doi.org/10.1016/j.neuroimage.2020.116835).
Installation
Dependency management and python package handling is done with poetry
pip install poetry
then the toolbox can be installed with:
git clone https://github.com/Bradley-Karat/SANDI_python_toolbox.git
cd SANDI_python_toolbox
poetry install
Usage
poetry run SANDI_python_toolbox
or
poetry shell
SANDI_python_toolbox
Run either of these with the -h flag to get a detailed summary of the toolbox and its flags plus required arguments.
Example Toolbox Call
For a dry-run:
poetry run SANDI_python_toolbox /path/to/bids/inputs /path/for/outputs participant --Delta 23.6 --Small_Delta 7 --cores all -np
To actually run the software:
poetry run SANDI_python_toolbox /path/to/bids/inputs /path/for/outputs participant --Delta 23.6 --Small_Delta 7 --cores all
Example File Struture
└── bids
├── sub-01
│ └── dwi
│ ├── sub-01_brain_mask.nii.gz
│ ├── sub-01_dwi.bval
│ ├── sub-01_dwi.bvec
│ ├── sub-01_dwi.nii.gz
│ └── sub-01_noisemap.nii.gz
├── sub-02
│ └── dwi
│ ├── sub-02_brain_mask.nii.gz
│ ├── sub-02_dwi.bval
│ ├── sub-02_dwi.bvec
│ ├── sub-02_dwi.nii.gz
│ └── sub-02_noisemap.nii.gz
Alternatively, the --path-dwi flag can be used to override BIDS by specifying absolute paths. For example: --path-dwi /path/to/my_data/{subject}/dwi.nii.gz. The other necessary files (.bval, .bvec, noisemap and brainmask) must be labelled in a similar fashion (i.e. all have the same prefix).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sandi_python_toolbox-0.1.2.tar.gz.
File metadata
- Download URL: sandi_python_toolbox-0.1.2.tar.gz
- Upload date:
- Size: 31.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.2 Linux/3.10.0-1160.88.1.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fbf3300843ef32f697029a216a7551ff97000069fdf84823927182817a68194
|
|
| MD5 |
b75fd033477ebe12da720a8bb94e3dc6
|
|
| BLAKE2b-256 |
54ea69091a5831d7de3ca60c0182a456ab5604fe1fe767a8638793c1a7041324
|
File details
Details for the file sandi_python_toolbox-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sandi_python_toolbox-0.1.2-py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.2 Linux/3.10.0-1160.88.1.el7.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
815b9111811540b8f4417c0cf2c5f1cc52937d9ea01d007257fd56bb88c5e111
|
|
| MD5 |
9be4e44a3c2a1de19326db5826493051
|
|
| BLAKE2b-256 |
3013d60481a015f2b28f4c8abe749fe1687f38b3f11e1b2ae605275b997e9d9a
|