combGOGraph {GOstats}R Documentation

Combine GO Graphs

Description

Given two GO graphs this function combines them into a single graph and returns that.

Usage

combGOGraph(g1, g2)

Arguments

g1 An instance of a graph.
g2 An instance of a graph.

Details

A new graph object is created by linking the two supplied graphs together. Since they are both GO graphs they will share, at least, the GO root node.

This could probably be replaced by the union function in the graph package.

Value

A graph containing the union of the nodes and edges in the two graphs.

Author(s)

R. Gentleman

See Also

union

Examples

 g1 <- oneGOGraph("GO:0003680", GOMFPARENTS)
 g2 <- oneGOGraph("GO:0003701", GOMFPARENTS)
 g3 <- combGOGraph(g1, g2)

[Package Contents]