compareComplex
function takes two bipartite graph matrix
representations and calculates three statistics between all pairs of
complexes, C-i and K-j: (1) the intersection between C-i and K-j, (2) the
proteins in C-i and not in K-j, (3) the proteins in K-j and not in
C-i. These stats are later used to calculate Jaccard and Dice-Sorenson
Coefficients as well as probability distributions of a protein p in a
complex C.
compareComplex(BGMat1, BGMat2)
runCompareComplex
function must be
called first since all the labelled vertices present in BGMat1
must be present in the BGMat2 and vice versa so a true comparison can
be made.