getMetric(x, metric, patID, structure,
sortBy=c("none", "observed", "patID", "structure", "metric"),
splitBy=c("none", "patID", "structure", "metric"),
interp=c("linear", "spline", "ksmooth"), ...)
## S3 method for class 'DVHs':
getMetric(x, metric, patID, structure,
sortBy=c("none", "observed", "patID", "structure", "metric"),
splitBy=c("none", "patID", "structure", "metric"),
interp=c("linear", "spline", "ksmooth"), ...)
## S3 method for class 'DVHLst':
getMetric(x, metric, patID, structure,
sortBy=c("none", "observed", "patID", "structure", "metric"),
splitBy=c("none", "patID", "structure", "metric"),
interp=c("linear", "spline", "ksmooth"), ...)
## S3 method for class 'DVHLstLst':
getMetric(x, metric, patID, structure,
sortBy=c("none", "observed", "patID", "structure", "metric"),
splitBy=c("none", "patID", "structure", "metric"),
interp=c("linear", "spline", "ksmooth"), ...)
DVHs
, multiple cumulative DVHs from one patient with multiple structures (object of class DVHLst
), or multiple cumulative DVHs from many patients, each with multiple structures (object of classcharacter
vector defining one or more DVH metrics. See Details for their definition. For metrics involving the relative dose, the DVH must contain the prescription dose.character
vector. Calculate given DVH metrics for these patients only. If missing, DVH metrics are calculated for all patients. Can be a regular expression, see regex
.character
vector. Calculate given DVH metrics for these structures only. If missing, DVH metrics are calculated for all structures. Can be a regular expression, see regex
.character
vector giving the sorting criteria for the output data frame.character
vector. Split results into a list of data frames where list components are defined by groups from combining these variables.character
. Method of interpolation between DVH points: Linear interpolation using approx
, monotone Hermite spline interpolation using splinefun<
"DMEAN"
: The volume-weighted mean dose of the structure."DMEDIAN"
: Median dose, equal to D50\%"DMIN"
: The minimum dose of the non-zero-dose voxels in the structure."DMAX"
: The maximum dose of the non-zero-dose voxels in the structure."DSD"
: The standard deviation of the dose in the structure."DRX"
: The prescription dose."DEUD"
: The generalized equivalent uniform dose (gEUD). SeegetEUD
for mandatory and optional parameters."DNTCP"
: The normal tissue complication probability (NTCP). SeegetNTCP
for mandatory and optional parameters."DTCP"
: The tumor control probability (TCP). SeegetNTCP
for mandatory and optional parameters."D"
or"V"
:"D"
If the requested value is a dose,"V"
if it is a volume.
: If the first letter is"D"
, this gives the volume for which the dose value of the cumulative DVH should be reported. If the first letter is"V"
, this gives the dose for which the volume value of the cumulative DVH should be reported.
: The measurement unit for the 2nd element of the metric. Absolute volumes are indicated by"CC"
for cubic centimeter, relative volumes by"%"
. Absolute doses are indicated by"Gy"
for Gray or"cGy"
for Centigray, relative doses by"%"
._
: The measurement unit of the output value. Possible units are as for the 3rd element. If missing, dose is reported as absolute dose in the measurement unit used in the DVH. Volume is reported as relative volume in \%."D1%"
: Minimal absolute dose for the "hottest" 1\% of the structure, i.e., the maximally irradiated 1\% of the structure was exposed to at least this absolute dose."D1CC_%"
: Minimal relative dose (\% of prescription dose) for the maximally irradiated cm^3 of the structure."V500cGy"
: Relative structure volume in \% that was exposed to at least 500cGy."V10%_CC"
: Absolute structure volume in cm^3 that was exposed to at least 10\% of prescription dose.NA
with a warning.
DMEAN, DMEDIAN, DMIN, DMAX, DSD are taken from the exported DVH if present. Otherwise, the differential DVH is generated and used for calculating these metrics.saveMetric
,
getEUD
,
getNTCP
,
getTCP
,
getEQD2
,
approxfun
,
splinefun
,
dpill
,
locpoly
getMetric(dataMZ, c("D1CC", "V10%_CC"),
sortBy=c("metric", "structure", "observed"))
# matching patients are P123 and P234
# matching structures are AMYOCL and AMYOCR
getMetric(dataMZ, c("D1CC", "V10%_CC"),
patID="23",
structure=c("AMYOC", "VALVE"),
splitBy="patID")
# gEUD with a=2
getMetric(dataMZ[[c(1, 1)]], "DEUD", EUDa=2)
# gEUD based on EQD2 with a=2, 20 fractions
getMetric(dataMZ[[c(1, 1)]], "DEUD", EUDa=2, EUDfd=1.8)
# NTCP Lyman probit model with TD50=20, m=4, n=0.5
getMetric(dataMZ[[c(1, 1)]], "DNTCP",
NTCPtd50=20, NTCPm=4, NTCPn=0.5, NTCPtype="probit")
Run the code above in your browser using DataLab