Learn R Programming

WGCNA (version 1.25-1)

overlapTable: Calculate overlap of modules

Description

The function calculates overlap counts and Fisher exact test p-values for the given two sets of module assignments.

Usage

overlapTable(labels1, labels2)

Arguments

labels1
a vector containing module labels.
labels2
a vector containing module labels to be compared to labels1.

Value

  • A list with the following components:
  • countTablea 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.
  • pTablea 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 for the overlap of the two respective modules.

See Also

fisher.test, matchLabels