Efficient counting of k-mers in DNA sequences using a bloom filter
Open accessThe DOI matches its Crossref record; 24 of the 24 references it cites were found in a registry or an index.
Abstract
BACKGROUND: Counting k-mers (substrings of length k in DNA sequence data) is an essential component of many methods in bioinformatics, including for genome and transcriptome assembly, for metagenomic sequencing, and for error correction of sequence reads. Although simple in principle, counting k-mers in large modern sequence data sets can easily overwhelm the memory capacity of standard computers. In current data sets, a large fraction-often more than 50%-of the storage capacity may be spent on storing k-mers that contain sequencing errors and which are typically observed only a single time in the data. These singleton k-mers are uninformative for many algorithms without some kind of error correction. RESULTS: We present a new method that identifies all the k-mers that occur more than once in a DNA sequence data set. Our method does this using a Bloom filter, a probabilistic data structure that stores all the observed k-mers implicitly in memory with greatly reduced memory requirements. We then make a second sweep through the data to provide exact counts of all nonunique k-mers. For example data sets, we report up to 50% savings in memory usage compared to current software, with modest costs in computational speed. This approach may reduce memory requirements for any algorithm that starts by counting k-mers in sequence data with errors. CONCLUSIONS: A reference implementation for this methodology, BFCounter, is written in C++ and is GPL licensed. It is available for free download at http://pritch.bsd.uchicago.edu/bfcounter.html.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Velvet: Algorithms for de novo short read assembly using de Bruijn graphs
Zerbino, D. R., & Birney, E. (2008) · Genome Research · doi:10.1101/gr.074492.107 · Cited by 9,491
A map of human genome variation from population-scale sequencing.
The 1000 Genomes Project Consortium (2010) · Nature · doi:10.1038/nature09534 · Cited by 7,877
Space/time trade-offs in hash coding with allowable errors
Bloom, B. H. (1970) · Communications of the ACM · doi:10.1145/362686.362692 · Cited by 7,492
A fast, lock-free approach for efficient parallel counting of occurrences of k -mers
Marçais, G., & Kingsford, C. (2011) · Bioinformatics · doi:10.1093/bioinformatics/btr011 · Cited by 4,661 · cited 1×
“A number of e cient methods have been developed to facilitate this task, for example: Jellyfish [1] uses a highly optimized lock-free hash table for k-mers up to 31 bases in length; DSK (disk streaming of k-mers) [2] streams partitioned k-mer hash table from disk, thus counting k-mers only in a xed amount of memory.”
MethodThe Art of Computer Programming: Volume 3: Sorting and Searching
Knuth, D. E. (1973) · Cited by 3,955
ABySS: A parallel assembler for short read sequence data
Simpson, J. T., Wong, K., Jackman, S. D., Schein, J. E., Jones, S. J. M., & Birol, İ. (2009) · Genome Research · doi:10.1101/gr.089532.108 · Cited by 3,608
Rapid SNP Discovery and Genetic Mapping Using Sequenced RAD Markers
Baird, N. A., Etter, P. D., Atwood, T. S., Currey, M. C., Shiver, A. L., Lewis, Z. A., Selker, E. U., Cresko, W. A., & Johnson, E. A. (2008) · PLoS ONE · doi:10.1371/journal.pone.0003376 · Cited by 3,356
De novo assembly of human genomes with massively parallel short read sequencing
Li, R., Zhu, H., Ruan, J., Qian, W., Fang, X., Shi, Z., Li, Y., Li, S., Shan, G., Kristiansen, K., et al. (2010) · Genome Research · doi:10.1101/gr.097261.109 · Cited by 2,926 · cited 2×
“For genome assembly methods the construction of de Bruijn graphs dominates memory consumption [7] and the time for completion can be several days [13], depending on the amount of postprocessing.”
MethodNetwork Applications of Bloom Filters: A Survey
Broder, A., & Mitzenmacher, M. (2004) · Internet Mathematics · doi:10.1080/15427951.2004.10129096 · Cited by 1,991
Summary cache: a scalable wide-area Web cache sharing protocol
Fan, L., Cao, P., Almeida, J., & Broder, A. Z. (2000) · IEEE/ACM Transactions on Networking · doi:10.1109/90.851975 · Cited by 1,811
Cited by
Compressed Weighted de Bruijn Graphs
Liu, B., Shi, Y., Yuan, J., Hu, X., Zhang, H., Li, N., Li, Z., Chen, Y., Mu, D., & Fan, W. (2013) · arXiv (Cornell University) · doi:10.4230/lipics.cpm.2021.16 · Cited by 445
Exploiting sparseness in de novo genome assembly
Ye, C., Ma, Z. S., Cannon, C. H., Pop, M., & Yu, D. W. (2012) · BMC Bioinformatics · doi:10.1186/1471-2105-13-s6-s1 · Cited by 412
Ye, C., Hill, C. M., Wu, S., Ruan, J., & Ma, Z. (2016) · Scientific Reports · doi:10.1038/srep31900 · Cited by 304
DSK: k-mer counting with very low memory usage
Rizk, G., Lavenier, D., & Chikhi, R. (2013) · Bioinformatics · doi:10.1093/bioinformatics/btt020 · Cited by 301
Computational pan-genomics: status, promises and challenges
(2016) · Briefings in Bioinformatics · doi:10.1093/bib/bbw089 · Cited by 287
Musket: a multistage k-mer spectrum-based error corrector for Illumina sequence data
Liu, Y., Schröder, J., & Schmidt, B. (2013) · Bioinformatics · doi:10.1093/bioinformatics/bts690 · Cited by 287
KMC 2: fast and resource-frugal k-mer counting
Deorowicz, S., Kokot, M., Grabowski, S., & Debudaj-Grabysz, A. (2015) · Bioinformatics · doi:10.1093/bioinformatics/btv022 · Cited by 281
Lighter: fast and memory-efficient sequencing error correction without counting
Song, L., Florea, L., & Langmead, B. (2014) · Genome Biology · doi:10.1186/preaccept-9663167051308943 · Cited by 258
Scaling metagenome sequence assembly with probabilistic de Bruijn graphs
Pell, J., Hintze, A., Canino-Koning, R., Howe, A., Tiedje, J. M., & Brown, C. T. (2012) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1121464109 · Cited by 247
Compacting de Bruijn graphs from sequencing data quickly and in low memory
Chikhi, R., Limasset, A., & Medvedev, P. (2016) · Bioinformatics · doi:10.1093/bioinformatics/btw279 · Cited by 228
“More recent efforts have focused on the node-centric graph, which only requires the counting of k -mers (Deorowicz et al. , 2014; Li et al. , 2013; Lu et al. , 2013; Marc¸ais and Kingsford, 2011; Melsted and Pritchard, 2011; Rizk et al. , 2013; Simpson et al. , 2009).”
BackgroundBFC: correcting Illumina sequencing errors
Li, H. (2015) · Bioinformatics · doi:10.1093/bioinformatics/btv290 · Cited by 213
Bifrost: highly parallel construction and indexing of colored and compacted de Bruijn graphs
Holley, G., & Melsted, P. (2020) · Genome Biology · doi:10.1186/s13059-020-02135-8 · Cited by 210
“This separation allows us to filter out unique k -mers which are likely to be sequencing errors [67].”
BackgroundSelf-citationThe present and future of de novo whole-genome assembly
Sohn, J.-I., & Nam, J.-W. (2016) · Briefings in Bioinformatics · doi:10.1093/bib/bbw096 · Cited by 196
Strategies for complete plastid genome sequencing
Twyford, A. D., & Ness, R. W. (2017) · Molecular Ecology Resources · doi:10.1111/1755-0998.12626 · Cited by 190
Compression of next-generation sequencing reads aided by highly efficient de novo assembly
Jones, D. C., Ruzzo, W. L., Peng, X., & Katze, M. G. (2012) · Nucleic Acids Research · doi:10.1093/nar/gks754 · Cited by 161
“Counting k-mers efficiently with the help of Bloom filters was previously explored by Melsted and Pritchard (19), who use it in addition, rather than in place, of a hash table.”
MethodA survey of k-mer methods and applications in bioinformatics
Moeckel, C., Mareboina, M., Konnaris, M. A., Chan, C. S. Y., Mouratidis, I., Montgomery, A., Chantzi, N., Pavlopoulos, G. A., & Georgakopoulos-Soares, I. (2024) · Computational and Structural Biotechnology Journal · doi:10.1016/j.csbj.2024.05.025 · Cited by 131
“Recently, k-mer-based alignment algorithms have been utilized in detecting and filtering out contamination by comparing observed k-mers against a BFCounter[201], CHTKC [202], Discount[203], DSK2 [204], GECKO[205], Gerbil [206], Jellyfish2[8], KAnalyze [207], KCMBT[208], KCOSS [209], KHMer[210], KMC3 [45], KmerAnalysis…”
Method
Metadata
- Authors
- Melsted, P., & Pritchard, J. K.
- Venue
- BMC Bioinformatics
- Published
- 2011-08-10
- Volume
- 12
- Issue
- 1
- Pages
- 333-333
- ISSN
- 1471-2105 (ISSN-L)
- OpenAlex
- W2163584430
- Cited by
- 283
- References
- 24
- FWCI
- 11.83
- Type
- journal article
- Language
- en
- Open access
- gold
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.