Retrieve all molecules of a container (simulation or container instance) matching the given path criteria
Source:R/utilities-molecule.R
      getAllMoleculesMatching.RdRetrieve all molecules of a container (simulation or container instance) matching the given path criteria
Value
A list of molecules matching the path criteria. The list is empty if no molecules matching were found.
See also
loadSimulation(), getContainer() and getAllContainersMatching() to retrieve objects of type Container or Simulation
Examples
simPath <- system.file("extdata", "simple.pkml", package = "ospsuite")
sim <- loadSimulation(simPath)
# Return all `A` molecules defined in all direct containers of the organism
molecules <- getAllMoleculesMatching("Organism|*|A", sim)
# Return all `A` molecules defined in all direct containers of the organism
# and the molecule `B`` of the container 'Liver'
paths <- c("Organism|*|A", "Organism|Liver|B")
molecules <- getAllMoleculesMatching(paths, sim)
# Returns all `A` molecules defined in `Organism` and all its subcontainers
molecules <- getAllMoleculesMatching("Organism|**|A", sim)