subGraphByNodeType         package:KEGGgraph         R Documentation

_S_u_b_s_e_t _K_E_G_G _g_r_a_p_h _b_y _n_o_d_e _t_y_p_e_s

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

     The function subsets KEGG graph by node types, mostly used in
     extracting gene networks.

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

     subGraphByNodeType(graph, type = "gene", kegg=TRUE)

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

   graph: A KEGG graph object produced by calling 'parseKGML2Graph' 

    type: node type, see 'KEGGNodeType' for details 

    kegg: logical, should the KEGG Node and Edge attributes be
          maintained during the subsetting? By default set to 'TRUE'

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

     A subgraph of the original graph

_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")
     sGraph <- parseKGML2Graph(sfile,expandGenes=TRUE, genesOnly=FALSE)
     sGraphGene <- subGraphByNodeType(sGraph, type="gene")

