GOenrichments is a package that facilitates GO set enrichment analysis and subsequent network visualization. The significance of the GO enrichments are estimated using the hypergeometric test based on the query set of genes passing the user-defined fitness score threshold compared to the genes in the background set (the gene universe). Because of the high degree of redundancy between GO terms, an advantageous of the GOenrichment package is to simplify the output of a GO enrichment analysis. Specifically, clusters in the enrichment network are defned by GO terms that overlap by >= 50%. Node size is proportional to the significane of the GO enrichment (FDR score) and edge weight are proportional to the degree of overlap between the GO terms. In each cluster we highlight the most significantly enriched GO term by increasing the fontsize and setting the fontface to bold. In this manner, cellular and functional modules emerge in the network, defined by tightly connected color coordinated clusters connected by multiple edges and a holistic view of the cellular response to the perturbation ofo interest is possible.
You can install the development version of GOenrichment like so:
devtools::install_github("gurinina/GOenrichment")
This is a basic example which shows you how to solve a common problem:
library(GOenrichment)
goresp = runGORESP(mat=sampleFitdata,coln=1,curr_exp = colnames(sampleFitdata)[1],sig = 1,fdrThresh = 0.2,bp_path = NULL,bp_input = yGOBP.gmt,go_path = NULL,go_input = dfGOBP)
vis = visSetup(goresp$enrichInfo,goresp$edgeMat```
runNetwork(vis$nodes,vis$edges)