getName-methods          package:KEGGgraph          R Documentation

_G_e_t '_n_a_m_e' _a_t_t_r_i_b_u_t_e

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

     Get 'name' attribute for given object, this method can be used for
     almost all objects implemented in KEGGgraph package to extract
     their name slot. See manual pages of individual objects for
     examples.

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


     _o_b_j_e_c_t = "_K_E_G_G_E_d_g_e_S_u_b_T_y_p_e" An object of 'KEGGEdgeSubType-class' 

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

     _o_b_j_e_c_t = "_K_E_G_G_P_a_t_h_w_a_y" An object of 'KEGGPathway-class' 

     _o_b_j_e_c_t = "_K_E_G_G_P_a_t_h_w_a_y_I_n_f_o" An object of 'KEGGPathwayInfo-class' 

     _o_b_j_e_c_t = "_K_E_G_G_R_e_a_c_t_i_o_n" An object of 'KEGGReaction-class' 


_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)

     ## get pathway name
     getName(pathway)

     ## get node name
     nodes <- nodes(pathway)
     getName(nodes[[2]])

     ## get edge name: it is not informative since the nodes are identified
     ## with file-dependent indices
     edges <- edges(pathway)
     getName(edges[[7]])

     ## get subtype name
     subtype <- getSubtype(edges[[2]])[[1]]
     getName(subtype)

