Skip to main content

First open-source radiation treatment planning system in Python

Project description

What is PortPy?

Note: The package is at its early stages of development (version 0.0.3) and we are now collecting feedback from researchers to further refine the data structure and the main functionality. We are expecting to have a stable version 1.xx around March 2023. We would love to hear your feedback.

PortPy (Planning and Optimization for Radiation Therapy) is a community effort to develop the first opensource python library to facilitate the development and clinical translation of radiotherapy cancer treatment planning algorithms. PortPy includes:

  1. Research-ready data and code for benchmarking, reproducibility, and community-driven development.
  2. Interface to an open-source optimization package CVXPy for easy/quick prototyping and out-of-the-box access to commercial/opensource optimization engines (e.g., Mosek, Gorubi, CPLEX, IPOPT).
  3. Visualization modules to visualize relevant plan information (e.g, dose volume histograms, dose distribution, fluence map).
  4. Evaluation modules to quantify plan quality with respect to established clinical metrics (e.g., RTOG metrics, dose conformality, tumor control probability, normal tissue control probability).

Data

Data needed for optimization and algorithm development (e.g., a set of beams/beamlets/voxels, dose contribution of each beamlet to each voxel) are provided for a set of pre-specified machine parameters (e.g., beam/collimator/couch angles). We will initially provide these for a set of publicly available datasets from TCIA. We hope to expand our dataset in the future. The data needed for optimization is extracted from the research version of EclipseTM treatment planning system (Varian Medical Systems) using its API.

You can download the sample patient data here.

Create a directory named './data' in the current project directory and copy the downloaded file to it, e.g ./data/Lung_Patient_1

Installing PortPy

  1. Installing using pip
pip install portpy-photon
  1. Installing using conda
conda install -c conda-forge portpy-photon
  1. Installing from source
  • Clone this repository:

    git clone https://github.com/PortPy-Project/PortPy-Photon.git
    cd portpy_photon
    
  • You need to install the dependencies in either a python virtual environment or anaconda environment. Instructions for setting up in python virtual environment are as follows:

    Install all the dependencies present in requirements.txt:

    python3 -m venv venv
    source venv/bin/activate
    (venv) pip install -r requirements.txt
    

To better understand the PortPy functionality, we recommend running an example script eg_1_basics.py for creating and visualizing a sample IMRT plan.

License

PortPy code is distributed under Apache 2.0 with Commons Clause license, and is available for non-commercial academic purposes.

Team

PortPy is a community project initiated at Memorial Sloan Kettering Cancer Center. It is currently developed and maintained by:

Name Expertise Institution
Masoud Zarepisheh Treatment Planning and Optimization MSK
Saad Nadeem Computer Vision and AI in Medical Imaging MSK
Gourav Jhanwar Algorithm Design and Development MSK
Mojtaba Tefagh Mathematical Modeling and Reinforcement Learning SUT
Vicki Taasti Physics and Planning of Proton Therapy MAASTRO
Sadegh Alam Adaptive Treatment Planning and Imaging Cornell
Seppo Tuomaala Eclispe API Scripting VARIAN

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

portpy-0.0.1.tar.gz (200.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

portpy-0.0.1-py3-none-any.whl (66.3 kB view details)

Uploaded Python 3

File details

Details for the file portpy-0.0.1.tar.gz.

File metadata

  • Download URL: portpy-0.0.1.tar.gz
  • Upload date:
  • Size: 200.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.4

File hashes

Hashes for portpy-0.0.1.tar.gz
Algorithm Hash digest
SHA256 77c79795ffd2efb5c3b342696cc43199b4457ff76d082ade1a787f891324b7a8
MD5 36afbb7405003017fb1b5dc2e0a8476f
BLAKE2b-256 3f802da9b839e4d6e7ad1e3158a8dd5e979fc796067c3493757e31bd51fecf96

See more details on using hashes here.

File details

Details for the file portpy-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: portpy-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 66.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.4

File hashes

Hashes for portpy-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4c5213a8a10cca3c9514e8f84955983f84262be373edc4630f43b533a8f4d51f
MD5 e6cdb8639738c942ce8c8e68ae57c5fd
BLAKE2b-256 ebb12aacbefe9625416302beced3b425debecc1b1149d51baae9d91cd8754c09

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page