GPU accelerated partial order multiple sequence alignment for long reads self-correction

Francesco Peverelli, Lorenzo Di Tucci, Marco D. Santambrogio, Nan Ding, Steven Hofmeyr, Aydın Buluç, Leonid Oliker, Katherine YelickbioRxiv 2020

Abstract

As third-generation sequencing technologies (PacBio and Oxford Nanopore) become more widely used, self-correction of long reads remains essential to reduce error rates, which currently hover around 10-12%. Many self-correction methods, such as RACON and CONSENT, rely on Multiple Sequence Alignment (MSA) to obtain a consensus sequence. Specifically, they utilize Partial Order (PO) graph alignment, a computationally expensive process that must be performed thousands of times per read. We introduce a GPU-accelerated version of the PO alignment from the POA v2 library, implemented on an NVIDIA Tesla V100. Our implementation achieves up to a 6.5x speedup compared to 64 CPU threads. By integrating this kernel into the CONSENT software, we demonstrate an end-to-end speedup for the error correction step ranging from 1.95x to 8.5x, depending on the input reads.

Introduction

Third-generation sequencing technologies produce significantly longer DNA reads than previous methods but suffer from high error rates (10% to 20%). Self-correction methods address this by aligning multiple reads to find a consensus. Partial Order Alignment (POA) is a preferred technique for this task because it represents sequences as a directed acyclic graph (DAG), allowing it to capture complex variations and branching paths more effectively than standard pairwise alignment.

Partial Order Alignment (POA) graph representation compared to a linear sequence.

Despite its biological advantages, POA is computationally intensive. The alignment of a sequence to a graph requires filling a dynamic programming (DP) matrix where each cell's value depends on multiple predecessors, creating a significant bottleneck in genome analysis pipelines.

GPU Acceleration Strategy

Our implementation targets the NVIDIA Tesla V100 architecture and exploits two levels of parallelism to overcome the computational costs of POA.

Inter-task Parallelism

We leverage the "segmentation strategy" used by tools like CONSENT, which breaks down large alignment problems into thousands of small windows (typically up to 255 base pairs). By batching these thousands of small alignment tasks together, we can saturate the GPU's massive core count.

Intra-task Parallelism

Within each individual alignment, we parallelize the scoring of the DP matrix using an "antidiagonal" or wavefront approach. In standard pairwise alignment, a cell depends only on its top, left, and top-left neighbors. In POA, a cell depends on all its predecessors in the graph.

Dynamic programming matrix calculation using the antidiagonal (wavefront) approach for GPU parallelization.

To manage this complexity, we optimized memory access by transferring edge lists and offsets into the GPU's high-speed shared memory. This minimizes the latency issues typically associated with irregular graph-based memory access.

Performance Evaluation

We evaluated our implementation using both synthetic benchmarks and real genomic datasets (including E. coli, D. melanogaster, and S. cerevisiae).

  • Kernel Speedup: The GPU kernel achieved a 6.5x speedup over 64 CPU threads (dual 16-core Intel Xeon E5-2698 v3). It also outperformed NVIDIA’s Clara Genomics POA module by up to 5.89x for the small sequence ranges required by CONSENT.
  • End-to-End Integration: When integrated into CONSENT, the total error-correction time was reduced by 1.95x to 8.5x.
  • Accuracy: The GPU implementation performs the exact mathematical operations as the original POA v2 library, ensuring that the biological accuracy of the corrected sequences remains identical to the CPU-based version.

Conclusion

By focusing on the specific workload generated by modern segmentation-based error correction tools, we have demonstrated that GPUs can significantly accelerate the POA bottleneck. Our approach hits the algorithmic peak of the hardware, providing a scalable solution for the increasing throughput of long-read sequencing technologies.

Summary updated

BibTeX
@misc{peverelli2020gpu,
  author = {Francesco Peverelli and Lorenzo Di Tucci and Marco D. Santambrogio and Nan Ding and Steven Hofmeyr and Aydın Buluç and Leonid Oliker and Katherine Yelick},
  title = {{GPU accelerated partial order multiple sequence alignment for long reads self-correction}},
  year = {2020},
  doi = {10.1101/2020.02.14.946939},
  howpublished = {bioRxiv},
}
Figure