compute_pairwise: Compute all 5 pairwise statistical tables

View source: R/statistics.R

compute_pairwiseR Documentation

Compute all 5 pairwise statistical tables

Description

Orchestrator that returns a ['StatisticsResult-class'] populated with Jaccard, Dice, Overlap Coefficient, Fold Enrichment (square NxN matrices) plus a long-form hypergeometric table with BH-FDR adjustment.

Usage

compute_pairwise(
  set_names,
  inclusive_sizes,
  pairwise_intersections,
  universe_size
)

Arguments

set_names

Ordered character vector of set identifiers (e.g. c("A","B","C")).

inclusive_sizes

Named integer vector of inclusive set sizes ('names(inclusive_sizes)' matches 'set_names').

pairwise_intersections

Named list of pair intersection counts. Keys are "set_a|set_b" with set_a appearing earlier in 'set_names' than set_b.

universe_size

Hypergeometric universe N (population size). Integer >= 1.

Value

A ['StatisticsResult-class'] object.

Examples

compute_pairwise(
    set_names = c("A", "B"),
    inclusive_sizes = c(A = 10L, B = 8L),
    pairwise_intersections = list("A|B" = 5L),
    universe_size = 100L
)

vennDiagramLab documentation built on May 19, 2026, 1:07 a.m.