getEntryID-methods         package:KEGGgraph         R Documentation

_G_e_t _e_n_t_r_y _I_D _f_o_r _s_i_n_g_l_e _o_r _l_i_s_t _o_f _K_E_G_G_N_o_d_e _o_r _K_E_G_G_e_d_g_e _o_b_j_e_c_t(_s)

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

     The method extracts EntryIDs from 'KEGGNode-class' or
     'KEGGEdge-class' object(s).

     In case of 'KEGGEdge-class' objects, the entryID of the nodes
     involved in the binary are returned as a vector _in the order
     specified by the direction of the relation_, that is, if the edge
     is defined as A->B, then the entryID returned from the edge equals
     to c(getEntryID(A), getEntryID(B)).

_M_e_t_h_o_d_s:


     _o_b_j = "_K_E_G_G_E_d_g_e" Object of 'KEGGEdge-class' 

     _o_b_j = "_l_i_s_t" A wrapper for list of 'KEGGNode-class' or
          'KEGGEdge-class' objects

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

     Jitao David Zhang <URL: mailto:j.zhang@dkfz.de>

_R_e_f_e_r_e_n_c_e_s:

     KGML Document Manual <URL: http://www.genome.jp/kegg/docs/xml/>

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

     sfile <- system.file("extdata/hsa04010.xml",package="KEGGgraph")
     pathway <- parseKGML(sfile)

     nodes <- nodes(pathway)
     node <- nodes[[7]]
     getEntryID(node)

     edges <- edges(pathway)
     edge <- edges[[7]]
     getEntryID(edge)

     getEntryID(nodes[1:4])
     getEntryID(edges[1:4])

