nifti_dynamic 🧠⚡
Efficient TAC extraction and Patlak analysis of HUGE PET arrays in NIfTI format. Works with gzipped 4D PET images (saving 90% disk space vs DICOM) 📦. All algorithms load partial chunks to prevent memory crashes when handling massive arrays (440×440×645×69×4 bytes = 32GB).
Implementation based on Andersen TL, et al. Diagnostics 2024;14(15):1590. doi:10.3390/diagnostics14151590
Installation 💾
pip install nifti_dynamic
Important: Always ensure indexed_gzip is installed for significantly faster reading of gzipped NIfTI arrays (.nii.gz) ⚡
Performance ⏱️
- Automatic extraction of 4 VOIs: 30 seconds
- TAC for single organs: 10 seconds
- TACs for all 114 TotalSegmentator organs: 10 minutes
- Full voxel Patlak for 440×440×645×69 array: 30 seconds
CLI Usage 🚀
Extract Input Function from Aorta
extract_input_function \
--pet dpet.nii.gz \
--totalseg totalseg.nii.gz \
--output ./results
Extract TACs for All Organs
extract_tacs \
--pet dpet.nii.gz \
--segmentation totalseg.nii.gz \
--output ./tacs
Voxel-wise Patlak Analysis
voxel_patlak \
--pet dpet.nii.gz \
--input-function input_fun.csv \
--output ./patlak
Python API Usage
For programmatic access, see example.py for detailed Python API usage.
Metadata
Release files for nifti_dynamic 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nifti_dynamic-0.3.1.tar.gz | 16.6 kB | Without provenance | Details for nifti_dynamic-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nifti_dynamic-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for nifti_dynamic-0.3.1-py3-none-any.whl |
Total release size: 36.5 kB
Release files / nifti_dynamic-0.3.1.tar.gz
| Download URL | nifti_dynamic-0.3.1.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a87809757d71658e18a45cb4e829317592e2f31d21676fa9d3c5d21fc058f379
|
|
BLAKE2b-256 checksum How to use checksums |
25b347b038e7fc874631396be1b0277ffd3ab9c78ce72c5ae7885fc5d49db26c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.16
|
Release files / nifti_dynamic-0.3.1-py3-none-any.whl
| Download URL | nifti_dynamic-0.3.1-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
418f5f81576a5c73247949138e69987a19c3702b57ed50d4eecda03d859f32a6
|
|
BLAKE2b-256 checksum How to use checksums |
35ab4a567d325f95a860e55a48b77078480da0bfa0cc82e16a51565112424b23
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.16
|
Security for nifti_dynamic 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.