Description Usage Arguments Value Examples
Plots the results form the data frame generated via apl_topGO.
1 | plot_enrichment(genenr, ntop = 10)
|
genenr |
data.frame. gene enrichment results table. |
ntop |
numeric. Number of elements to plot. |
Returns a ggplot plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | library(Seurat)
set.seed(1234)
cnts <- GetAssayData(pbmc_small, 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.