annotateClusters: Annotate Clusters

Description Usage Arguments Details Value Author(s) References Examples

View source: R/annotateClusters.R

Description

Annotates each cluster of GO terms with the term containing the most paths to the root.

Usage

1
annotateClusters(clusters)

Arguments

clusters

A list of vectors. Each element of the list corresponds to a cluster, and each vector contains the GO terms in the cluster.

Details

All of the GO terms within all of the clusters must belong to the same GO domain (either BP, CC, or MF).

Value

A vector of cluster labels.

Author(s)

Brian D. Bennett
Pierre R. Bushel

References

Bennett BD and Bushel PR. goSTAG: Gene Ontology Subtrees to Tag and Annotate Genes within a set. Source Code Biol Med. 2017 Apr 13.

Examples

1
2
3
4
5
6
7
8
data( goSTAG_example_gene_lists )
go_terms <- loadGOTerms()
enrichment_matrix <- performGOEnrichment( goSTAG_example_gene_lists, go_terms )
hclust_results <- performHierarchicalClustering( enrichment_matrix )
clusters <- groupClusters( hclust_results )

cluster_labels <- annotateClusters( clusters )
head( cluster_labels )

goSTAG documentation built on Nov. 8, 2020, 7:45 p.m.