pwAdjMatrices            package:PathWave            R Documentation

_P_a_t_h_W_a_v_e _a_d_j_a_c_e_n_c_y _m_a_t_r_i_c_e_s _b_u_i_l_d_e_r

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

     Builds a list of and -if wanted prints- adjacency matrices for a
     list of bipartite graphs.

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

     pwAdjMatrices(reactionList, compoundList, printMatrices = FALSE, matrixType = "adjacency")

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

reactionList: List of reactions. See details.

compoundList: List of compounds. See details.

printMatrices: Built matrices are printed in the working directory
          (default FALSE). See details.

matrixType: Printed matrices could be of type "adjacency" or "distance"
          (default "adjacency").

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

_r_e_a_c_t_i_o_n_L_i_s_t List of reactions as returned by pwKEGGxml() -> reactions.
     List of graph IDs. For every graph ID a vector of the reaction IDs
     is stored.

_c_o_m_p_o_u_n_d_L_i_s_t List of compoundss as returned by pwKEGGxml() ->
     compounds. List of graph IDs. For every graph ID various list of
     reaction IDs are stored. Every reaction ID list has a vector of
     compounds connected to the specific reaction.

_p_r_i_n_t_M_a_t_r_i_c_e_s File names for printed matrices are built by
     concatenating pathway ID with ending ".matrix". First two numbers
     in file are number of nodes and length of shortest path.

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

     A list is returned: 

pathway ID: List of different pathways.

  nNodes: Integer, number of nodes (reactions) in graph.

    iMax: Integer, length of longest shortest path between all pairs of
          reactions in graph.

       M: Adjacency matrix for the pathway ID.

    dist: Distance matrix for the pathway ID.

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

     Gunnar Schramm

_S_e_e _A_l_s_o:

     See Also as 'pwKEGGxml','pwLPFiles'

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

     #read in actual KEGG xml files
     kegg.ftp="ftp://ftp.genome.jp/pub/kegg/xml/organisms/hsa/"
     keggXml=pwKEGGxml(kegg.ftp)

     #build adjacency matrices
     adjacencyMatrices=pwAdjMatrices(reactionList=keggXml$reactions,compoundList=keggXml$compounds,printMatrices=FALSE)

