No project description provided
Project description
PeTu
PeTu is a fully automated pipeline for segmenting pediatric brain tumors. It uses a 3D nnU-Net model trained on co-registered multi-parametric MRI scans, including T1c, T1n, T2w, and T2f sequences. Subsequently, the model provides segmented tumor regions, including:
- T2-hyperintense region (T2H) – typically encompassing solid tumor mass and associated edema.
- Enhancing tumor (ET) – regions with contrast uptake, indicative of active or aggressive tumor areas.
- Cystic component (CC) – fluid-filled regions often seen in certain pediatric tumor types.
Features
Installation
With a Python 3.10+ environment, you can install petu directly from PyPI:
pip install petu
Use Cases and Tutorials
A minimal example to create a segmentation could look like this:
from petu import Inferer
inferer = Inferer()
# Save NIfTI files
inferer.infer(
t1c="path/to/t1c.nii.gz",
fla="path/to/fla.nii.gz",
t1="path/to/t1.nii.gz",
t2="path/to/t2.nii.gz",
ET_segmentation_file="example/ET.nii.gz",
CC_segmentation_file="example/CC.nii.gz",
T2H_segmentation_file="example/T2H.nii.gz",
)
# Or directly use pre-loaded NumPy data. (Both outputs work as well)
et, cc, t2h = inferer.infer(
t1c=t1c_np,
fla=fla_np,
t1=t1_np,
t2=t2_np,
)
[!NOTE]
If you're interested in the PeTu package, the Pediatric Segmentation may also be of interest.
Citation
Please support our development by citing the following manuscripts:
@misc{piffer2025enhancingefficiencypaediatricbrain,
title={Enhancing efficiency in paediatric brain tumour segmentation using a pathologically diverse single-center clinical dataset},
author={A. Piffer and J. A. Buchner and A. G. Gennari and P. Grehten and S. Sirin and E. Ross and I. Ezhov and M. Rosier and J. C. Peeken and M. Piraud and B. Menze and A. Guerreiro Stücklin and A. Jakab and F. Kofler},
year={2025},
eprint={2507.22152},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2507.22152},
}
Contributing
We welcome all kinds of contributions from the community!
Reporting Bugs, Feature Requests and Questions
Please open a new issue here.
Code contributions
Nice to have you on board! Please have a look at our CONTRIBUTING.md file.
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
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 petu-0.0.6.tar.gz.
File metadata
- Download URL: petu-0.0.6.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef30146ea5b37506aac94bf3048ee3ef88605832c1e8b0d42b14a82f8a84518d
|
|
| MD5 |
b1115b121408bfd2c9b9d3e78eff06c2
|
|
| BLAKE2b-256 |
c520fe97c0e85ecb0e98e77c8c76ec97ba22680ae80d9ffaf68f0fb29b5dc323
|
File details
Details for the file petu-0.0.6-py3-none-any.whl.
File metadata
- Download URL: petu-0.0.6-py3-none-any.whl
- Upload date:
- Size: 13.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94a8caa9f8968fe9652d774993c808589d57674b6b9f27cb8154eed4e36a496a
|
|
| MD5 |
855599a7a44a4d913c6c4518cb0b1ce3
|
|
| BLAKE2b-256 |
8be98b420f7a6c1dfa1b6d95ecfaddea140ebd2efb25dccab59b01bd0e10d3d4
|