combGOGraph             package:GOstats             R Documentation

_C_o_m_b_i_n_e _G_O _G_r_a_p_h_s

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

     combGOGraph(g1, g2)

_A_r_g_u_m_e_n_t_s:

      g1: An instance of a 'graph'.

      g2: An instance of a 'graph'. 

_D_e_t_a_i_l_s:

     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.

_V_a_l_u_e:

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

_A_u_t_h_o_r(_s):

     R. Gentleman

_S_e_e _A_l_s_o:

     'union'

_E_x_a_m_p_l_e_s:

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

