View source: R/Visualizations_Seurat_based.R
analyzeEnrichment | R Documentation |
This function performs enrichment analysis for the genes associated with positive and negative loadings of a given principal component (PC) in a Seurat object.
analyzeEnrichment(
SerObj,
CompN = 1,
topN = 20,
qrhub = "org.Hs.eg.db",
invertWeights = F,
labsize = 3.5,
fontsize = 0.25,
base_size = 20,
max.overlaps = 20,
MaxNsig = 30,
reduction = "pca",
redLab = "PC",
topNGenes = 100,
bottomNGenes = 100
)
SerObj |
A Seurat object containing the data. |
CompN |
The principal component number. |
topN |
The number of top genes to consider for enrichment analysis. |
qrhub |
The gene database used for enrichment analysis. |
A list containing two ggplot objects for positive and negative loadings.
## Not run:
result <- analyzeEnrichment(SerObj, CompN = 1, topN = 20, qrhub = "org.Hs.eg.db")
result$ggGO_pos | result$ggGO_neg
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.