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
.