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

mergeReact2Modelorg

Functions to subset and merge modelorg objects.


Description

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.

Usage

mergeReact2Modelorg(reactList = NULL, id = "newModel", name = "")
## S4 method for signature 'modelorg,ANY'
getReaction(X, j = NULL, drop = T, tol = SYBIL_SETTINGS("TOLERANCE"))

Arguments

reactList

list of react objects

id

id for the new modelorg

name

name for the new modelorg

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

modelorg object to extract reactions from.

Value

mergeReact2Modelorg returns a modelorg object.

getReaction returns a react object if length(j) = 1 and drop = TRUE. Otherwise a list of react objects.

Author(s)

Claus Jonathan Fritzemeier <clausjonathan.fritzemeier@uni-duesseldorf.de>

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

See Also

Examples

data(Ec_core)
	l <- getReaction(Ec_core, j=1:3)
	print(l)
	m <- mergeReact2Modelorg(l)
	print(m)

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.