Introduction
In the era of "big data" biology, the explosion of genomic and metagenomic sequences has outpaced our ability to analyze them. Identifying protein families—groups of proteins sharing a common ancestor—is a foundational task for understanding disease, evolution, and functional annotation. However, comparing millions of sequences against each other (a many-to-many alignment) is a computational nightmare.
This paper introduces PASTIS (Protein Alignment via Sparse Matrices), a distributed-memory software package that reimagines protein similarity search as a high-performance sparse matrix problem. By leveraging the power of supercomputers, PASTIS can construct massive protein similarity graphs at a scale that leaves traditional tools in the dust.
The Challenge of Protein Homology Search
The core challenge is protein homology search: determining if two protein sequences are biologically related. Because evolution involves mutations, two sequences might be similar but not identical. Existing tools like BLAST or MMseqs2 are highly optimized but often struggle with the sheer volume of data coming from "shotgun metagenomics," where DNA is sampled directly from the environment.
The computational cost of comparing every sequence against every other sequence ($O(n^2)$) is prohibitive. To mitigate this, researchers use "seeds"—short identical subsequences called $k$-mers—to find potentially related pairs before performing expensive, detailed alignments. However, managing these $k$-mers and the resulting similarity graphs across thousands of computer nodes presents a massive load-balancing and communication challenge.
Methodology: Alignment as Sparse Matrix Algebra
The authors treat the sequence-matching problem as a Sparse General Matrix-Matrix Multiplication (SpGEMM). This approach allows the use of highly optimized linear algebra libraries to handle the computational load.
Sparse Matrix Representation
The process begins by creating a matrix $A$ where rows represent sequences and columns represent $k$-mers. A non-zero entry $A_{ij}$ indicates that sequence $i$ contains $k$-mer $j$. Multiplying $A$ by its transpose ($A A^T$) yields a new matrix $B$, where $B_{ij}$ represents the number of shared $k$-mers between sequences $i$ and $j$.
Accounting for Evolution
To account for biological variation, the authors don't just look for exact matches. They use a scoring matrix (BLOSUM62) to find "substitute" $k$-mers—different sequences that are biologically likely to swap. They model this as $A S A^T$, where $S$ is a substitution matrix. This maintains sparsity while significantly boosting the tool's ability to find distantly related proteins (recall).
Distributed Infrastructure and Alignment
PASTIS is built on CombBLAS, a library for distributed sparse matrix linear algebra. It uses a 2D block decomposition to distribute the matrix across nodes, minimizing communication overhead. Once potential matches are identified via matrix multiplication, PASTIS uses the SeqAn library to perform final, detailed alignments using Smith-Waterman or x-drop algorithms.
Evaluation and Results
The authors evaluated PASTIS using two primary sources: Metaclust50 (for scalability testing with up to 5 million sequences) and SCOPe (for measuring biological precision and recall).
- Massive Scalability: Tested on the NERSC Cori supercomputer, PASTIS scaled up to 2,025 nodes (137,700 cores), demonstrating near-ideal scaling.
- Competitive Performance: Compared to MMseqs2, the current gold standard, PASTIS XD (the x-drop variant) becomes faster once the system scales beyond 16 nodes.
- Biological Relevance: The accuracy of PASTIS is on par with MMseqs2 and LAST, ensuring that speed gains do not come at the cost of scientific quality.
Conclusion
The most striking insight of PASTIS is that complex biological search heuristics can be elegantly expressed as sparse matrix operations. This allows bioinformaticians to leverage decades of research in high-performance computing (HPC) optimization. While future work will focus on GPU acceleration and more sophisticated $k$-mer filtering, PASTIS already provides a robust framework for handling the "data deluge" of modern genomics.
Reference: Selvitopi, O., et al. "Distributed Many-to-Many Protein Sequence Alignment using Sparse Matrices." SC20, 2020.
Summary updated