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 $\tau$ instead, raises $L$ as it runs and returns $\tau$ 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.
토론
이 글 팔로우하기
누군가 댓글을 달면 메일로 알려 드려요. 계정은 필요 없어요.
뉴스레터
바이오테크의 모든 소식을 놓치지 않도록 무료 뉴스레터를 구독해 보세요.