Reproducible and efficient diffusion kurtosis imaging in Python.
Project description
dkmri.py
dkmri.py
stands for diffusion kurtosis magnetic resonance imaging in Python. It is a Python package for estimating diffusion and kurtosis tensors from diffusion-weighted magnetic resonance data. The estimation is performed using regularized non-linear optimization informed by fully-connected feed-forward neural networks that are trained to learn the mapping from data to kurtosis metrics. Details can be found in the upcoming publication and source code.
This software can be used from the command line or in a Python interpreter.
- The command-line interface does not require any knowledge about Python.
- Python interface is for people comfortable with basic Python programming.
Installation
First, make sure you have installed Python.
If you just want to use the command-line interface, the recommended way of installing dkmri.py
is to use pipx:
pipx install dkmri
pipx automatically creates an isolated environment in which the dependencies are installed.
If you want to use the Python interface, you can use pip (you should install dkmri.py
in an isolated environment using venv or conda to avoid dependency issues):
pip install dkmri
Usage example
Command-line interface
The command for using dkmri.py
is
dkmri.py data bvals bvecs optional-arguments
where data
, bvals
, and bvecs
are the paths of the files containing the
diffusion-weighted data, b-values, and b-vectors, and optional-arguments
is
where to define things such as which parameter maps to save.
For example, a command for computing a mean kurtosis map from data.nii.gz
and
saving it in mk.nii.gz
could be
dkmri.py data.nii.gz bvals.txt bvecs.txt -mask mask.nii.gz -mk mk.nii.gz
To see a full description of the arguments, execute the following:
dkmri.py -h
Python interface
See the example notebook.
Support
If you have questions, found bugs, or need help, please open an issue on Github.
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
File details
Details for the file dkmri-0.0.6.tar.gz
.
File metadata
- Download URL: dkmri-0.0.6.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b6e993dabd4fbc6e4163a33653b8db39d59f14cbb18dec788d13b5a461b82c8 |
|
MD5 | 510f40348b438f7da546ef69b1ec7e90 |
|
BLAKE2b-256 | 6f51b99c7b30e27d149d4800c14f60593a82f997bf9b31ac459217082953066a |