Get Edges From a ConsortiumMetabolism
Object
getEdges.Rd
Usage
getEdges(object, ...)
# S4 method for class 'ConsortiumMetabolism'
getEdges(object)
# S4 method for class 'ConsortiumMetabolismSet'
getEdges(
object,
type = c("all", "pan-cons", "niche", "core", "aux"),
quantileCutoff = 0.1
)
Arguments
- object
A
ConsortiumMetabolism
orConsortiumMetabolismSet
object- ...
Object-specific arguments. See methods for details.
- type
Character scalar giving the type of edges to output.
- quantileCutoff
Numeric scalar between 0 and 1 giving the quantile threshold to use for filtering edges. For "pan-cons" and "core" types, edges above
1 - quantileCutoff
are returned. For "niche" and "aux" types, edges belowquantileCutoff
are returned. Defaults to 0.1 (i.e., top/bottom 10\
A tibble containing edge information including:
consumed/produced metabolites
number of species involved
consumption/production sums
effective consumption/production metrics
type
can be used to return only specific types of edges
from a ConsortiumMetabolismSet
object.
For ConsortiumMetabolismSet
objects, the type
parameter
determines which edges are returned:
all
- Returns all edgespan-cons
- Returns edges present in most consortia (top1 - quantileCutoff
fraction)niche
- Returns rare edges (bottomquantileCutoff
fraction of consortia)core
- Returns edges involving many species (top1 - quantileCutoff
fraction)aux
- Returns edges involving few species (bottomquantileCutoff
fraction)
getEdges(ConsortiumMetabolism)
: Get Edges From aConsortiumMetabolism
ObjectgetEdges(ConsortiumMetabolismSet)
: Get Edges From aConsortiumMetabolismSet
Object