General, orders-of-magnitude faster whole-genome analysis with genotype representation graphs
Abstract
Whole-genome sequencing (WGS) of biobank-scale cohorts have generated datasets that traditional tabular genotype formats cannot efficiently store or analyze. Genotype Representation Graphs (GRGs) offer a compelling alternative: a biologically-motivated, hierarchical, graph-based representation that compactly and losslessly encodes the genotypes, and that supports computation directly on the graph rather than on a materialized genotype matrix. Here we introduce two advances that together make GRG a practical foundation for biobank-scale population and statistical genetics. First, we present GRG v2, a substantially improved format and construction algorithm that reduces construction time by 10-20x, halves the disk and RAM footprint of the resulting files, and improves load time by more than 20x. Applied to the recently phased UK Biobank WGS dataset (490,541 individuals, 706,556,181 variants), GRG v2 produces files 25 times smaller than .vcf.gz and more than 8 times smaller than PLINK2s PGEN format, while costing less than 90 GBP to construct. Second, we introduce grapp, a Python library and command-line tool that exploits the computational advantages of GRG for both routine analyses and new method development. grapp provides standard pipelines for variant and sample filtering, genome-wide association studies (GWAS) with covariates, principal component analysis (PCA), and data export, all implemented as graph-based operations. Moreover, it provides linear operators that integrate with the numpy and scipy sparse linear algebra ecosystem, enabling implicit matrix multiplication against the standardized genotype matrix, the linkage disequilibrium matrix, and the genetic relatedness matrix all via an underlying GRG. Using these operators, scipy-based PCA can be implemented in four lines of Python and runs 51-492x faster than existing methods while using less RAM. PCA on 89,988,512 variants in the UK Biobank runs in two to four hours. This scalability allows us to introduce a leave-one-chromosome-out (LOCO) approach to GWAS covariate construction that avoids LD artifacts without requiring LD pruning. Together, GRG v2 and grapp enable a level of scalability and methodological flexibility that is not achievable with traditional genotype formats.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 0
- Organism
- Assay
- Research Focus
- Approach
Reproducibility ledger
Nobody has reported trying to reproduce this paper yet. Did you replicate an experiment or run the code? Your report saves the next lab a week.
Sign in to file a reproducibility report.
Related papers
- Genotype Representation Graphs: Enabling Efficient Analysis of Biobank-Scale Data
Drew DeHaas, Ziqing Pan, Xinzhu Wei·Nature Computational SciencePeer-reviewed·Dec 5, 2024
- Sparse Linear Algebra Accelerates Genotype Representation Graph Computation at Biobank Scale
Yifan Li, Qingyao Sun, … Giulia Guidi·bioRxiv·Sep 21, 2026
- Fast Phenotype Simulation for Genotype Representation Graphs
Aditya Syam, Chris Adonizio, Xinzhu Wei·Bioinformatics AdvancesPeer-reviewed·Jan 1, 2026
- Streamlining Large-Scale Genomic Data Management: Insights from the UK Biobank Whole-Genome Sequencing Data
Xihao Li, Andrew R. Wood, … Zilin Li·Cell GenomicsPeer-reviewed·Sep 23, 2025
- Gfa2bin enables graph-based GWAS by converting genome graphs to pan-genomic genotypes
Sebastian Vorbrugg, Ilja Bezrukov, … Detlef Weigel·bioRxiv·Dec 5, 2024
- Gretl - Variation GRaph Evaluation TooLkit
Sebastian Vorbrugg, Ilja Bezrukov, … Detlef Weigel·BioinformaticsPeer-reviewed·Dec 21, 2024