View source: R/utilities-molecule.R
getMolecule | R Documentation |
Retrieve a single molecule by path in the given container
getMolecule(path, container, stopIfNotFound = TRUE)
path |
A string representing the path relative to the |
container |
A Container or Simulation used to find the molecules |
stopIfNotFound |
Boolean. If |
The Molecule
with the given path. If the molecule for the path
does not exist, an error is thrown if stopIfNotFound
is TRUE (default),
otherwise NULL
loadSimulation()
, getContainer()
and getAllContainersMatching()
to retrieve objects of type Container or Simulation
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
molecule <- getMolecule("Organism|Liver|A", sim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.