Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/importGeneSets.R
Converts a list of gene sets stored in a GeneSetCollection object and 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 | importGeneSetsFromCollection(
inSCE,
geneSetCollection,
collectionName = "GeneSetCollection",
by = "rownames"
)
|
inSCE |
Input SingleCellExperiment object. |
geneSetCollection |
A GeneSetCollection object. See GeneSetCollection for more details. |
collectionName |
Character. Name of collection to add gene sets to.
If this collection already exists in |
by |
Character, character vector, or NULL. Describes the
location within |
The gene identifiers in gene sets in the
GeneSetCollection
will be mapped to the rownames of
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 importGeneSetsFromMSigDB for importing MSigDB gene sets.
1 2 3 4 5 6 7 8 | data(scExample)
library(GSEABase)
gs1 <- GeneSet(setName = "geneset1", geneIds = rownames(sce)[1:10])
gs2 <- GeneSet(setName = "geneset2", geneIds = rownames(sce)[11:20])
gsc <- GeneSetCollection(list(gs1, gs2))
sce <- importGeneSetsFromCollection(inSCE = sce,
geneSetCollection = gsc,
by = "rownames")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.