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>

