Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/importGeneSets.R
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.
1 2 3 4 5 6 7 8 | importGeneSetsFromMSigDB(
inSCE,
categoryIDs,
species = "Homo sapiens",
mapping = c("gene_symbol", "human_gene_symbol", "entrez_gene"),
by = "rownames",
verbose = 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 |
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.
1 2 3 4 5 6 | 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.