Skip to main content
QUICK REVIEW

[Paper Review] Computing alignment plots efficiently

Peter Krusche, Alexander Tiskin|ArXiv.org|Sep 10, 2009
Algorithms and Data CompressionComputer Science11 references4 citations
TL;DR

This paper presents a highly efficient data-parallel algorithm for computing alignment plots using edit distance instead of Hamming distance, leveraging vectorized operations and the seaweed algorithm to achieve speedups of up to 10.2x over standard dynamic programming. The method computes edit distances between all w-window pairs of two strings in O(mnw/γ) time using γ-wide vector operations, with experimental results showing significant performance gains on biological sequences and strong parallel scalability.

ABSTRACT

Dot plots are a standard method for local comparison of biological sequences. In a dot plot, a substring to substring distance is computed for all pairs of fixed-size windows in the input strings. Commonly, the Hamming distance is used since it can be computed in linear time. However, the Hamming distance is a rather crude measure of string similarity, and using an alignment-based edit distance can greatly improve the sensitivity of the dot plot method. In this paper, we show how to compute alignment plots of the latter type efficiently. Given two strings of length m and n and a window size w, this problem consists in computing the edit distance between all pairs of substrings of length w, one from each input string. The problem can be solved by repeated application of the standard dynamic programming algorithm in time O(mnw^2). This paper gives an improved data-parallel algorithm, running in time $O(mnw/γ/p)$ using vector operations that work on $γ$ values in parallel and $p$ processors. We show experimental results from an implementation of this algorithm, which uses Intel's MMX/SSE instructions for vector parallelism and MPI for coarse-grained parallelism.

Motivation & Objective

  • To improve the sensitivity of dot plots in biological sequence comparison by replacing Hamming distance with edit distance.
  • To develop a practical, high-performance algorithm for computing alignment plots that scales efficiently with input size.
  • To leverage vectorized operations and parallel computing to significantly reduce runtime compared to repeated dynamic programming.
  • To demonstrate scalability and performance gains on real biological sequences using SIMD and MPI.

Proposed method

  • The algorithm uses the seaweed algorithm for semi-local sequence alignment to compute edit distances between all w-window pairs of two strings.
  • It applies vectorized operations on γ-wide values to process multiple alignment scores in parallel, reducing time complexity to O(mnw/γ).
  • The method transforms input strings by inserting a special character before each character to model gap penalties, enabling standard LCS computation to yield edit scores.
  • A distribution matrix is used to efficiently compute the highest-score submatrices required for the seaweed algorithm.
  • The implementation uses C++ with Intel MMX and SSE intrinsics for vector parallelism, and MPI for coarse-grained parallelization across multiple processors.
  • The algorithm is optimized for window size w = 100, with input strings preprocessed to w = 200 due to the constant-size blowup in the alignment DAG.

Experimental results

Research questions

  • RQ1Can alignment plots be computed more efficiently than by repeated application of the standard dynamic programming algorithm?
  • RQ2To what extent can vectorized operations and parallelization reduce the runtime of edit distance computation for alignment plots?
  • RQ3How does the seaweed-based algorithm compare in practice to existing methods like BLCS and heuristic DP on real biological sequences?
  • RQ4What is the scalability of the algorithm on multi-core and distributed systems for large-scale sequence comparison?

Key findings

  • The seaweed-based algorithm achieved a maximum speedup of 10.2x over the heuristic DP method (Heur) on a Linux desktop system using 8-bit vector operations (Sea-8).
  • The Sea-8 implementation was more than 7 times faster than the best existing method (BLCS) for sequences of length 200.
  • On an IBM HPC cluster with 64 cores, the algorithm achieved a speedup of 20.5x over the single-core Heur method for the largest dataset.
  • The algorithm demonstrated strong scalability, with speedups of up to 14.9x on the largest dataset when scaling from 1 to 64 cores using MPI.
  • The use of 8-bit vector operations (Sea-8) reduced runtime by a factor of 2.6 compared to 16-bit operations (Sea-16), showing the benefit of data type optimization.
  • The method outperformed both BLCS and Heur across all tested datasets, with the largest performance gains observed on longer sequences.

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.