plot_enrichment | R Documentation |
Plots the results from the data frame generated via apl_topGO.
plot_enrichment(genenr, ntop = 10)
genenr |
data.frame. gene enrichment results table. |
ntop |
numeric. Number of elements to plot. |
Returns a ggplot plot.
library(Seurat)
set.seed(1234)
cnts <- GetAssayData(pbmc_small, assay = "RNA", slot = "counts")
cnts <- as.matrix(cnts)
# Run CA on example from Seurat
ca <- cacomp(pbmc_small,
princ_coords = 3,
return_input = FALSE,
assay = "RNA",
slot = "counts")
grp <- which(Idents(pbmc_small) == 2)
ca <- apl_coords(ca, group = grp)
ca <- apl_score(ca,
mat = cnts)
enr <- apl_topGO(ca,
ontology = "BP",
organism = "hs")
plot_enrichment(enr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.