Accelerating read mapping with FastHASH

Hongyi Xin, Donghyuk Lee, Farhad Hormozdiari, Samihan Yedkar, Onur Mutlu, Can AlkanBMC 2013

Abstract

With the introduction of next-generation sequencing (NGS) technologies, we are facing an exponential increase in the amount of genomic sequence data. The success of all medical and genetic applications of next-generation sequencing critically depends on the existence of computational techniques that can process and analyze the enormous amount of sequence data quickly and accurately. Unfortunately, the current read mapping algorithms have difficulties in coping with the massive amounts of data generated by NGS. We propose a new algorithm, FastHASH, which drastically improves the performance of the seed-and-extend type hash table based read mapping algorithms, while maintaining the high sensitivity and comprehensiveness of such methods. FastHASH is a generic algorithm compatible with all seed-and-extend class read mapping algorithms. It introduces two main techniques, namely Adjacency Filtering, and Cheap K-mer Selection. We implemented FastHASH and merged it into the codebase of the popular read mapping program, mrFAST. Depending on the edit distance cutoffs, we observed up to 19-fold speedup while still maintaining 100% sensitivity and high comprehensiveness.

Introduction

Next-Generation Sequencing (NGS) technologies have created a "data deluge," producing billions of short DNA "reads" that must be mapped to a massive reference genome. Current mapping strategies generally fall into two categories: suffix-array methods (like BWA), which are fast but less sensitive to genetic variation, and hash-table "seed-and-extend" methods (like mrFAST), which offer high sensitivity but are computationally expensive.

The primary bottleneck in hash-table mappers is the verification phase. Over 90% of execution time is often spent performing complex alignments on "seeds" that ultimately fail to map correctly. Research indicates that only approximately 0.007% of potential seed locations are "true" locations. FastHASH addresses this inefficiency by filtering out these false leads before expensive computation occurs.

Methodology

FastHASH introduces two primary techniques designed to be integrated into existing hash-table-based mappers: Cheap K-mer Selection (CKS) and Adjacency Filtering (AF).

Cheap K-mer Selection (CKS)

Genomes contain many repetitive sequences (e.g., "AAAAAAAA"). Using these as seeds results in millions of potential locations to verify. CKS identifies the "cheapest" or least frequent k-mers within a read to use as primary seeds. By prioritizing rare sequences, the initial search space is significantly reduced without compromising the ability to find a correct match.

Cheap K-mer Selection (CKS) prioritizes rare k-mers to minimize the initial search space.

Adjacency Filtering (AF)

Adjacency Filtering acts as a pre-verification step. It operates on the principle that if a seed is a true match, its neighboring segments in the read should also appear as neighbors in the reference genome at predictable offsets. By performing simple lookups to check for this adjacency before triggering complex alignment algorithms like Smith-Waterman, FastHASH can discard over 99% of false locations.

Adjacency Filtering (AF) validates candidate locations by checking for neighboring seed matches before full alignment.

Evaluation and Results

The performance of FastHASH was evaluated using both real genomic reads from the 1000 Genomes Project and simulated datasets designed to test sensitivity at fixed edit distances.

Key results include:

  • Significant Speedup: FastHASH achieved up to a 19-fold speedup compared to the standard mrFAST mapper.
  • Maintained Sensitivity: Unlike many heuristic-based mappers, FastHASH maintained 100% sensitivity, ensuring all valid mapping locations were identified.
  • Filtering Efficiency: Adjacency Filtering rejected approximately 99.8% of false locations. Combined with CKS, the number of locations requiring expensive verification was reduced by an average of 95.4%.
  • Cross-Species Performance: In high-divergence scenarios (e.g., mapping human reads to chimpanzee genomes), FastHASH outperformed suffix-array methods like BWA in terms of speed while maintaining superior sensitivity.

Conclusion

FastHASH demonstrates that the computational waste in traditional read mappers can be mitigated through intelligent filtering. By exploiting the imbalance in genomic hash tables and utilizing the contextual information of adjacent seeds, FastHASH provides a scalable solution for the NGS data deluge. Future work will explore hardware acceleration via GPUs or FPGAs and hybrid indexing strategies to further optimize memory and computational efficiency.

Summary updated

BibTeX
@inproceedings{xin2013accelerating,
  author = {Hongyi Xin and Donghyuk Lee and Farhad Hormozdiari and Samihan Yedkar and Onur Mutlu and Can Alkan},
  title = {{Accelerating read mapping with FastHASH}},
  booktitle = {BMC},
  year = {2013},
  doi = {10.1186/1471-2164-14-s1-s13},
}
Figure