https://github.com/samuelpeet/flashgamma
Analysis of radiotherapy dose distributions
https://github.com/samuelpeet/flashgamma
medical-physics radiation-therapy
Last synced: 19 days ago
JSON representation
Analysis of radiotherapy dose distributions
- Host: GitHub
- URL: https://github.com/samuelpeet/flashgamma
- Owner: samuelpeet
- License: mit
- Created: 2018-09-25T01:06:20.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-22T02:36:31.000Z (about 2 years ago)
- Last Synced: 2025-04-09T05:16:13.228Z (about 1 month ago)
- Topics: medical-physics, radiation-therapy
- Language: Python
- Homepage:
- Size: 1.28 MB
- Stars: 31
- Watchers: 7
- Forks: 12
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-medphys - FlashGamma -  A python package for speedy analyses of 2D radiotherapy dose distributions. (Libraries)
README
# flashgamma
A python package for speedy analyses of 2D radiotherapy dose distributions.
## Installation
Installation is through `pip`. You must have `numpy` installed in your environment first. You may also wish to install matplotlib to run the examples.
pip install numpy matplotlib
pip install flashgamma## Examples
Checkout the examples folder for details.
**Example 1** demonstrates how to perform a gamma analysis on some ArcCheck data:

**Example 2** uses arbitrary `numpy` arrays:

**Example 3** uses a `cython` based function to rapidly calculate gamma pass rates. That means you can analyse entire ranges of dose difference and distance to agreement criteria at once, generating interesting plots like this:

## Caveats
This code was written for personal educational purposes. Although it was shown internally to perform similarly to a range of proprietary gamma analysis codes, it is in no way guaranteed to be free from bugs and errors.
## Literature
This software was featured in the following publication:
Samuel C. Peet, Liting Yu, Sarah Maxwell, Scott B. Crowe, Jamie V. Trapp, Tanya Kairn. (2020). "Exploring the gamma surface: A new method for visualising modulated radiotherapy quality assurance results". Physica Medica: European Journal of Medical Physics, Volume 78, 166-172. (https://doi.org/10.1016/j.ejmp.2020.09.021)