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)

