bioRxivBioinformaticsPreprint
Haplotype Matching with GBWT for Pangenome Graphs
Ahsan SanaullahiD, Seba Villalobos, Degui ZhiiD, Shaojie ZhangiD
Abstract
Traditionally, variations from a linear reference genome were used to represent large sets of haplotypes compactly. In the linear reference genome based paradigm, the positional Burrows-Wheeler transform (PBWT) has traditionally been used to perform efficient haplotype matching. Pangenome graphs have recently been proposed as an alternative to linear reference genomes for representing the full spectrum of variations in the human genome. However, haplotype matches in pangenome graph based haplotype sets are not trivially generalizable from haplotype matches in the linear reference genome based haplotype sets. Work has been done to represent large sets of haplotypes as paths through a pangenome graph. The graph Burrows-Wheeler transform (GBWT) is one such work. The GBWT essentially stores the haplotype paths in a run length compressed BWT with compressed local alphabets. Although efficient in practice count and locate queries on the GBWT were provided by the original authors, the efficient haplotype matching capabilities of the PBWT have never been shown on the GBWT. In this paper, we formally define the notion of haplotype matches in pangenome graph-based haplotype sets by generalizing from haplotype matches in linear reference genome-based haplotype sets. We also describe the relationship between set maximal matches, long matches, locally maximal matches, and text maximal matches on the GBWT, PBWT, and the BWT. We provide algorithms for outputting some of these matches by applying the data structures of the r-index (introduced by Gagie et al.) to the GBWT. We show that these structures enable set maximal match and long match queries on the GBWT in almost linear time and in space close to linear in the number of runs in the GBWT. We also provide multiple versions of the query algorithms for different combinations of the available data structures. The long match query algorithms presented here even run on the BWT in the same time complexity as the GBWT due to their similarity.
- organism: human
- assay: whole-genome sequencing
- research focus: benchmarking
- research focus: database / resource
- research focus: software / tool
- approach: statistical model
- Citations
- 1
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
- A Graph Extension of the Positional Burrows-Wheeler Transform and its Applications
Adam M Novak, Erik Garrison, Benedict Paten·bioRxiv·May 2, 2016
- Compressed Data Structures for Population-Scale Positional Burrows-Wheeler Transforms
Paola Bonizzoni, Christina A. Boucher, … Massimiliano Rossi·bioRxiv·Sep 16, 2022
- μ-PBWT: Enabling the Storage and Use of UK Biobank Data on a Commodity Laptop
Davide Cozzi, Massimiliano Rossi, … Paola Bonizzoni·bioRxiv·Feb 15, 2023
- Syllable-PBWT for space-efficient haplotype long-match query
Victor C. Wang, Ardalan Naseri, … Degui Zhi·BioinformaticsPeer-reviewed·Nov 28, 2022
- Haplotype-based Parallel PBWT for Biobank Scale Data
Kecong Tang, Ahsan Sanaullah, … Shaojie Zhang·Lecture notes in computer sciencePeer-reviewed·Oct 31, 2025
- d-PBWT: dynamic positional Burrows-Wheeler transform
Ahsan Sanaullah, Degui Zhi, Shaojie Zhang·BioinformaticsPeer-reviewed·Feb 23, 2021