# Why this matters Pairwise analyses that relate genomic similarity and spatial or host covariates can estimate who transmitted infection to whom. Those analyses require evaluating every possible pair of individuals (dyads), which grows quadratically with sample size and quickly becomes computationally infeasible for moderately large datasets. This study compares two subsampling strategies intended to keep analyses tractable while preserving valid inference.
# Data and goal
# Methods compared
- Divide-and-conquer Bayesian model fitting: partition the full dataset into subsets, fit models separately, then combine results. This aims to parallelize and reduce per-fit complexity but requires a valid strategy to aggregate estimators.
- Pairwise case-control approach: treat dyads where isolates share genomic cluster membership as cases and sample a fixed number of control dyads (non-clustered pairs) per case. The study evaluated using five controls per case as a default.
The comparison used simulation studies based on three representative tuberculosis genomic clustering scenarios to assess bias, credible interval coverage, and distribution of estimates.
# Main findings Across all simulation scenarios, the case-control subsampling approach delivered negligible bias and achieved the expected 95% credible interval coverage for estimated associations. Its performance matched or exceeded the divide-and-conquer approach on key inferential metrics.
When true effect sizes were large, the case-control approach produced a somewhat narrower distribution of bias estimates and fewer extreme outliers than divide-and-conquer. Overall, the case-control method was more stable across simulated conditions examined.
# Practical recommendation When analyzing large genomic-spatial datasets where full pairwise Bayesian modeling is not feasible, use the pairwise case-control subsampling strategy with five controls per case. This reduces computational burden while maintaining unbiased point estimates and valid credible intervals in the settings tested.
# Additional context and reproducibility
# What this does not claim
# Bottom line For pairwise association studies of transmission using large genomic and spatial datasets, a case-control subsampling approach with five controls per case provides a practical balance: it substantially reduces computational cost and preserves unbiased estimation and credible interval coverage under the evaluated scenarios.