arXiv · 2611.41096
Adaptive BML
Abstract
Maximal exact matches (MEMs) between a pattern and a text are widely used in bioinformatics, and for tasks such as classifying reads it can be enough to know the few longest MEMs of each read. Boyer--Moore--Li (BML) finds all the MEMs of length at least a given threshold $L$ while ignoring much of the pattern, and $k$-mer based breaking (KeBaB) lets BML ignore even more, but both need $L$ to be chosen in advance. We describe adaptive BML (ABML), which is given a parameter $τ$ instead, raises $L$ as it runs and returns $τ$ longest MEMs. ABML combines naturally with KeBaB and the early-stopping rule proposed with it, which had not been implemented. ABML is simple: our implementation is a small patch to Li's {\tt ropebwt3}. On about 580,000 Oxford Nanopore reads and an index of about 5,900 bacterial genomes, finding 5 longest MEMs of each read with KeBaB and ABML took 11 minutes on one thread of an old desktop, against 1.9 hours for finding all the MEMs of length at least 40 with BML and 8.0 hours with forward--backward.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Travis Gagie. 2026-11-30. Adaptive BML. https://searcharxiv.org/abs/2611.41096
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.