list2Matrix             package:RpsiXML             R Documentation

_C_o_n_v_e_r_t_s _l_i_s_t _i_n_t_o _m_a_t_r_i_x

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

     Converts a named list representation of a graph into matrix

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

     list2Matrix(namedList, type="interaction")

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

namedList: Named list.

    type: Character: either interaction or complex

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

     A matrix. A bait-prey matrix if type is "interaction" with baits
     indexing the columns and prey the rows or a protein complex
     incidence graph with complexes indexing the columns and proteins,
     the rows.

     If type is interaction, the names of the list are the baits and
     the entries of the list correspond the prey found by each bait.

     If type is complex, the names of the list are the names of the
     protein complex and the entries are the members of each
     corresponding complex.

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

     Tony Chiang <tchiang@ebi.ac.uk>

