setReactions
applies given values to reactions of the model depending on the key
argument.
setReactions(key = NULL, name = NULL, data = NULL, model = getCurrentModel())
Identify which reaction to edit by specifying it's key, as string. Also supports fragments of keys, if uniquely matching one reaction.
Name to set, as string.
A data frame as given by getReactions
which will be applied before the other arguments.
A model object.
Use the key
argument to specify which reaction 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.
getReactions
getReactionReferences
Other reaction functions:
clearCustomKineticFunctions()
,
deleteKineticFunction()
,
deleteReaction()
,
entity_finders
,
getParameterReferences()
,
getParameters()
,
getReactionMappings()
,
getReactionReferences()
,
getReactions()
,
getValidReactionFunctions()
,
newKineticFunction()
,
newReaction()
,
setParameters()
,
setReactionFunction()
,
setReactionMappings()