Masked superstrings for compact k-mer set representation beyond de Bruijn graphs
Global sequence search increasingly operates on k-mer sets rather than assemblies, but de Bruijn-graph-based representations lose compactness in data regimes typical of raw-read archives. Here, we present masked superstrings, a compact representation of arbitrary k-mer sets, combining a k-mer superstring with a binary mask marking which k-mer occurrences belong to the set and enabling overlaps of arbitrary lengths. We develop BiGreedy, a scalable superstring algorithm that constructs near-optimal superstrings across genomes, pangenomes, raw reads, and sampled k-mer sets, with little computational overhead over unitigs. We show that the resulting superstrings exceed the theoretical length lower bound by a median of only 0.0046%. Across raw-read and sampled data, masked superstrings reduce compressed sizes up to 4-fold relative to state-of-the-art spectrum-preserving string sets and 5.5-fold relative to ESS-Compress. Extending masked superstrings into a storage format for unitigs with abundances, we demonstrate a 3-fold lossless reduction in the compressed sizes of Logan unitigs across a sample of 400 accessions (from 61.7 GB to 20.0 GB). Overall, masked superstrings enable reduction in k-mer set storage and indexing cost across genomics with minimal computational overheads.
Обговорення
Улюблені
Додати до обраногоСтежити за цією темою
Лист, коли хтось коментує. Обліковий запис не потрібен.
Розсилка
Підпишіться на нашу безкоштовну розсилку, щоб бути в курсі всього про біотехнології.