View source: R/utilities-molecule.R
setMoleculeValuesByPath | R Documentation |
Set molecule start values in the simulation by path
setMoleculeValuesByPath(
moleculePaths,
values,
simulation,
units = NULL,
stopIfNotFound = TRUE
)
moleculePaths |
A single or a list of molecule paths |
values |
A numeric value that should be assigned to the molecule start value or a vector
of numeric values, if the start value of more than one molecule should be changed. Must have the same
length as |
simulation |
Simulation containing the quantities |
units |
A string or a list of strings defining the units of the
|
stopIfNotFound |
Boolean. If |
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
setMoleculeValuesByPath("Organism|Liver|A", 1, sim)
setMoleculeValuesByPath(
c("Organism|Liver|A", "Organism|Liver|B"),
c(2, 3),
sim,
units = c("µmol", "mmol")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.