4. NTCP from pre-computed predictors#

In this tutorial you compute NTCPs from a table alone, without any images. Use this when you already have each patient’s dose metrics, for example exported from your treatment planning system or computed in another study.

You need: a CSV with one row per patient, holding every dose metric and clinical predictor the model uses, for example precomputed_predictors_xerostomia.csv.

Prepare the CSV#

For Xerostomia (grade 2+), the CSV needs the mean dose to each of its four structures, plus pre-treatment xerostomia:

ID,SCRR meanDose,Parotids-SCRR meanDose,Submandibular glands meanDose,Oral cavity meanDose,pretreatment_toxicity
pt_001,24.1,22.8,48.3,35.6,0
pt_002,31.7,27.4,55.0,41.2,1
  • ID identifies the patient.

  • Name each dose metric column <structure> <metric>, exactly as in the model, for example Oral cavity meanDose. Doses are in Gy.

  • Name each clinical predictor column as in the model, with its numeric code (here 0 for No, 1 for Yes).

  • If the model corrects for fractionation, give the doses already corrected. VALIDATE uses the values as they are.

Built-in models lists each built-in model’s dose metrics and predictors.

Set up and run#

  1. Open VALIDATE. Under Start from, select Pre-computed predictors. Data, Plan info, the Segment tab and the Structures table are grayed out, since they aren’t used.

  2. In Model, select Xerostomia (grade 2+).

  3. On the Model tab, next to Predictor values, click Select CSV and choose your CSV.

  4. Check Output. It defaults to analysis_<model> in the CSV’s folder.

Start from is set to Pre-computed predictors. Data and Plan info are grayed out, as is the Structures table on the Model tab. Predictor values is set to precomputed_predictors_xerostomia.csv.
  1. Click Run, then Save and continue.

  2. When the progress bar says Done, click Export CSV… to save the results.

The Model tab after the run, with "Done (5/5 patients)" and Export CSV enabled.

If a patient fails#

A patient fails if a value the model needs is missing: a missing column, or an empty cell. Click View error log to see which value. Fill it in, then click Run again.