Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

changeBounds

Change Variable Bounds in a Metabolic Network


Description

The function changes the upper and/or lower bounds of a given metabolic network model to new values.

Usage

changeBounds(model, react, lb = NULL, ub = NULL)

Arguments

model

An object of class modelorg.

react

An object of class reactId, character or integer. Specifies the fluxes (variables) for which to change the upper and/or lower bounds.

lb

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.

ub

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.

Details

The argument react will be evaluated by the function checkReactId.

Value

Returns the given model (an object of the same class as the argument lpmodel) containing the new objective function.

Author(s)

Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>

Maintainer: Mayo Roettger <mayo.roettger@hhu.de>

See Also

Examples

## 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)

sybil

Efficient Constrained Based Modelling

v2.1.5
GPL-3 | file LICENSE
Authors
Mayo Roettger [cre], Gabriel Gelius-Dietrich [aut], C. Jonathan Fritzemeier [ctb], Rajen Piernikarczyk [ctb], Marc Andre Daxer [ctb], Benjamin Braasch [ctb], Abdelmoneim Desouki [ctb], Martin J. Lercher [ctb]
Initial release
2019-03-07

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.