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

shrinkMatrix-methods

Get a Subset of Matrix Like Objects


Description

Generate subsets of matrix-like objects.

Usage

## S4 method for signature 'modelorg'
shrinkMatrix(X, i = NULL, j = NULL,
                                  tol = SYBIL_SETTINGS("TOLERANCE"))

Arguments

X

An object treated to be matrix-like.

i

A numeric or character vector containing row indices of the matrix given in argument X. For the modelorg method, this can be an object of class reactId_Exch.
Default: NULL.

j

A numeric or character vector containing column indices of the matrix given in argument X. For the modelorg method, this can be an object of class reactId.
Default: NULL.

tol

A tolerance value. An element X[i, j] of the matrix given in argument X is considered to be zero, if abs([X[i, j]]) > tol is true.
Default: SYBIL_SETTINGS("TOLERANCE").

Value

The modelorg method will return an object of class Matrix, with columns named by their reaction id's and rows named by their metabolite id's.

Methods

signature(X = "modelorg")

method to use with objects of class modelorg for subsets of the stoichiometric matrix. Either argument i or argument j can be used, not both at the same time. If they are of type character, they must contain metabolite or reaction id's existing in the modelorg object. Use i to get the reactions in which the metabolites given in i participate (the metabolites given in i will be located in the first rows of the result). Use j to get all reactions given in j. The method will remove all non-zero rows and columns from the result.

Author(s)

Gabriel Gelius-Dietrich <geliudie@uni-duesseldorf.de>

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

See Also

Class modelorg.

Examples

# get the part of the stoichiometric containing
  # the exchange reactions
  data(Ec_core)
  ex <- findExchReact(Ec_core)
  shrinkMatrix(Ec_core, j = ex)

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.