Efficient sequence alignment against millions of prokaryotic genomes with LexicMap
Author:
- 10 December 2025
- conference paper
- Published by Cassyni
Abstract
The size of microbial sequence databases continues to grow far beyond the abilities of existing alignment tools. We introduce LexicMap, a nucleotide sequence alignment tool for efficiently querying moderate length sequences (>250 bp) such as a gene, plasmid or long read against up to millions of prokaryotic genomes. We construct a small set of probe k-mers which are selected to efficiently sample the entire database to be indexed, such that every 250 bp window of each database genome contains multiple seed k-mers each with a shared prefix with one of the probes. Storing these seeds in a hierarchical index enables fast and low-memory alignment. We benchmark both accuracy and potential to scale to databases of millions of bacterial genomes, showing that LexicMap achieves comparable accuracy with state-of-the-art, but with greater speed and lower memory use. Our method supports querying at scale and within minutes, which will be useful for many biological applications across epidemiology, ecology and evolution. LexicMap produces output in standard formats including that of BLAST and is available under MIT license at https://github.com/shenwei356/LexicMap.Keywords
Funding Information
- National Natural Science Foundation of China (82341112)
- National Natural Science Foundation of China (32570766)
- China Scholarship Council (202308500105)
- European Molecular Biology Laboratory (EMBL Visitor/Sabbatical Program fellowship)
This publication has 1 reference indexed in Scilit:
- Efficient sequence alignment against millions of prokaryotic genomes with LexicMapNature Biotechnology, 2025