rm(list = ls())
library(ospsuite)
library(ospsuite.reportingengine)
rootDir <- "."
setwd(rootDir)
runscript <- function() {
workflowFolder <- file.path(rootDir, paste0("tests/dev/tracelib_par_pop_ex_", format(Sys.Date(), "%Y%m%d"), "_", format(Sys.time(), "%H%M%S")))
simulationFile <- file.path(rootDir, "tests/data/input-data/individualPksimSim.pkml")
populationFile <- file.path(rootDir, "tests/data/input-data/popData_short.csv")
tree <- ospsuite::getSimulationTree(simulationFile)
ps <- PopulationSimulationSet$new(
simulationSetName = "nonparpopsim",
simulationFile = simulationFile,
populationFile = populationFile,
outputs = Output$new(
path = "Organism|VenousBlood|Plasma|smarties|Concentration",
pkParameters = c("C_max", "CL")
)
)
pwf <- PopulationWorkflow$new(simulationSets = list(ps), workflowFolder = workflowFolder, workflowType = PopulationWorkflowTypes$parallelComparison)
setwd(workflowFolder)
pwf$simulate$settings$showProgress <- FALSE
pwf$simulate$settings$numberOfCores <- 2
pwf$simulate$activate()
pwf$calculatePKParameters$activate()
pwf$calculateSensitivity$activate()
pwf$calculateSensitivity$settings$showProgress <- TRUE
pwf$calculateSensitivity$settings$variableParameterPaths <- c(tree$Organism$Heart$Volume$path, tree$Organism$Liver$Volume$path)
pwf$calculateSensitivity$settings$numberOfCores <- 2
pwf$calculateSensitivity$settings$quantileVec <- c(0.25, 0.75)
pwf$plotSensitivity$activate()
pwf$runWorkflow()
}
runscript()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.