GOLeaves               package:GOstats               R Documentation

_D_E_P_R_E_C_A_T_E_D _I_d_e_n_t_i_f_y _t_h_e _l_e_a_v_e_s _i_n _a _G_O _G_r_a_p_h

_D_e_s_c_r_i_p_t_i_o_n:

     This function is DEPRECATED.  Use the 'leaves' function in the
     graph package instead.  See the example below.

     Given a GO graph this function returns the node labels for all
     leaves in the graph. A leaf is defined to be a node with only
     out-edges and no in-edges.

_U_s_a_g_e:

     GOLeaves(inG)

_A_r_g_u_m_e_n_t_s:

     inG: An instance of a GO graph. 

_D_e_t_a_i_l_s:

     All nodes in 'inG' are inspected for in-edges and those with none
     are returned.

     This should probably be replaced by a function in the graph
     package that identifies leaves, there is nothing special about GO
     here.

_V_a_l_u_e:

     A vector of the node labels for those nodes with no in-edges.

_A_u_t_h_o_r(_s):

     R. Gentleman

_S_e_e _A_l_s_o:

     'makeGOGraph'

_E_x_a_m_p_l_e_s:

      library("GO.db")
      g1 <- oneGOGraph("GO:0003680", GOMFPARENTS)
      g2 <- oneGOGraph("GO:0003701", GOMFPARENTS)
      g3 <- join(g1, g2)
      leaves(g3, "in")

