Sign in
BioinformaticsbioRxiv
Preprint

Billi: Accurate and Scalable Bubble Detection in Pangenome Graphs

Shreeharsha G BhatiD, Daanish MahajaniD, Chirag JainiD

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

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.

Similarity Map
SelectedSame fieldCross-field
THISRomain '25Harviainen '26Dabbaghie '22Paten '18Garrison '24Islam '26
77% semantic matchBioinformatics
Sandra J. Romain, Siegfried Dubois, Fabrice Legeai+1 more·bioRxiv·Mar 14, 2025· 5 citations