barplotEnrichGO_HC: A barplot that shows the result of a GO enrichment, using the...

View source: R/bioAnalysis.R

barplotEnrichGO_HCR Documentation

A barplot that shows the result of a GO enrichment, using the package highcharter

Description

A barplot of GO enrichment analysis

Usage

barplotEnrichGO_HC(ego, maxRes = 5, title = NULL)

Arguments

ego

The result of the GO enrichment, provides either by the function enrichGO in the package DAPAR or the function enrichGO of the package 'clusterProfiler'

maxRes

The maximum number of categories to display in the plot

title

The title of the plot

Value

A barplot

Author(s)

Samuel Wieczorek

Examples

data(Exp1_R25_prot, package="DAPARdata")
obj <- Exp1_R25_prot[seq_len(10)]
if (!requireNamespace("org.Sc.sgd.db", quietly = TRUE)) {
stop("Please install org.Sc.sgd.db: 
            BiocManager::install('org.Sc.sgd.db')")
}
library(org.Sc.sgd.db)
univ <- univ_AnnotDbPkg("org.Sc.sgd.db")
ego <- enrich_GO(
    data = Biobase::fData(obj)$Protein.IDs, idFrom = "UNIPROT",
    orgdb = "org.Sc.sgd.db", ont = "MF", pval = 0.05, universe = univ
)
barplotEnrichGO_HC(ego)


prostarproteomics/DAPAR documentation built on Nov. 26, 2024, 6:32 p.m.