Skip to main content

Merge and scale TOPAS DICOMS - calculate and compare DVHs

Project description

TopasDoseCalc

A GUI to merge and scale split-up TOPAS simulations to absolute doses and calculate DVHs

This GUI allows the merging of multiple TOPAS DICOM simulations. This can be useful when a patient plan has been split up into individual simulations of the control points. The merged simulation can then be scaled using a reference calibration simulation and data from the RTPLAN. Finally, DVHs can be automatically created when supplying a RTSTRUCT file.

Installation

Install using pip:

$ pip install topasdosecalc  

Then, start the GUI by running:

$ python -m topasdosecalc

Or, if your Python is added to $PATH, simply run:

$ topasdosecalc

Manual

To use TopasDoseCalc, you need to supply at least five things:

  1. A directory containing your TOPAS DICOM simulation results, named after the control point (order is relevant!)
  2. A TOPAS dose profile reference simulation. The mean of the values close to the center axis is used as the scale
  3. A directory containing at least the relevant RTPLAN file. For DVH calculation, a RTDOSE and RTSTRUCT file is required
  4. The histories used for the simulation of each control point (individual, not total)
  5. A new series description for the merged DICOM

If you supplied a RTDOSE and RTSTRUCT file, you can select the structures for which to calculate a DVH. This can be useful as an initial validation of the simulation results.

Note: The program assumes 1 MU to be equivalent to 1cGy. If this doesn't apply to your case, scale the histories per simulation by the relevant amount.

Screenshots

Dependencies

Built using the beautiful Azure-ttk theme by @rdbende. Requires python3, numpy, matplotlib, pydicom and dicompyler-core.

Contact me!

Thank you for using TopasDoseCalc! Please let me know about any issues you encounter, or suggestions/wishes you might have!

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

topasdosecalc-1.4.tar.gz (1.3 MB view details)

Uploaded Source

Built Distribution

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

topasdosecalc-1.4-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file topasdosecalc-1.4.tar.gz.

File metadata

  • Download URL: topasdosecalc-1.4.tar.gz
  • Upload date:
  • Size: 1.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.13

File hashes

Hashes for topasdosecalc-1.4.tar.gz
Algorithm Hash digest
SHA256 b3b1aafaad450d3ebab90efb360b4a53ec8372702254c87553648928dffd7745
MD5 4e2939a52653e6dcf311d49545d3c06d
BLAKE2b-256 a0c3e6846d962c2f0fbaebe827b5eb04fd4bec3c198264a3dd3359f3194e6d2e

See more details on using hashes here.

File details

Details for the file topasdosecalc-1.4-py3-none-any.whl.

File metadata

  • Download URL: topasdosecalc-1.4-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.64.0 CPython/3.8.13

File hashes

Hashes for topasdosecalc-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b4871080d88fd7be137d754107f7bcaac208fd0d6127b0a1629af43624fddbf8
MD5 36f4c24415ee0146edb148562e301cf6
BLAKE2b-256 ca7aa4a8244aa59006da9bc4062df562ca3e0623e6d8de9c1d577aea138d633f

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