Skip to contents

Convert a data frame into a perpetrator object.

Usage

new_perpetrator(df)

Arguments

df

A data frame to be converted into a perpetrator object. See 'Details' for the expected format and fields.

Value

A perpetrator object.

Details

The input is a data frame with the columns 'param', 'value' and source'.

Rows with the following parameters ('param') are expected in the input:

PARAMREQUIREMENTDESCRIPTION
namerequiredthe name of the compound
oralrequiredlogical value (TRUE or FALSE) to indicate whether the compound is administered orally
mwrequiredmolar weight in g/mol
doserequired for parent compoundsclinical dose in mg
imaxssrequiredtotal Cmax in ng/ml
fuoptionalfraction unbound, default is 1
fumicoptionalmicrosomal unbound fraction, dafault is 1
rboptionalblood-to-plasma concentration ratio, default is 1
faoptionalfraction absorbed, default is 1
fgoptionalfraction escaping gut metabolism, default is 1
kaoptionalabsorption rate constant, default is 0.1 /min
solubilityoptionalsolubility of the compound in mg/l, defaults to Inf

The following is an example for a valid input data frame:

        param      value        source
1        name examplinib
2        oral       TRUE
3          mw      492.6
4        dose        450 clinical dose
5      imaxss       3530     study 001
6          fu      0.023     study 002
7       fumic          1       default
8          rb          1     study 003
9          fa       0.81     study 003
10         fg          1       default
11         ka    0.00267       unknown
12 solubility        Inf       default