View source: R/utilities-molecule.R
setMoleculeInitialValues | R Documentation |
Set molecule start values
setMoleculeInitialValues(molecules, values, units = NULL)
molecules |
A single or a list of |
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 |
units |
A string or a list of strings defining the units of the
|
getMolecule()
and getAllMoleculesMatching()
to retrieve objects of type Molecule
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
molecule <- getMolecule("Organism|Liver|A", sim)
setMoleculeInitialValues(molecule, 1)
molecules <- getAllMoleculesMatching("Organism|**|A", sim)
setMoleculeInitialValues(molecules, c(2, 3), units = c("pmol", "mmol"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.