Skip to main content
QUICK REVIEW

[Paper Review] khmer: Working with Big Data in Bioinformatics

Eric McDonald, C. Titus Brown|arXiv (Cornell University)|Mar 9, 2013
Genetics, Bioinformatics, and Biomedical ResearchBiochemistry, Genetics and Molecular Biology2 references15 citations
TL;DR

khmer is an open-source software suite that uses probabilistic data structures like Bloom filters to efficiently preprocess large-scale genomic sequence data by counting k-mers and enabling digital normalization and error trimming. It achieves high performance and near-linear scalability across multiple CPU cores, reducing processing time significantly for terabyte-scale datasets while maintaining correctness and extensibility.

ABSTRACT

We introduce design and optimization considerations for the 'khmer' package.

Motivation & Objective

  • Address the growing challenge of processing terabyte-scale genomic datasets in bioinformatics.
  • Improve the efficiency of downstream analyses by pre-processing raw sequence data using k-mer counting and filtering.
  • Optimize software performance and scalability to handle billions of genomic reads with minimal memory overhead.
  • Enable accurate, fast, and scalable processing of high-throughput sequencing data using parallel computing and optimized I/O patterns.
  • Support integration into bioinformatics pipelines through a well-documented, extensible API and robust data structures.

Proposed method

  • Decomposes genomic reads into overlapping k-mers of a user-defined length k.
  • Uses multiple hash functions to store k-mers in a Bloom filter data structure for compact, probabilistic membership testing.
  • Employs digital normalization by filtering out highly redundant k-mers to reduce data volume while preserving biological signal.
  • Applies error trimming by excluding low-abundance k-mers, which are likely sequencing errors.
  • Implements parallel processing across multiple CPU cores with thread-safe hash table updates and optimized I/O to minimize bottlenecks.
  • Uses memory-mapped output and batch updates to reduce I/O latency and amortize write costs over time.

Experimental results

Research questions

  • RQ1How can k-mer counting be made efficient and scalable for terabyte-scale genomic datasets?
  • RQ2To what extent can probabilistic data structures like Bloom filters reduce memory usage without sacrificing accuracy in k-mer analysis?
  • RQ3What performance gains can be achieved through parallelization and I/O optimization in genomic data pre-processing?
  • RQ4How does the software scale with increasing numbers of CPU cores, and what limits further speedup?
  • RQ5Can software optimizations improve I/O performance and reduce the time spent writing k-mer counts to disk?

Key findings

  • khmer achieves near-linear speedup, with approximately 1.9x speedup when doubling the number of CPU cores, demonstrating strong parallel scalability.
  • For a 5 GB dataset, k-mer counting took over six times longer than hash table write-out, highlighting I/O as a major bottleneck.
  • The software is more memory-efficient than exact set membership schemes for a wide range of k-mer problems, making it suitable for large-scale data.
  • Memory-mapping output files and using batch updates can reduce write-out time by decoupling it from the end of execution.
  • The use of Bloom filters enables compact storage of billions of unique k-mers with minimal memory overhead, even for datasets requiring up to a terabyte of RAM.
  • The redesign of the data pump and parser components improved both performance and maintainability, supporting future extensibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.