setSpecies
applies given values to species of the model depending on the key
argument.
setSpecies(
key = NULL,
name = NULL,
compartment = NULL,
type = NULL,
initial_concentration = NULL,
initial_number = NULL,
initial_expression = NULL,
expression = NULL,
data = NULL,
model = getCurrentModel()
)
Identify which species to edit by specifying it's key, as string. Also supports fragments of keys, if uniquely matching one species.
Name to set, as string.
Key of new compartment to set, as string.
Type ("fixed", "assignment", "reactions", "ode") to set, as string.
Initial concentration to set, as numeric.
Initial particle number to set, as numeric.
Initial expression to set, as string, finite numeric, or logical.
Expression to set, as string, finite numeric, or logical.
A data frame as given by getSpecies
which will be applied before the other arguments.
A model object.
Use the key
argument to specify which species to modify and any of the other arguments to specify the value to set.
The function is fully vectorized.
If a NA
value is supplied, the model value is kept unchanged.
The online article on managing model entities provides some further context.
getSpecies
getSpeciesReferences
Other species functions:
deleteSpecies()
,
entity_finders
,
getSpeciesReferences()
,
getSpecies()
,
newSpecies()