BioGeeks

MKC: Exact k-mer Counting into a Compact Cache-Line Cuckoo Index

연구arXiv q-bioKamila Szewczyk5일 전

Querying the counts of individual k-mers is an essential step of assembly evaluation and metagenomic classification. Disk-based counters such as KMC 3 count in bounded memory but write sorted lists that are slow to query, whereas hash-based counters such as Hackgap hold large in-memory tables for all distinct k-mers. In this paper, we propose an exact canonical k-mer counter called MKC for k <= 32, which builds a static hash table of counts in the manner of a disk-based counter. MKC distributes the k-mers into bins by minimizer and counts each bin by sorting the hashes of its k-mers in cache. Subsequently, it assembles a two-choice cuckoo table of 64-byte buckets, in which each record stores a quotient of an invertible hash and a count field of variable width, and buckets of mostly unique k-mers store their quotients via Elias-Fano coding. We apply MKC on ten genomes and read sets. The results show that the index of a human genome takes 37.4-42.5 bits per distinct 31-mer, counts included, and that most lookups read one cache line. With 16 threads, MKC builds its index 1.6-8.0 times faster than KMC 3 and 5.6-42.4 times faster than Hackgap, indexes a human genome in 8.9 s with a peak resident set size of 1.0 GiB, and writes the smallest index of the compared counters. At equal page size, it answers random queries 5.0-11.7 times faster than KMC 3 and 1.8-3.3 times faster than Hackgap. For k-mers in sequence order, its batch interface is 1.6-8.5 times faster than Hackgap.

arxiv.org에서 읽어 보세요

토론

다음 단계에서 이름을 정하게 돼요. 이미 회원이신가요? 로그인하세요.

이 글 팔로우하기

누군가 댓글을 달면 메일로 알려 드려요. 계정은 필요 없어요.

뉴스레터

바이오테크의 모든 소식을 놓치지 않도록 무료 뉴스레터를 구독해 보세요.

1 USD = 1,028 CLP 환산한 가격은 추정치예요. Coinbase, 2026-12-02 09:55 UTC