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.
토론
즐겨찾기
즐겨찾기에 추가이 글 팔로우하기
누군가 댓글을 달면 메일로 알려 드려요. 계정은 필요 없어요.
뉴스레터
바이오테크의 모든 소식을 놓치지 않도록 무료 뉴스레터를 구독해 보세요.