DVHA MLC Analyzer
Batch analyze DICOM-RT Plan files to calculate complexity scores
DVH Analytics (DVHA) is a software application for building a local database of radiation oncology treatment planning data. It imports data from DICOM-RT files (i.e., plan, dose, and structure), creates a SQL database, provides customizable plots, and provides tools for generating linear, multi-variable, and machine learning regressions.
DVHA-MLCA is a stand-alone command-line script to batch analyze DICOM-RT Plans using the MLC Analyzer code from DVHA.
Complexity score based on: Younge KC, Matuszak MM, Moran JM, McShan DL, Fraass BA, Roberts DA. Penalization of aperture complexity in inversely planned volumetric modulated arc therapy. Med Phys. 2012;39(11):7160–70.
Installation
To install via pip:
$ pip install dvha-mlca
If you’ve installed via pip or setup.py, launch from your terminal with:
$ mlca <init-scanning-directory>
If you’ve cloned the project, but did not run the setup.py installer, launch DVHA-MLCA with:
$ python mlca/main.py <init-scanning-directory>
Command line usage
usage: mlca [-h] [-of OUTPUT_FILE] [-xw COMPLEXITY_WEIGHT_X]
[-yw COMPLEXITY_WEIGHT_Y] [-xs MAX_FIELD_SIZE_X]
[-ys MAX_FIELD_SIZE_Y] [-ver] [-v] [-n PROCESSES]
[init_dir]
Command line DVHA MLC Analyzer
positional arguments:
init_dir Directory containing DICOM-RT Plan files
optional arguments:
-h, --help show this help message and exit
-of OUTPUT_FILE, --output-file OUTPUT_FILE
Output will be saved as
dvha_mlca_<version>_results_<time-stamp>.csv by
default.
-xw COMPLEXITY_WEIGHT_X, --x-weight COMPLEXITY_WEIGHT_X
Complexity coefficient for x-dimension: default = 1.0
-yw COMPLEXITY_WEIGHT_Y, --y-weight COMPLEXITY_WEIGHT_Y
Complexity coefficient for y-dimension: default = 1.0
-xs MAX_FIELD_SIZE_X, --x-max-field-size MAX_FIELD_SIZE_X
Maximum field size in the x-dimension: default = 400.0
(mm)
-ys MAX_FIELD_SIZE_Y, --y-max-field-size MAX_FIELD_SIZE_Y
Maximum field size in the y-dimension: default = 400.0
(mm)
-ver, --version Print the DVHA-MLCA version
-v, --verbose Print final results and plan summaries as they are
analyzed
-n PROCESSES, --processes PROCESSES
Enable multiprocessing, set number of parallel
processes
For example:
$ mlca "C:\PatientDicom" -n 8
Directory: C:\PatientDicom
Begin file tree scan ...
File tree scan complete
Searching for DICOM-RT Plan files ...
100%|██████████████████████████████| 9087/9087 [00:59<00:00, 153.52it/s]
1650 DICOM-RT Plan file(s) found
Analyzing 1650 file(s) ...
10%|███ | 169/1650 [02:02<13:35, 1.82it/s]
Dependencies
Support
If you like DVHA-MLCA and would like to support our mission, all we ask is that you cite us if we helped your publication, or help the DVHA community by submitting bugs, issues, feature requests, or solutions on the issues page.
Cite
DOI: https://doi.org/10.1002/acm2.12401 Cutright D, Gopalakrishnan M, Roy A, Panchal A, and Mittal BB. “DVH Analytics: A DVH database for clinicians and researchers.” Journal of Applied Clinical Medical Physics 19.5 (2018): 413-427.
Metadata
Release files for dvha-mlca 0.2.3.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dvha-mlca-0.2.3.post1.tar.gz | 23.0 kB | Without provenance | Details for dvha-mlca-0.2.3.post1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dvha_mlca-0.2.3.post1-py3-none-any.whl | Python 3 | none | any | Details for dvha_mlca-0.2.3.post1-py3-none-any.whl |
Total release size: 45.9 kB
Release files / dvha-mlca-0.2.3.post1.tar.gz
| Download URL | dvha-mlca-0.2.3.post1.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e95685e26ed35c99b068ff818603f7c810b9dc24ecd55bae9334148ef23764ad
|
|
BLAKE2b-256 checksum How to use checksums |
7ce92dbcbb0f4817a72bb746de72a45d61b8dca82618590bdae97381060bcdab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.8
|
Release files / dvha_mlca-0.2.3.post1-py3-none-any.whl
| Download URL | dvha_mlca-0.2.3.post1-py3-none-any.whl |
|---|---|
| Size | 22.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55d626be39f4a898f8402f98f8fdc0d7af8bbdb23733617f3da3eff275e90d61
|
|
BLAKE2b-256 checksum How to use checksums |
5ce78e87459445e2b66c9ef2227b94ec8f436b7a0d379234b57af57ea9fe7761
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.6.8
|
Security for dvha-mlca 0.2.3.post1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.