Adaptive BML
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.
討論
最愛
加入你的最愛追蹤此討論串
有人留言時寄送郵件通知。無需帳號。
電子報
訂閱我們的免費電子報,掌握生物科技的最新動態。