Billi: Accurate and Scalable Bubble Detection in Pangenome Graphs
Abstract
A key application of pangenome graphs is the characterization of small and large genomic variants by enumerating bubble-like structures in the graph. Several formalizations of bubbles have been proposed. Superbubbles and ultrabubbles are two such formalizations, but both exclude cyclic subgraphs. Representing cyclic structures is essential for capturing complex genomic variation, such as inversions. Other definitions that accommodate cycles do not guarantee that overlapping bubbles are strictly nested. This makes it difficult to organize variants hierarchically and distinguish complex variants from their constituent subvariants. We introduce two formalizations, called panbubble and hairpin, that accommodate cyclic subgraphs. We prove that both satisfy the strict nesting property. In our theoretical analysis and algorithm design, we leverage an auxiliary undirected graph representation derived from the bidirected pangenome graph, enabling us to exploit established graph-theoretic algorithms and properties. We then present an exact O(|V|^2(|V| + |E|)-time algorithm for detecting all panbubbles and hairpins in a bidirected graph G = (V, E). In addition, we propose a heuristic that produces the same output as the exact algorithm on all tested graphs and scales to both the first and second releases of the Human Pangenome Reference Consortium. We implemented our algorithms in the tool Billi. At a known recurrent inversion locus on the human Y chromosome, Billi recovers the inversion together with its nested variants, whereas existing bubble-detection methods miss part of the variation or fail to correctly represent the nesting relationships among variants.
02 /Specification & Classification
Click any tag to browse matching papers- Citations
- 1
- 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
- Investigating the topological motifs of inversions in pangenome graphs
Sandra J. Romain, Siegfried Dubois, … Claire Lemaitre·bioRxiv·Mar 14, 2025
- Scalable computation of ultrabubbles in pangenomes by orienting bidirected graphs
Juha Harviainen, Francisco Sena, … Alexandru Ioan Tomescu·BioinformaticsPeer-reviewed·Jul 1, 2026
- BubbleGun: Enumerating Bubbles and Superbubbles in Genome Graphs
Fawaz Dabbaghie, Jana Ebler, Tobias Marschall·BioinformaticsPeer-reviewed·Jul 7, 2022
- Superbubbles, Ultrabubbles and Cacti
Benedict Paten, Jordan M. Eizenga, … Glenn Hickey·Journal of Computational BiologyPeer-reviewed·Feb 20, 2018
- Building pangenome graphs
Erik P. Garrison, Andrea Guarracino, … Pjotr Prins·Nature MethodsPeer-reviewed·Oct 21, 2024
- Structural Variant Aware Identity-by-Descent Detection on Pangenome Graphs
Uwaise Ibna Islam, Franco Marsico, … Christina Boucher·bioRxiv·Nov 6, 2026