% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/broom-tidy.R
\name{tidy.RegionResult}
\alias{tidy.RegionResult}
\title{Tidy method for RegionResult (broom-compatible)}
\usage{
\method{tidy}{RegionResult}(x, ...)
}
\arguments{
\item{x}{A [`RegionResult-class`].}

\item{...}{Unused (broom convention).}
}
\value{
A tibble (or data.frame if `tibble` is not installed) with columns
  `set_a`, `set_b`, `intersection`, `expected`, `jaccard`, `dice`,
  `overlap_coefficient`, `fold_enrichment`, `p_value`, `p_adjusted`,
  `significant`, `highly_significant`. One row per unordered pair, so
  `n*(n-1)/2` rows for an `n`-set dataset.
}
\description{
Returns a long-form table with one row per ordered set pair, combining the
five pairwise statistical metrics (Jaccard, Dice, overlap coefficient,
fold enrichment, hypergeometric p-value + BH-FDR-adjusted q-value).
Pair ordering is `(set_a, set_b)` with `set_a` appearing earlier in
`result@dataset@set_names`.
}
\examples{
ds <- methods::new("VennDataset",
    set_names = c("A", "B"),
    items = list(A = c("x", "y"), B = c("y", "z")),
    item_order = c("x", "y", "z"),
    universe_size = 10L, source_path = NULL, format = "csv")
result <- analyze(ds)
if (requireNamespace("broom", quietly = TRUE)) broom::tidy(result)
\donttest{
result <- analyze(load_sample("dataset_real_cancer_drivers_4"))
broom::tidy(result)
}
}
