Learn R Programming

sybil (version 2.2.0)

rmReact: Remove Reactions From a Model

Description

The function rmReact removes reactions from a model.

Usage

rmReact(model, react, rm_met = TRUE)

Arguments

model

An object of class '>modelorg

react

An object of class '>reactId, a numeric vector, or a character vector containing reaction id's.

rm_met

Logical: also remove unused metabolites (default: TRUE).

Value

An object of class '>modelorg.

Details

The argument react is evaluated by the function checkReactId.

References

Becker, S. A., Feist, A. M., Mo, M. L., Hannum, G., Palsson, B. <U+00D8>. and Herrgard, M. J. (2007) Quantitative prediction of cellular metabolism with constraint-based models: the COBRA Toolbox. Nat Protoc 2, 727--738.

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. <U+00D8>. (2011) Quantitative prediction of cellular metabolism with constraint-based models: the COBRA Toolbox v2.0. Nat Protoc 6, 1290--1307.

See Also

'>modelorg, '>reactId and checkReactId

Examples

Run this code
# NOT RUN {
  data(Ec_core)
  Ec_r <- rmReact(Ec_core, c("ATPM", "Biomass"))
# }

Run the code above in your browser using DataLab