These Are Not the K-mers You Are Looking For: Efficient Online K-mer Counting Using a Probabilistic Data Structure
Open Access
- 25 July 2014
- journal article
- research article
- Published by Public Library of Science (PLoS) in PLOS ONE
- Vol. 9 (7) , e101271
Abstract
K-mer abundance analysis is widely used for many purposes in nucleotide sequence analysis, including data preprocessing for de novo assembly, repeat detection, and sequencing coverage estimation. We present the khmer software package for fast and memory efficient online counting of k-mers in sequencing data sets. Unlike previous methods based on data structures such as hash tables, suffix arrays, and trie structures, khmer relies entirely on a simple probabilistic data structure, a Count-Min Sketch. The Count-Min Sketch permits online updating and retrieval of k-mer counts in memory which is necessary to support online k-mer analysis algorithms. On sparse data sets this data structure is considerably more memory efficient than any exact data structure. In exchange, the use of a Count-Min Sketch introduces a systematic overcount for k-mers; moreover, only the counts, and not the k-mers, are stored. Here we analyze the speed, the memory usage, and the miscount rate of khmer for generating k-mer frequency distributions and retrieving k-mer counts for individual k-mers. We also compare the performance of khmer to several other k-mer counting packages, including Tallymer, Jellyfish, BFCounter, DSK, KMC, Turtle and KAnalyze. Finally, we examine the effectiveness of profiling sequencing error, k-mer abundance trimming, and digital normalization of reads in the context of high khmer false positive rates. khmer is implemented in C++ wrapped in a Python interface, offers a tested and robust API, and is freely available under the BSD license at github.com/ged-lab/khmer.Keywords
All Related Versions
This publication has 33 references indexed in Scilit:
- Disk-based k-mer counting on a PCBMC Bioinformatics, 2013
- Compression of next-generation sequencing reads aided by highly efficient de novo assemblyNucleic Acids Research, 2012
- Scaling metagenome sequence assembly with probabilistic de Bruijn graphsProceedings of the National Academy of Sciences of the United States of America, 2012
- Efficient de novo assembly of single-cell bacterial genomes from short-read data setsNature Biotechnology, 2011
- Efficient counting of k-mers in DNA sequences using a bloom filterBMC Bioinformatics, 2011
- Error correction of high-throughput sequencing datasets with non-uniform coverageBioinformatics, 2011
- A fast, lock-free approach for efficient parallel counting of occurrences of k-mersBioinformatics, 2011
- GAGE: generally applicable gene set enrichment for pathway analysisBMC Bioinformatics, 2009
- A new method to compute K-mer frequencies and its application to annotate large repetitive plant genomesBMC Genomics, 2008
- Velvet: Algorithms for de novo short read assembly using de Bruijn graphsGenome Research, 2008