
Last chance! 50% off unlimited learning
Sale ends in
The function changes the upper and/or lower bounds of a given metabolic network model to new values.
changeBounds(model, react, lb = NULL, ub = NULL)
Numeric vector giving the lower bounds for the fluxes mentioned in
react
. If missing, lower bounds are set to zero. If lb
has
a length of 1, the value of lb
will be used for all reactions in
react
.
Numeric vector giving the upper bounds for the fluxes mentioned in
react
. If missing, upper bounds are set to zero. If ub
has
a length of 1, the value of ub
will be used for all reactions in
react
.
Returns the given model (an object of the same class as the argument
lpmodel
) containing the new objective function.
The argument react
will be evaluated by the function
checkReactId
.
# NOT RUN {
## change the E.coli core model to lactate input:
data(Ec_core)
Ec_new <- changeBounds(Ec_core,
c("EX_glc", "EX_lac"),
lb = c(0, -20), ub = 1000)
# }
Run the code above in your browser using DataLab