| combGOGraph {GOstats} | R Documentation |
Given two GO graphs this function combines them into a single graph and returns that.
combGOGraph(g1, g2)
g1 |
An instance of a graph. |
g2 |
An instance of a graph. |
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.
A graph containing the union of the nodes and edges in the two graphs.
R. Gentleman
g1 <- oneGOGraph("GO:0003680", GOMFPARENTS)
g2 <- oneGOGraph("GO:0003701", GOMFPARENTS)
g3 <- combGOGraph(g1, g2)