Functions to subset and merge modelorg objects.
The function getReaction
can extract single react
objects from
a modelorg object. If those react
objects are saved in a list, they
can be passed to the function mergeReact2Modelorg
to combine them to
one new model.
mergeReact2Modelorg(reactList = NULL, id = "newModel", name = "") ## S4 method for signature 'modelorg,ANY' getReaction(X, j = NULL, drop = T, tol = SYBIL_SETTINGS("TOLERANCE"))
reactList |
list of |
id |
id for the new |
name |
name for the new |
j |
defines the reaction numbers or IDs to extract from the model. |
drop |
If FALSE, a list of length 1 is returned. |
tol |
Threshold for coefficients to be unequal zero. |
X |
|
mergeReact2Modelorg returns a modelorg
object.
getReaction returns a react
object if length(j) = 1
and drop = TRUE
. Otherwise
a list of react
objects.
Claus Jonathan Fritzemeier <clausjonathan.fritzemeier@uni-duesseldorf.de>
Maintainer: Mayo Roettger <mayo.roettger@hhu.de>
data(Ec_core) l <- getReaction(Ec_core, j=1:3) print(l) m <- mergeReact2Modelorg(l) print(m)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.