,
Lore Depuydt
,
Camille Marchet
,
Simon J. Puglisi
Creative Commons Attribution 4.0 International license
The k-mer spectrum of a set of sequences is the set of k-length substrings the sequences contain. This lossy representation of sequence content pervades modern genomics. Recently, the spectral Burrows-Wheeler transform (SBWT) has emerged as a space-efficient representation of k-spectra that also supports efficient k-mer lookup queries and, more generally, easy navigation of the de Bruijn graph of the k-spectrum. In this paper, we examine primitive set operations, such as intersection, union, and set difference, on SBWT-encoded k-spectra and show that these operations can be supported efficiently. Moreover, efficient merging leads directly to a new memory-efficient algorithm for SBWT construction, which was able to build the SBWT for the 661K bacterial dataset containing 88 billion distinct k-mers in 50 hours using 186 GiB of RAM and 112 GiB of disk space. Given the pervasiveness of k-mer sets in genomics and the continued rapid growth of genomic databases, our work opens the door to a wide array of future applications that manipulate and reason about genomic data by dealing directly with simultaneously compact and searchable k-mer set representations offered by the SBWT.
@InProceedings{alanko_et_al:LIPIcs.WABI.2026.18,
author = {Alanko, Jarno N. and Depuydt, Lore and Marchet, Camille and Puglisi, Simon J.},
title = {{Fast Set Operations for Compact k-mer Sets}},
booktitle = {26th International Conference on Algorithms for Bioinformatics (WABI 2026)},
pages = {18:1--18:21},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-446-8},
ISSN = {1868-8969},
year = {2026},
volume = {390},
editor = {El-Mabrouk, Nadia and Vandin, Fabio},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.WABI.2026.18},
URN = {urn:nbn:de:0030-drops-275220},
doi = {10.4230/LIPIcs.WABI.2026.18},
annote = {Keywords: Data Structures, efficient Algorithms}
}
archived version
archived version