setReactionFunction sets the reaction function for a reaction.

setReactionFunction(key, fun, mappings = 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.

fun

Key of new kinetic function to set, as string. Also supports fragments of keys, if uniquely matching one kinetic function.

mappings

Parameter mappings, as named list. Names are the parameters of the kinetic function. Values are either entity keys valid for the specific type of parameter or a numeric value in case of a local parameter.

model

A model object.

Details

The online article on managing model entities provides some further context.