mergeBGMat               package:ScISI               R Documentation

_A _f_u_n_c_t_i_o_n _t_h_a_t _m_e_r_g_e_s _t_w_o _b_i_p_a_r_t_i_t_e _g_r_a_p_h (_B_G) _i_n_c_i_d_e_n_c_e
_m_a_t_r_i_c_e_s _i_n_t_o _o_n_e.

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

     This function takes the union of the row names of mat1 and mat2
     for the row names of the aggregate matrix, and takes the union of
     the complexes of mat1 and mat2. The resulting matrix is also an
     incidence matrix so an entry of unity impiles protein p is a
     member of complex C.

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

     mergeBGMat(mat1, mat2, toBeRm)

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

    mat1: The first bipartite graph incidence matrix

    mat2: The second bipartite graph incidence matrix

  toBeRm: A character vector of complexes to be removed

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

     This function takes two bipartite graph matrices and merges them
     into one aggregate incidence matrix where informational redundancy
     is removed.

     The rows of the aggregate matrix is indexed by the union of the
     rownames of mat1 and mat2. It is important that the rownames of
     mat1 and the rownames of mat2 are from the same name set (e.g. for
     yeast, only the standard gene names should be used).

     The columns will be indexed by different protein complexes. If two
     protein complexes are identical, say C-i = K-j, then either C-i or
     K-j should be listed in toBeRm argument (given as an argument).
     When the matrices are merged, only one of the two will be kept.
     The vector toBeRm is generated by calling either
     'runCompareComplex' or 'findSubComp'.

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

     An aggregate bipartite graph incidence matrix.

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

     Tony Chiang

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

     #go = getGOInfo()
     #mips = getMipsInfo()
     #goM = createGOMatrix(go)
     #mipsM = createMipsMatrix(mips)
     #cc = runCompareComplex(mipsM, goM, byWhich = "ROW")
     #merged = mergeBGMat(mipsM, goM, cc$toBeRm)

