plotGOOneGroup: Plot results from a hypergeometric enrichment test for one...

Description Usage Arguments Value

Description

Uses ggplot2 to create a horizontal bar plot of the p-values (or odds-ratios) from enrichment tests of GO terms derived from differentially correlated gene sets (or any gene sets inputted into upstream functions). Note that the first column of each data frame is removed to allow for row binding, and otherwise the column names should match.

Usage

1
2
3
plotGOOneGroup(dfList, nTerms = 5, minSize = 50, maxSize = 500,
  dataCol = "Pvalue", namesCol = "Term", labelsCol = "Ontology",
  legendTitle = "GO Type", adjustPVals = FALSE)

Arguments

dfList

A named list of data frames corresponding to different GO term enrichments.

nTerms

The number of most-enriched terms to plot from each GO term type.

minSize

The number of genes above which a gene set should be removed from analysis (e.g., because it is so small as to be overly specific and untrustworthy).

maxSize

The number of genes above which a gene set should be removed from analysis (e.g., because it is so big as to be overly generic and relatively uninteresting).

dataCol

Column of the input matrix to be plotted in the bar plot. If "Pvalue", it will be -log10 transformed prior to plotting. If not "Pvalue", the x-axis label should be changed manually following the function call.

namesCol

The column specifying the name of the GO terms to be plotted.

labelsCol

The column specifying the fill labels of the GO terms to be plotted.

legendTitle

The title for the legend in the resulting plot.

adjustPVals

Logical, indicating whether or not p-values should be adjusted by the Benjamini-Hochberg method.

Value

An ggplot2 object that can be called in order to plot it, saved, or modified.


nosarcasm/DGCA documentation built on June 13, 2019, 11:49 p.m.