yumiko123 / PyEQD2

Convert DICOM-RT dose matrices to EQD2 via Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyEQD2

Use Python to convert a DICOM-RT dose distribution to its Linear Quadratic Equivalent Dose in 2-Gy Fractions (LQED2, EQD2).


Example (Main Functions)

import pyeqd2 as eqd

dicompath = '/Users/macuser/Downloads/testfile.dcm'
a = eqd.RTDose(dicompath)
a.plot()
a.plot_legend()

fractions = 8   # number of fractions
abratio = 3     # alpha/beta ratio
a.make_eqd2(fractions, abratio)
a.export()

Example (Other Commands)

# For an easy way to multiply the entire dose distribution before or after conversion to EQD2:
factor = 8
a.multiply(factor)

Requirements:

Python 3 Standard Library with the following additional packages:

  • Matplotlib
  • NumPy
  • pydicom

Credit:

Based on Darcy Mason's pydicom (http://www.pydicom.org) – thank you for your hard work!

About

Convert DICOM-RT dose matrices to EQD2 via Python


Languages

Language:Python 100.0%