View source: R/importGeneSets.R
importGeneSetsFromMSigDB | R Documentation |
Gets a list of MSigDB gene sets stores it in the metadata of the SingleCellExperiment object. These gene sets can be used in downstream quality control and analysis functions in singleCellTK.
importGeneSetsFromMSigDB(
inSCE,
categoryIDs = "H",
species = "Homo sapiens",
mapping = c("gene_symbol", "human_gene_symbol", "entrez_gene"),
by = "rownames",
verbose = TRUE,
noMatchError = TRUE
)
inSCE |
Input SingleCellExperiment object. |
categoryIDs |
Character vector containing the MSigDB gene set ids.
The column |
species |
Character. Species available can be found using the function
|
mapping |
Character. One of "gene_symbol", "human_gene_symbol", or
"entrez_gene". Gene identifiers to be used for MSigDB gene sets. IDs
denoted by the |
by |
Character. Describes the
location within |
verbose |
Boolean. Whether to display progress. Default |
noMatchError |
Boolean. Show an error if a collection does not have
any matching features. Default |
The gene identifiers in gene sets from MSigDB will be retrieved
using the msigdbr
package. They will be mapped to the IDs in
inSCE
using the by
parameter and
stored in a GeneSetCollection object from package
GSEABase. This object is stored in
metadata(inSCE)$sctk$genesets
, which can be accessed in downstream
analysis functions such as runCellQC.
A SingleCellExperiment object
with gene set from collectionName
output stored to the
metadata slot.
Joshua D. Campbell
importGeneSetsFromList for importing from lists, importGeneSetsFromGMT for importing from GMT files, and GeneSetCollection objects.
data(scExample)
sce <- importGeneSetsFromMSigDB(inSCE = sce,
categoryIDs = "H",
species = "Homo sapiens",
mapping = "gene_symbol",
by = "feature_name")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.