The function calculates overlap counts and Fisher exact test p-values for the given two sets of module assignments.
overlapTable(
labels1, labels2,
na.rm = TRUE, ignore = NULL,
levels1 = NULL, levels2 = NULL,
log.p = FALSE)A list with the following components:
a matrix whose rows correspond to modules (unique labels) in labels1 and whose
columns correspond to modules (unique labels) in labels2, giving the number of objects in the
intersection of the two respective modules.
a matrix whose rows correspond to modules (unique labels) in labels1 and whose
columns correspond to modules (unique labels) in labels2, giving Fisher's exact test
significance p-values (or their logarithms) for the overlap of the two respective modules.
a vector containing module labels.
a vector containing module labels to be compared to labels1.
logical: should entries missing in either labels1 or labels2 be removed?
an optional vector giving label levels that are to be ignored.
optional vector giving levels for labels1. Defaults to sorted unique non-missing
values in labels1 that are not present in ignore.
optional vector giving levels for labels2. Defaults to sorted unique non-missing
values in labels2 that are not present in ignore.
logical: should (natural) logarithms of the p-values be returned instead of the p-values?
Peter Langfelder
fisher.test, matchLabels