Join us for
RADAR: AI Edition

PharmacoGx (version 1.1.6)

computeAUC: Return AUC (Area Under the drug response curve) for an experiment of a pSet by taking its concentration and viability as input.

Description

Return AUC (Area Under the drug response curve) for an experiment of a pSet by taking its concentration and viability as input.

Usage

computeAUC(concentration, viability, trunc = TRUE, area.type = c("Fitted", "Actual"), verbose = TRUE)

Arguments

concentration
[vector] A concentration range that the AUC should be computed for that range. Concentration range by default considered as not logarithmic scaled.
viability
[vector] Viablities correspondant to the concentration range passed as first parameter. The range of viablity values by definition should be between 0 and 100. But the viabalities greater than 100 and lower than 0 are also accepted.
trunc
[binary] A flag that identify if the viabality values should be truncated to be in the range of (0,100)
area.type
Should the area be computed using the actual data ("Actual"), or a fitted curve ("Fitted")
verbose
[boolean] If 'TRUE' the function will retrun warnings and other infomrative messages.

Value

Numeric AUC value

Examples

Run this code
dose <- c("0.0025","0.008","0.025","0.08","0.25","0.8","2.53","8") 
viability <- c("108.67","111","102.16","100.27","90","87","74","57")
computeAUC(dose, viability)

Run the code above in your browser using DataLab