Mem-based pangenome indexing for k-mer queries
Pangenomes are growing in number and size, thanks to the prevalence of high-quality long-read assemblies. However, current methods for studying sequence composition and conservation within pangenomes have limitations. Methods based on graph pangenomes require a computationally expensive multiple-alignment step, which can leave out some variation. Indexes based on k-mers and de Bruijn graphs are limited to answering questions at a specific substring length k. We present Maximal Exact Match Ordered (MEMO), a pangenome indexing method based on maximal exact matches (MEMs) between sequences. A single MEMO index can handle arbitrary-length queries over pangenomic windows. MEMO enables both queries that test k-mer presence/absence (membership queries) and that count the number of genomes containing k-mers in a window (conservation queries). MEMO's index for a pangenome of 89 human autosomal haplotypes fits in 2.04 GB, 8.8 <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mo>×</mml:mo></mml:math> smaller than a comparable KMC3 index and 11.4 <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mo>×</mml:mo></mml:math> smaller than a PanKmer index. MEMO indexes can be made smaller by sacrificing some counting resolution, with our decile-resolution HPRC index reaching 0.67 GB. MEMO can conduct a conservation query for 31-mers over the human leukocyte antigen locus in 13.89 s, 2.5 <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mo>×</mml:mo></mml:math> faster than other approaches. MEMO's small index size, lack of k-mer length dependence, and efficient queries make it a flexible tool for studying and visualizing substring conservation in pangenomes.
Authors
- Ben Langmead (ORCID: https://orcid.org/0000-0003-2437-1976)
- Nathaniel K. Brown (ORCID: https://orcid.org/0000-0002-6201-2301)
- Michael C. Schatz (ORCID: https://orcid.org/0000-0002-4118-4446)
- Stephen Hwang (ORCID: https://orcid.org/0000-0003-0299-569X)
- Omar Ahmed (ORCID: https://orcid.org/0000-0002-9933-8508)
- Katharine M. Jenike (ORCID: https://orcid.org/0000-0002-7276-8110)
- Sam Kovaka (ORCID: https://orcid.org/0000-0002-4835-8023)
Institutions
- Johns Hopkins University (US)
Publication Details
- Journal
- Algorithms for Molecular Biology
- Published
- 2025-03-01
- DOI
- https://doi.org/10.1186/s13015-025-00272-y
- Citations
- 1
- Primary Topic
- Genomics and Phylogenetic Studies
- Type
- article
- Field-Weighted Citation Impact
- 0.81
Funders
- National Science Foundation
- Human Frontier Science Program
- National Institutes of Health