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:

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

