Automated analysis of DVH (Dose-Volume Histogram) data for lung cancer radiotherapy. Compares VMAT/VIMA vs IMRT treatment plans.
Status: Release Candidate (RC) / Pre-release
Note: Executable build is planned. Current version requires Python installation (temporary).
Check if Python is already installed:
python3 --versionIf you see "Python 3.10" or higher, skip to Step 2.
If not installed:
- Download from: https://www.python.org/downloads/
- Install version 3.10 or newer
- On macOS, use
python3instead ofpython
Open Terminal and run:
python3 -m pip install -r requirements.txtNote: Use python3 -m pip instead of just pip to ensure correct Python version.
Wait for installation to complete (1-2 minutes).
python3 web/app.pyYour browser will automatically open to http://localhost:5000
-
Upload Files
- Drag and drop your DVH
.txtfiles into the upload area - Or click to browse and select files
- You can upload multiple files at once
- Drag and drop your DVH
-
Run Analysis
- Click the green "Run Analysis" button
- Wait 10-30 seconds for processing
-
Download Results
- Click "Download JSON" for detailed data
- Click "Download CSV" to open in Excel
File Format:
.txtfiles exported from your Treatment Planning System- Must be Differential DVH format
- Dose in cGy (centirays)
- Volume in cm³ (cubic centimeters)
- Note: Header may show "Volume Units: %" but actual data is in cm³
- Software automatically normalizes volumes
Required Structures in Files: Your DVH files must contain these structures:
PTV_6000orPTV_6600— tumor targetLUNG_TOTAL— lungsHEART— heartESOPHAGUS— esophagusSPINAL_CORD— spinal cord
Example Files:
See examples/ folder for correctly formatted files (LCMD2, LCMD3).
Complete results including:
- TCP (Tumor Control Probability) for PTV
- NTCP (Normal Tissue Complication Probability) for organs at risk
- DVH metrics (Mean Lung Dose, V5, V20, Dmax)
- Plan comparison (VMAT vs IMRT deltas)
One row per treatment plan with columns:
- Patient ID, Plan Name
- TCP values
- NTCP values (lung, heart, esophagus, spinal cord)
- DVH metrics
Import into Excel or any spreadsheet software for further analysis.
- Model: Niemierko (EUD-based)
- Reference: Niemierko A. (1997). Med Phys 24(1):103-110
- Model: Lyman-Kutcher-Burman (LKB)
- References:
- Lyman JT. (1985). Radiat Res Suppl 8:S13-19
- Kutcher GJ, Burman C. (1989). Int J Radiat Oncol Biol Phys 16(6):1623-1630
- Marks LB et al. (2010). Int J Radiat Oncol Biol Phys 76(3 Suppl):S10-19
Browser doesn't open:
- Open any browser and type:
http://localhost:5000
"Structure not found" error:
- Your DVH file is missing required structures (see "What Files to Upload")
- Check that structure names match exactly (e.g.,
LUNG_TOTALnotLUNGS)
"Port 5000 already in use":
- Close other programs that might use port 5000
- Restart your computer if needed
"Module not found" errors:
- Run installation again:
python3 -m pip install -r requirements.txt - Make sure you're using Python 3.10 or newer:
python3 --version
Files uploaded but no results:
- Check that files are Differential DVH format (not Cumulative)
- Verify dose is in cGy (~6000 for PTV), not Gy (~60)
- Ensure your TPS exports differential histograms
For technical support or questions about clinical parameters, refer to the model references above or consult with your medical physics team.
-
Standalone Executable (high priority)
- No Python installation required
- Single-file distribution for Windows/macOS
- Options being evaluated:
- Clean build on non-conda environment
- Windows-specific build
- Embedded Python launcher
-
Additional Features (future)
- Statistical analysis of plan comparisons
- DVH visualization (matplotlib/plotly)
- Batch export options
Current Version: Release Candidate (RC1)
What Works:
- ✅ DVH parsing (differential format, automatic volume normalization)
- ✅ TCP/NTCP calculations (validated on real data)
- ✅ All metrics (MLD, V5, V20, Dmax)
- ✅ Web interface (upload, process, download)
- ✅ JSON + CSV export
- ✅ VMAT vs IMRT comparison
Known Limitations:
⚠️ Requires Python installation (temporary)⚠️ Cord D0.1cc/D1cc metrics require absolute volumes (currently only Dmax)
Research tool for radiotherapy plan evaluation.