setReactions applies given values to reactions of the model depending on the key argument.

setReactions(key = NULL, name = NULL, data = NULL, model = getCurrentModel())

Arguments

key

Identify which reaction to edit by specifying it's key, as string. Also supports fragments of keys, if uniquely matching one reaction.

name

Name to set, as string.

data

A data frame as given by getReactions which will be applied before the other arguments.

model

A model object.

Details

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.