API Reference#

Every module, class and function, generated from the docstrings. For how they fit together, see Architecture.

Running an analysis#

validate.run

Run an analysis on every patient in the cohort.

validate.logs

Maintain the logs of an analysis.

validate.notify

Email the user when a run finishes, through the machine's own mail system (sendmail).

Settings and data#

validate.core.analysis

Create, read, or modify analysis.yaml, which contains the user configurations for an analysis.

validate.core.data_capsule

Defines Validate's data structure, "DataCapsule", created per analysis.

validate.data_io.read_inputs

Cohort discovery, importing data and analysis settings to DataCapsule

validate.data_io.build_capsule

Build one PatientRecord per patient and attach them to a DataCapsule.

Segmentation and modelling#

validate.seg.structures

Registry mapping a required structure to the auto-segmentation method.

validate.seg.autoseg_pipeline

Batch auto-segmentation pipeline.

validate.seg.model_registry

Maintain a log of installed cerr.ai_models models to avoid re-installing.

validate.modeling.apply_model

Apply a cerr.roe dosimetric model to a single patient dataset/pre-computed predictors.

GUI#

validate.gui.main_window

Main window: the shared settings (data folder, plan info, dosimetric model, analysis folder) above the Segment, Model and Review tabs.

validate.gui.segment_tab

Segment tab: run the AI models the dosimetric model's structures are derived from (installing them first if needed).

validate.gui.model_tab

Model tab: derive the structures the dosimetric model needs (or use existing ones), then compute NTCP for every patient, and export the per-patient predictions to CSV.

validate.gui.performance_tab

Review Performance tab: placeholder.

validate.gui.progress_and_logging

Shared functionalities of the Segment and Model tabs: Run, Stop, Log, progress, and the checks made before a run.

validate.gui.worker

Background threads (ensures installing AI models, running segmentation and evaluating dosimetric models never blocks the GUI thread.

validate.gui.theme

Dark theme, with an accent color nodding to CERR ROE's teal (cerr/CERR_core/PlanAnalysis/ROE.m: figColor [.6 .75 .75]).