R/AllGenerics.R, R/GeneSetDb-methods.R, R/SparrowResult-methods.R
geneSets.RdFetch the active (or all) gene sets from a GeneSetDb or SparrowResult
geneSets(x, ...)
# S4 method for class 'GeneSetDb'
length(x)
# S4 method for class 'GeneSetDb'
geneSets(x, active.only = is.conformed(x), ..., as.dt = FALSE)
# S4 method for class 'GeneSetDb'
nrow(x)
# S4 method for class 'SparrowResult'
geneSets(x, ..., as.dt = FALSE)Object to retrieve the gene set from, either a GeneSetDb or a
SparrowResult.
pass through arguments
only look for gene sets that are "active"? Defaults to
TRUE if x is conformed to a target expression object, else FALSE.
conform() for further details.
If FALSE (default), the data.frame like thing that
this funciton returns will be set to a data.frame. Set this to TRUE
to keep this object as a data.table
a data.table with geneset information.
length(GeneSetDb): Returns the number of genesets in a GeneSetDb
geneSets(GeneSetDb): return all genesets from a GeneSetDb
nrow(GeneSetDb): return number of genesets in GeneSetDb
geneSets(SparrowResult): return the active genesets from a SparrowResult
gdb <- exampleGeneSetDb()
gs <- geneSets(gdb)