View source: R/densityEnrichment.R
densityEnrichment | R Documentation |
This function allows to the user to examine the mean ranking within the groups across the gene set. The visualization uses the density function to display the relative position and distribution of rank.
densityEnrichment(
input.data,
gene.set.use = NULL,
gene.sets = NULL,
group.by = NULL,
palette = "inferno"
)
input.data |
The single-cell object to use. |
gene.set.use |
Selected individual gene set. |
gene.sets |
The gene set library to use to extract the individual gene set information from. |
group.by |
Categorical parameter to plot along the x.axis. If input is a single-cell object the default will be cluster. |
palette |
Colors to use in visualization - input any hcl.pals. |
ggplot2 object mean rank gene density across groups
GS <- list(Bcells = c("MS4A1", "CD79B", "CD79A", "IGH1", "IGH2"),
Tcells = c("CD3E", "CD3D", "CD3G", "CD7","CD8A"))
pbmc_small <- SeuratObject::pbmc_small
densityEnrichment(pbmc_small,
gene.set.use = "Tcells",
gene.sets = GS)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.