extractPK | R Documentation |
Pull calculated PK parameters from a Simcyp simulation output Excel file. A
data.frame of all possible PK parameters may be found by typing
view(PKParameterDefinitions)
into the console.
extractPK(
sim_data_file,
PKparameters = NA,
sheet = NA,
compoundToExtract = "substrate",
tissue = "plasma",
existing_exp_details = NA,
returnAggregateOrIndiv = "aggregate",
includeTrialInfo = TRUE,
returnExpDetails = FALSE,
checkDataSource = TRUE
)
sim_data_file |
name of the Excel file containing the simulator output, in quotes |
PKparameters |
PK parameters you want to extract from the simulator output file. Options are:
|
sheet |
optionally specify the name of the sheet where you'd like to pull the PK data, in quotes; for example, specify the tab where you have a user-defined AUC integration. Note: Unless you want a very specific Excel sheet that's not what the usual sheet name would be for a first or last dose, this function will work best if this is left as NA. Also, since we don't know which dose these data were for, you'll see that the output parameter names do not include the suffixes "_last" or "_dose1". |
compoundToExtract |
For which compound do you want to extract PK data? Options are:
|
tissue |
For which tissue would you like the PK parameters to be pulled? Options are "plasma" (default), "unbound plasma", "blood", "unbound blood", "peripheral plasma", or "peripheral blood". NOTE: PK for peripheral sampling is not as well tested as for other tissues and is only set up for V21+. Please check your results carefully. |
existing_exp_details |
If you have already run
|
returnAggregateOrIndiv |
return aggregate (default) and/or individual PK parameters? Options are "aggregate", "individual", or "both". For aggregate data, values are pulled from simulator output – not calculated – and the output will be a data.frame with the PK parameters in columns and the statistics reported exactly as in the simulator output file. |
includeTrialInfo |
TRUE or FALSE (default) for whether to include which
individual and trial the data describe. This only applies when
|
returnExpDetails |
TRUE or FALSE: Since, behind the scenes, this function extracts experimental details from the "Summary" tab of the simulator output file, would you like those details to be returned here? If set to TRUE, output will be a list of 1. the requested PK data, 2. the experimental details provided on the Summary tab, and, if you have set checkDataSource to TRUE, 3. info for checking the data. (See "checkDataSource".) |
checkDataSource |
TRUE (default) or FALSE for whether to include in the output a data.frame that lists exactly where the data were pulled from the simulator output file. Useful for QCing. |
Depending on the options selected, returns a list of numerical
vectors or a list of data.frames: "individual" and "aggregate". If
checkDataSource
is TRUE, this will also return a data.frame named
"QC" that indicates where in the simulator output file the data came from.
sim_data_file <- "../Example simulator output MD + inhibitor.xlsx"
extractPK(sim_data_file)
extractPK(sim_data_file, PKparameters = "Absorption tab")
extractPK(sim_data_file, PKparameters = c("AUCinf_dose1", "Cmax_dose1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.