geneSets | R Documentation |
Retrieves or determines the gene sets that have been used
or would be used in a gsva()
gene set analysis. These are not necessarily
the same as the input gene sets. See Details.
## S4 method for signature 'GsvaMethodParam'
geneSets(obj)
## S4 method for signature 'SummarizedExperiment'
geneSets(obj)
## S4 method for signature 'SingleCellExperiment'
geneSets(obj)
## S4 method for signature 'SpatialExperiment'
geneSets(obj)
## S4 method for signature 'GsvaExprData'
geneSets(obj)
## S4 method for signature 'GsvaMethodParam'
geneSetSizes(obj)
## S4 method for signature 'GsvaExprData'
geneSetSizes(obj)
obj |
An object of one of the following classes:
|
The gene sets used in a gsva()
gene set analysis, or just their
sizes, may be a valuable input to subsequent analyses. However, they are not
necessarily the same as the original input gene sets, or their sizes: based
on user choices, the gene annotation used, or presence/absence of genes in
gene sets and expression data set, gsva()
may have to modify them during
the preparation of an analysis run.
In order to make use of these gene sets or their sizes, you can either
retrieve them from the object returned by gsva()
by passing this object
to geneSets()
or geneSetSizes()
, or
predict them by calling geneSets()
or geneSetSizes()
on the parameter
object that would also be passed to gsva()
. This is much slower and should
only be done if you do not intend to run an actual gene set analysis.
geneSetSizes()
is a convenience wrapper running lengths()
on the list of
gene sets returned by geneSets()
.
The geneSets()
methods return a named list of character vectors
where each character vector contains the gene IDs of a gene set.
The geneSetSizes()
methods return a named integer vector of gene set sizes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.