getKEGGID-methods         package:KEGGgraph         R Documentation

_G_e_t _K_E_G_G _I_D

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

     Get KEGGID from a 'KEGGNode-class' object.

     The 'KEGGNode-class' can be either another pathway (KEGGID in the
     form like 'hsa\d*'), KEGG Gene ('hsa:\d*') or compound
     ('cpd:C\d*'). In case of the KEGG Gene ID, the organism prefix is
     removed when the value is returned.

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


     _o_b_j_e_c_t = "_K_E_G_G_N_o_d_e" An object of 'KEGGNode-class' 

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

     wntfile <- system.file("extdata/hsa04310.xml",package="KEGGgraph")
     wnt <- parseKGML(wntfile)
     nodes <- nodes(wnt)
     getKEGGID(nodes[[1]])
     getKEGGID(nodes[[26]])

