Skip to contents

This function removes specified reactions from a model.

Usage

rmReact(model, react, rm_met = TRUE)

Arguments

model

Model of class ModelOrg

react

A character vector stating the reaction IDs in a model or a numeric vector providing the reaction indices.

rm_met

Logical. Should metabolites, which are singletons after the reaction removal, be deleted as well?

Value

An updated model of class ModelOrg

Note

If the reaction participates in a user constraint, this constraint is removed from the model.