getKEGGnodeData          package:KEGGgraph          R Documentation

_G_e_t _o_r _s_e_t _l_i_s_t _o_f _K_E_G_G _n_o_d_e _o_r _e_d_g_e _d_a_t_a

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

     The 'get' methods extracts KEGG node (edge) attributes from a
     graph produced by calling 'parseKGML2Graph' or
     'KEGGpathway2Graph'. The 'set' methods writes a list into the edge
     or node data.

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

     getKEGGnodeData(graph, n)
     getKEGGedgeData(graph, n)

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

   graph: a graph object by parsing KGML file, where KEGG node and edge
          attributes are maintained

       n: optional character string, name of the desired node or edge.
          If is missing all node Data is returned

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

     Node and edge data is stored as list within environments in graphs
     to save memory and speed up graph manipulations. When using
     'getKEGGnodeData' or 'getKEGGedgeData' is called, the list is
     extracted out of the environment and returned.

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

     Either a list or single item of 'KEGGNode-class' or
     'KEGGEdge-class' object(s).

_N_o_t_e:

     These functions will be unified into 'KEGGnodeData' and
     'KEGGnodeData<-' forms.

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

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

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

     sfile <- system.file("extdata/hsa04010.xml",package="KEGGgraph")
     gR <- parseKGML2Graph(sfile,expandGenes=TRUE)
     getKEGGnodeData(gR,"hsa:4214")
     getKEGGedgeData(gR,"hsa:4214~hsa:5605")

