double_enrich function

draw enrichment bar plots for both up and down genes

draw enrichment bar plots for both up and down genes

draw enrichment bar plots for both up and down genes,for human only.

double_enrich(deg, n = 10, color = c("#2874C5", "#f87669"), species = "human")

Arguments

  • deg: a data.frame contains at least two columns:"ENTREZID" and "change"
  • n: how many terms will you perform for up and down genes respectively
  • color: color for bar plot
  • species: choose human or mouse, or rat, default: human

Returns

a list with kegg and go bar plot according to up and down genes enrichment result.

Examples

## Not run: if(requireNamespace("org.Hs.eg.db",quietly = TRUE)& requireNamespace("labeling",quietly = TRUE)){ double_enrich(deg) }else{ if(!requireNamespace("org.Hs.eg.db",quietly = TRUE)) { warning("Package 'org.Hs.eg.db' needed for this function to work. Please install it by BiocManager::install('org.Hs.eg.db')",call. = FALSE) } if(!requireNamespace("labeling",quietly = TRUE)) { warning("Package 'labeling' needed for this function to work. Please install it by install.packages('labeling')",call. = FALSE) } } ## End(Not run)

See Also

quick_enrich

Author(s)

Xiaojie Sun

  • Maintainer: Xiaojie Sun
  • License: MIT + file LICENSE
  • Last published: 2025-03-05