compIndep {simulatorAPMS}R Documentation

This function determines probability distribution independence between two bi-partite graph incidence matrices.

Description

This function calculates the probability that a protein is in Cluster C-i and the probability that a protein is in cluster K-j and then the joint probability that the protein is in both C-i and K-j. The function compares the joint distributions with the marginals.

Usage

compIndep(TSNMat, erMat, intersectMat)

Arguments

TSNMat The first bi-partite graph matrix; usually a representation of the true state of nature.
erMat The second bi-partite graph mattrix; usually an estimate of the true state of nature based on some error model.
intersectMat A matrix of of integers. The (i,j)th entry is the cardinality of the intersection between the i-th complex of TSNMat and the j-th complex of erMat.

Details

Value

Matrix of real numbers:
The return value is a matrix of real numbers that account for how independent the marginals are from the joint distribution of protein membership to complexes.

Author(s)

Tony Chiang

Examples

library(simulatorAPMS)
data(simEX)
data(APComEX)
CC = runCompareComplex(simEX, APComEX)
compIndep(simEX, APComEX, CC[[1]])

[Package simulatorAPMS version 1.8.0 Index]