View source: R/Seurat.Utils.Visualization.R
scGOEnrichment | R Documentation |
This function performs Gene Ontology (GO) enrichment analysis using the
clusterProfiler::enrichGO
function. It takes the gene list, universe, organism database,
gene identifier type, and ontology type as inputs and returns the enrichment results.
scGOEnrichment(
genes,
universe = NULL,
org_db = "org.Hs.eg.db",
key_type = "SYMBOL",
ont = "BP",
pAdjustMethod = "BH",
pvalueCutoff = 0.05,
qvalueCutoff = 0.2,
save = TRUE,
suffix = NULL,
check.gene.symbols = TRUE,
...
)
genes |
Character vector. List of genes for enrichment analysis. Default: NULL. |
universe |
Character vector. Background gene list (universe). Default: NULL. |
org_db |
Character. Organism-specific database to use (e.g., 'org.Hs.eg.db'). Default: 'org.Hs.eg.db'. |
key_type |
Character. Gene identifier type (e.g., 'SYMBOL', 'ENTREZID'). Default: 'SYMBOL'. |
ont |
Character. Ontology type to use (e.g., 'BP', 'MF', 'CC'). Default: 'BP'. |
pAdjustMethod |
Character. Method for p-value adjustment. Default: 'BH' for Benjamini-Hochberg. |
pvalueCutoff |
Numeric. P-value cutoff for significance. Default: 0.05. |
qvalueCutoff |
Numeric. Q-value cutoff for significance. Default: 0.2. |
save |
Logical. Save the results as a data frame. Default: |
suffix |
Character. Suffix to append to the output file name. Default: 'GO.Enrichments'. |
check.gene.symbols |
Logical. Check gene symbols for validity. Default: |
... |
Additional arguments to pass to |
A data frame with GO enrichment results.
## Not run:
gene_list <- rownames(df.m.DL.up.in.TSC)
background_genes <- names(all.genes)
go_results <- performGOEnrichment(gene_list, background_genes, "org.Hs.eg.db", "SYMBOL", "BP")
print(go_results)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.