addReact
adds one reaction to a metabolic model, or
changes one reaction in a metabolic model.addReact(model,
id,
met,
Scoef,
reversible = FALSE,
lb = 0,
ub = SYBIL_SETTINGS("MAXIMUM"),
obj = 0,
subSystem = NA,
gprAssoc = NA,
reactName = NA,
metName = NA,
metComp = NA)
modelorg
.react
.met
of stoichiometric
coefficients for the metabolites in met
. The value in Scoef[i]
is the stoichiometric coefficient of the metabolite in met[i]
.FALSE
.0
.SYBIL_SETTINGS("MAXIMUM")
.0
.subSys(model)
. If NA
, the reaction will not be
associated to aNA
, no gpr association is created.p
Default: NA
.NA
,
the value of argument id
is used.
Default: NA
.met
containing
the the metabolites names for the metabolites given in argument met
.
If set to NA
, the metabolite id's are used.
Default: NA
met
containing a compartment name (as in mod_compart(model)
) or an
index pointing to a value in
modelorg
, or
modelorg_irrev
, if model
is of class
modelorg_irrev
.addReact
can be used to add reactions and/or metabolites
to a given metabolic model, or to change parameters of a reaction already
present in a given metabolic model.
If the reaction id in argument id
, this reaction will be changed, no
new column will be added to the stoichiometric matrix. If any of the
metabolite id's of argument met
are not present in the model, they
will be added (new rows in the stoichiometric matrix will be added). Arguments subSystem
, gprAssoc
and reactName
are only
used, if a new reaction is added to the model (if id
is not in
react_id(model)
, exact matching is used).
Schellenberger, J., Que, R., Fleming, R. M. T., Thiele, I., Orth, J. D., Feist, A. M., Zielinski, D. C., Bordbar, A., Lewis, N. E., Rahmanian, S., Kang, J., Hyduke, D. R. and Palsson, B. Ø. (2011) Quantitative prediction of cellular metabolism with constraint-based models: the COBRA Toolbox v2.0. Nat Protoc 6, 1290--1307.
modelorg
and rmReact