PUMA turns serial PET/CT acquisitions into a single, context-rich view. The pipeline multiplexes tracer studies, aligns anatomy, and produces consistent reporting assets so clinicians and researchers can read more in less time.
- Multiplexed insight β Fuse several tracer volumes into colour-encoded composites without sacrificing quantitative context.
- Trusted accuracy β nnU-Net driven segmentations and diffeomorphic registration keep tumour boundaries and uptake values reliable.
- Workflow friendly β One CLI coordinates preprocessing, registration, blending, and export, keeping radiologists and physicists in sync.
- Platform agnostic β Linux, Windows, and macOS (including Apple Silicon) run the same wheel; PyTorchβs upstream MPS backend covers 3D convolutions with no custom build.
- Install the package:
pip install pumaz - Arrange tracer folders as described in π Workflow essentials.
- Launch a run:
pumaz -d /path/to/patient -m -ir arms,legs,headPUMA aligns each tracer, multiplexes RGB composites when requested, and writes results to a timestamped PUMAZ-v<version>-YYYY-MM-DD-HH-MM-SS folder beside your subject data. A run log (pumaz-v.<clock>.log) is saved in the working directory.
- Using uv (recommended)
To add PUMA to an existing
curl -Ls https://astral.sh/uv/install.sh | sh # install uv if needed uv venv .venv source .venv/bin/activate uv pip install pumaz
uvproject, runuv add pumaz. - Using pip
pip install pumaz
- From source (development work)
Use Python 3.10+ and create a virtual environment when possible.
git clone https://github.com/LalithShiyam/PUMA.git cd PUMA uv pip install -e .
Retrieve the full command reference with:
pumaz --helpCommon flags:
-d /path/to/patientβ Root directory that contains one subfolder per tracer.-ir arms,legsβ Skip specified body regions during registration (noneby default).-mβ Produce multiplexed RGB composites alongside individual tracer outputs.-cm Tracer1:R,...β Assign explicit colour channels to each tracer (mutually exclusive with-cs).-csβ Interactively choose channel assignments when-mis enabled.-c2dβ Convert aligned NIfTI volumes back to DICOM.
Organise every patient or study with one directory per tracer; each tracer must contain PET and CT data as DICOM folders or NIfTI files prefixed by modality:
Parent_Directory/
βββ Tracer1/
β βββ PT_series.nii.gz # or PET DICOM directory
β βββ CT_series.nii.gz # or CT DICOM directory
βββ Tracer2/
β βββ PT_series.nii.gz
β βββ CT_series.nii.gz
βββ Tracer3/
βββ PT_series.nii.gz
βββ CT_series.nii.gz
Ensure PET/CT pairs are spatially corresponding within each tracer directory for best results.
Each run emits a timestamped workspace (PUMAZ-v<version>-<timestamp>) alongside your tracer folders:
| Path | Contents |
|---|---|
CT/ |
Resliced CT volumes staged for registration |
PT/ |
Resliced PET volumes indexed by tracer order |
aligned_CT/ |
Final aligned CT volumes |
aligned_MASK/ |
Aligned segmentation masks |
aligned_PT/ |
Aligned PET volumes; includes RGB-composite.nii.gz and grayscale-composite.nii.gz when multiplexing |
body_masks/ |
Body-region masks with ignored labels removed |
puma_masks/ |
24-label PUMA segmentations |
transforms/ |
Affine and warp fields for every tracer |
- Logs live alongside the run (
pumaz-v.<clock>.log); batch failures append topumaz-failures-YYYYMMDD-HHMMSS.log. - Passing
--convert-to-dicomcreates_dicomfolders insidealigned_PT/withProcessed-by-PUMAmetadata.
PUMA runs on CPU or GPU across major operating systems. PyTorch β₯2.1 ships native Metal (MPS) support, so Apple Silicon users can install the standard wheelβno custom forks or 3D-convolution patches required.
Performance benchmarks and reference datasets are in preparation. If you want early numbers or to contribute your own results, open an issue.
- File bugs or feature requests on the π issue tracker.
- Commercial support and integration services are available via π Zenta Solutions.
- The near-term roadmap includes automated QA scoring, longitudinal dashboards, and cloud-friendly batching.
If you use PUMA in your research, please cite:
L.K. Shiyam Sundar, S. Gutschmayer, M. Pires, et al.
βFully Automated Image-Based Multiplexing of Serial PET/CT Imaging for Facilitating Comprehensive Disease Phenotyping.β
Journal of Nuclear Medicine, September 2025. doi:10.2967/jnumed.125.269688
Every QIMP library carries a trailing βzβ to signal curiosity for what comes next. It nods to the unknown variable in science and to our commitment to keep stretching medical imaging beyond the expected. When you install pumaz, you join that exploration.
The open-source edition ships under GPLv3. For commercial licensing or OEM partnerships, contact [email protected].
Thanks to every contributorβlarge and smallβfor shaping PUMA.
W7ebere π |
Manuel Pires π» π |
Sebastian Gutschmayer π» π |
This project follows the all-contributors specification. Contributions of any kind are welcome.