changeBounds: Change Variable Bounds in a Metabolic Network

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/changeBounds.R

Description

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

Usage

1
  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

checkReactId

Examples

1
2
3
4
5
  ## 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 documentation built on May 31, 2021, 5:08 p.m.