Learn R Programming

GOsummaries

An R package that visualizes the GO enrichment results as word clouds and arranges them together with figures of experimental data. This allows us to draw informative summary plots for analyses such as differential expression or clustering, where for each gene list we display its behaviour in the experiment alongside with its GO annotations. The approach is especially interesting for Principal Component Analysis (PCA), where we can annotate the principal axes functionally based on the weights of the genes.

Installation

The package is available ar CRAN, so the installation can be done as usual.

install.packages("GOsummaries")`

More comprehensive user guide can be found in the vignette.

Examples

PCA

# Perform PCA on samples
pcr = prcomp(t(tissue_example$exp))

# Create gosummaries object
gs_pca = gosummaries(pcr, annotation = tissue_example$annot)

# Plot
plot(gs_pca, classes = "Tissue")

K-means clustering

library(GOsummaries)

data(tissue_example)

# Filter genes and perform k-means
sd = apply(tissue_example$exp, 1, sd)
exp2 = tissue_example$exp[sd > 0.75,]
exp2 = exp2 - apply(exp2, 1, mean)
kmr = kmeans(exp2, centers = 6, iter.max = 100)

# Create gosummaries object
gs_kmeans = gosummaries(kmr, exp = exp2, annotation = tissue_example$annot)
plot(gs_kmeans, components = 1:2)

Copy Link

Version

Monthly Downloads

10

Version

2.6.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Raivo Kolde

Last Published

February 15th, 2017

Functions in GOsummaries (2.6.0)

GOsummaries-package

Word cloud summaries of GO enrichment analysis
gosummaries.prcomp

Prepare gosummaries object based on PCA results
metabolomic_example

Example metabolomic dataset
customize

Customization function for panel
tissue_example

Example gene expression dataset
gosummaries.matrix

Prepare gosummaries object based on Multi Dimensional Scaling (MDS) results
is.gosummaries

Functions for working with gosummaries object
gosummaries.MArrayLM

Prepare gosummaries object based on limma results
plot.gosummaries

Plot the GOsummaries figure
gosummaries.kmeans

Prepare gosummaries object based on k-means results
plotWordcloud

Plot a wordcloud given words and frequencies
panel_boxplot

Panel drawing functions
add_expression.gosummaries

Add expression data to gosummaries object
gosummaries

Constructor for gosummaries object
metagenomic_example

Example metagenomic dataset