An Allele-Centric Pan-Graph-Matrix Representation for Scalable Pangenome Analysis
Roberto Garrone
TL;DR
The paper addresses scalable pangenome analysis by introducing an allele-centric pan-graph-matrix (H1) that encodes exact haplotype membership per allele with adaptive dense or sparse encodings, allowing population structure to drive compression. It additionally presents H2, a path-centric dual representation that recovers ordered haplotype paths while remaining information-equivalent to H1, enabling analyses that depend on haplotype topology. The authors demonstrate substantial structure-aware compression, especially for structural variants, via a first-order Markov model with context-dependent Huffman coding, achieving near-entropy-optimal performance (e.g., $L_{global}-H_{global} \ll 1$) and real-world compression ratios such as $\bar{L}_{real} \approx 1.0218$ bits/symbol and $\approx 31.3\times$ on-disk savings. The framework provides a unified, scalable foundation for population-aware pangenome analysis, supporting rare-variant interpretation, cohort stratification, and privacy-friendly data sharing, with concrete visualizations and implementations that separate population incidence from haplotype ordering for flexible downstream use.
Abstract
Population-scale pangenome analysis increasingly requires representations that unify single-nucleotide and structural variation while remaining scalable across large cohorts. Existing formats are typically sequence-centric, path-centric, or sample-centric, and often obscure population structure or fail to exploit carrier sparsity. We introduce the H1 pan-graph-matrix, an allele-centric representation that encodes exact haplotype membership using adaptive per-allele compression. By treating alleles as first-class objects and selecting optimal encodings based on carrier distribution, H1 achieves near-optimal storage across both common and rare variants. We further introduce H2, a path-centric dual representation derived from the same underlying allele-haplotype incidence information that restores explicit haplotype ordering while remaining exactly equivalent in information content. Using real human genome data, we show that this representation yields substantial compression gains, particularly for structural variants, while remaining equivalent in information content to pangenome graphs. H1 provides a unified, population-aware foundation for scalable pangenome analysis and downstream applications such as rare-variant interpretation and drug discovery.
