barplotGroupGO_HC: A barplot which shows the result of a GO classification,...

View source: R/bioAnalysis.R

barplotGroupGO_HCR Documentation

A barplot which shows the result of a GO classification, using the package highcharter

Description

A barplot which shows the result of a GO classification, using the package highcharter

Usage

barplotGroupGO_HC(ggo, maxRes = 5, title = "")

Arguments

ggo

The result of the GO classification, provides either by the function group_GO in the package DAPAR or the function groupGO in the package 'clusterProfiler'

maxRes

An integer which is the maximum number of classes 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")
ggo <- group_GO(
    data = Biobase::fData(obj)$Protein.IDs, idFrom = "UNIPROT",
    orgdb = "org.Sc.sgd.db", ont = "MF", level = 2
)
barplotGroupGO_HC(ggo)


prostarproteomics/DAPAR documentation built on Oct. 11, 2024, 12:03 p.m.