mergeReact2Modelorg: Functions to subset and merge modelorg objects.

View source: R/mergeReact2Modelorg.R

mergeReact2ModelorgR Documentation

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

modelorg, react

Examples

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


SysBioChalmers/sybil documentation built on Aug. 24, 2023, 1:08 p.m.