Back to list

How to do multiple sequence alignment of proteins?

Published on August 12, 2026

How to do multiple sequence alignment of proteins?

If you've ever done bioinformatics or protein engineering, you've probably experienced this: you download hundreds of homologous sequences, run an alignment, and then stare blankly at the colorful alignment results—are these conserved sites really conserved? Why do those two columns have so many gaps? Why is this sequence so ridiculously off? Can you even trust this alignment result?


So how do you actually do protein multiple sequence alignment (MSA)? On the surface, it seems simple—just line up a few sequences and look for homologous sites, right? But anyone who's done real research knows that the quality of your alignment directly determines the success or failure of downstream analyses like conserved site analysis, function prediction, phylogenetic tree building, or even directed evolution design. A poor multiple sequence alignment can make all your downstream analyses fall apart.


In this article, we’ll go deep, from the principles to practical steps, from tool selection to result evaluation, and thoroughly explain how to do protein multiple sequence alignment. Whether you’re a bioinformatics newbie or a researcher dealing with sequences every day, there’s something worth saving for you in this article.


I. First, understand: what exactly are we aligning in protein multiple sequence alignment?

Many people perform MSAs just because "everyone else is doing it," without really thinking about what we’re actually aligning.


Essentially, a protein MSA aligns evolutionarily equivalent sites in homologous sequences. In other words, it lines up positions in different protein sequences that originated from the same ancestral amino acid.


Why do we do this? Because once aligned, we can answer a series of key questions:

- Which sites are conserved? Highly conserved sites usually indicate strong evolutionary constraints and may relate to catalysis, binding, folding, or structural stability—for example, an enzyme’s active site or key residues in a substrate-binding pocket.

- Which sites are co-evolving? Two sites showing statistical coupling in evolution may hint at spatial proximity, allosteric interactions, or shared functional constraints.

- Which family does this sequence belong to? With alignment and tree building, we can classify the sequence.

- Where are the functional sites? Combined with structural information, alignment results can help locate potential functional residues.

- How can we improve protein design? Results from conservation and co-evolution analysis are crucial for directed evolution and rational design.


You could say that MSA is the starting point for almost all protein sequence analyses. Sequence annotation, function prediction, homology modeling, evolutionary analysis… almost all downstream analyses are built on a high-quality multiple sequence alignment. This is why learning how to do protein multiple sequence alignment is a fundamental skill for every bioinformatician.


II. How to do multiple sequence alignment of proteins? Core principles and mainstream methods

Multiple sequence alignment sounds simple—just line up the sequences—but the real challenge is: sequences have insertions, deletions, and length differences, so how do you decide which amino acid should align with which?

After decades of development, protein multiple sequence alignment has formed several mature algorithmic approaches, each with its own advantages and suitable scenarios.

1. Progressive alignment: the most classic and commonly used approach


Three‑Step Progressive Alignment

Three‑Step Progressive Alignment

This is currently the most widely used type of algorithm. The idea is straightforward:

a. First, perform pairwise comparisons of all sequences and calculate the similarity between each pair;

b. Construct a 'guide tree' based on the similarities to determine the evolutionary closeness of the sequences;

c. Following the order of the guide tree, start aligning the sequences pair by pair from the most closely related, gradually merging all sequences into a multiple sequence alignment.


The advantage of this method is that it’s fast and scalable, suitable for routine alignments of hundreds to thousands of sequences. But it has a well-known limitation: the 'greedy' effect—errors made in the early steps will be retained and accumulate in subsequent merges, making them difficult to correct later. This is why you sometimes see obviously unreasonable gaps in an alignment and switching tools or default parameters alone rarely fixes it.


2. Iterative alignment: gradually approaching the optimal through repeated optimization

To address the problem that 'errors are hard to fix' in progressive alignment, the idea of iterative alignment is: first make a preliminary alignment, then recalculate similarities, reconstruct the guide tree, and realign repeatedly until the alignment stabilizes.


It’s basically 'do a rough alignment first, then go back and adjust,' generally giving higher quality than pure progressive alignment, but at the cost of slower computation and higher resource use.


3. Profile-based alignment: capturing conserved patterns with probabilistic models

Another approach doesn’t align sequences directly but first distills the sequence patterns of a protein family into a 'probabilistic profile' (such as a position-specific scoring matrix (PSSM) or a profile Hidden Markov Model (profile HMM), where profile HMMs explicitly model site conservation as well as insertion/deletion states), then aligns sequences to the profile or compares profiles to each other. This method is especially effective for aligning and searching distant homologs.


Its advantage is better capturing the 'conserved patterns' of a protein family, often producing higher quality alignments for sequences with more divergence. Anyone who has done distant homology searches will be familiar with this idea.


4. Structure-based alignment: using 3D information to correct 1D alignments

If the 3D structures of homologous proteins are available, structural information can be integrated into the alignment process—since structure is more conserved than sequence, structurally aligned positions are more likely to be evolutionarily equivalent. Of course, this requires available structural information and usually involves heavier computation, suitable for small, high-precision alignment tasks.


Recently, deep learning-based alignment methods have also emerged, leveraging pre-trained protein models to capture deep evolutionary patterns, performing particularly well for distant homolog alignments.


III. 5 common pitfalls in protein multiple sequence alignment that 90% of people fall into

Anyone can use the tools, but the quality of the results can vary greatly. Here are 5 common mistakes—how many have you made?


Five Common Traps

Five Common Traps

Pitfall 1: More sequences are better?

Many people think that in multiple sequence alignment, the more sequences, the more information you get. So they immediately throw in thousands of sequences.

Actually, that’s not necessarily true. Too many sequences, especially a lot of redundant, fragmented, or low-quality sequences, can actually lower the alignment quality and drown out the signal at conserved sites with noise. Before aligning, taking a step to remove redundancy, get rid of sequences that are too short or too long, and filter out low-quality sequences often improves alignment quality much more than just switching algorithms.

Suggestion: Based on your research purpose, stick to a few dozen to a few hundred good sequences. This is usually the most cost-effective range.


Pitfall 2: Default parameters are the best?

Many people just open the tool, import sequences, hit "start," and let the default parameters run.

But in reality, every parameter in the alignment tool has its purpose—gap penalty, gap extension penalty, choice of substitution matrix—all significantly affect the alignment result. For example, if the gap penalty is set too high, sequences will be packed tightly and sites that shouldn’t align will be forced together; if too low, there will be gaps everywhere, and the alignment will be loose.

Suggestion: At the very least, adjust the gap penalty and see how much the results change. If even a small adjustment makes a huge difference, it shows your alignment quality isn’t stable and needs further optimization.


Pitfall 3: A pretty alignment is correct?

The more uniform the colors, the higher the bars, the better the alignment? Not necessarily.

Many times, an alignment that looks "good" is because the algorithm forcibly aligned positions that shouldn’t be aligned. Especially when sequences are very different, forcing alignment can introduce errors. Alignment isn’t about looking nice; it’s about accurately reflecting evolutionary equivalence.

Suggestion: Use multiple tools based on different principles to cross-check the consistency of results. Positions that everyone aligns can be trusted; positions with large differences should be questioned.


Pitfall 4: All positions can be aligned?

Many beginners assume that every position in every sequence should have a corresponding aligned site.

But in reality, for sequences with large differences or sequences with inserted/deleted domains, many positions simply don’t have evolutionary equivalents—they might not even be "the same position." Forcing alignment can create false signals. A good alignment isn’t afraid of leaving blanks.


Pitfall 5: Alignment is one-time?

Many people do one alignment and directly move on to downstream analysis.

But multiple sequence alignment is often an "iterative optimization" process: first do an initial alignment, remove sequences with poor quality based on the results, adjust parameters and rerun, or even manually correct obvious errors in some regions. Especially when analyzing key functional sites, spending time manually checking and correcting the alignment is absolutely worthwhile.


IV. How to Evaluate the Quality of a Multiple Sequence Alignment?

Since alignments can easily go wrong, how do we know whether the alignment we've done is actually good?

Currently, common evaluation approaches mainly fall into a few directions:


First, the cross-validation method. Use two or more alignment methods based on different principles, and compare the results. If most positions match, it means those positions are reliably aligned; if the results differ a lot at certain positions, you need to be cautious.


Second, the structure-based validation method. If your sequences include homologous proteins with known 3D structures, you can use structural alignment to assess the accuracy of the sequence alignment. Positions that align structurally should also be aligned in the sequence, which indicates high-quality alignment. This is a very reliable evaluation method, but it requires having homologous structures with sufficient resolution, and the structures themselves need to be properly aligned.


Third, judging by conservation and reasonableness. Truly functional conserved sites usually have explanations in structure and function — for example, they might be in the active site, substrate-binding pocket, or disulfide bond positions. If your alignment shows a "highly conserved" site that is completely exposed on the surface and has no known function, you should be skeptical.


Of course, the most fundamental evaluation criterion is whether the functional conclusions drawn from the alignment can be experimentally verified. This is also why multiple sequence alignment always needs to be combined with wet-lab experiments — it’s the starting point of research, not the end.


V. In the AI Era, How Can Protein Multiple Sequence Alignment Have a New Approach?

Traditional multiple sequence alignment methods are essentially about "finding alignments based on sequence similarity." But when sequences are highly divergent or structural information is complex, relying solely on sequence similarity is not enough.


The emergence of AI large models is bringing a whole new solution to this classic problem. During pre-training, these models have seen astronomical numbers of protein sequences and learned patterns of sequence conservation, co-evolution, and even structure-function relationships — they are not just "comparing" sequences, they are "understanding" the evolutionary and functional relationships between sequences.


AI Architecture From Sequence to Understanding

AI Architecture From Sequence to Understanding

In this field, the MatwingsVenus™ (Xiaowu™) agent is a typical example.

In protein multiple sequence alignment and downstream analysis, MatwingsVenus™ (Xiaowu™) uses an AI-driven large protein model at its core, providing full-chain intelligent support from alignment construction, conserved site analysis, co-evolution site prediction to functional site interpretation. Compared to traditional purely sequence-based alignment tools, the advantage of MatwingsVenus™ (Xiaowu™) is that it doesn't just mechanically align sequences. It combines evolutionary patterns of protein families with structure-function knowledge to more accurately identify functionally meaningful conserved and co-evolving sites, greatly reducing false positives and increasing the downstream value of alignment results.


On the tool and data side, the MatwingsVenus™ (Xiaowu™) platform integrates a protein sequence database with tens of billions of labeled sequences, over 200 protein function analysis modules, as well as intelligent alignment and conservation analysis tools, allowing researchers to quickly build their own sequence analysis workflows. At the same time, the platform can provide customized analysis services for in-depth studies of specific protein families, from building high-quality multiple sequence alignments, mining conserved and co-evolution sites, to validating functional sites—truly realizing 'you give me a protein family, I give you a functional site map,' turning protein multiple sequence alignment from 'getting sequences in order' to 'understanding them.'


VI. Final Summary: How to Do Protein Multiple Sequence Alignment – Remember These 5 Sentences

Finally, let's condense the core of this article into 5 sentences to help you build a clear understanding:

a. Think about why you are aligning first, then do the alignment. Alignment is a means, not an end. Clarifying your downstream analysis needs helps you choose the right method and parameters.

b. Sequence quality is more important than quantity. Perform quality control before alignment—remove redundancy, fragments, and low-quality sequences—to immediately improve alignment quality.

c. Don’t blindly trust a single tool or default settings. Switch tools, adjust parameters, and cross-check to know how reliable your alignment results truly are.

d. Alignment isn't the endpoint, understanding is. A nice-looking alignment doesn’t equal a correct alignment, and a correct alignment doesn’t equal a functionally meaningful one—you must always return to the biological question.

e. AI is changing the game. Traditional methods align sequences; AI methods read functions—thanks to the power of AI large models, multiple sequence alignment is moving from 'aligning characters' to 'interpreting functions.'


How do you do protein multiple sequence alignment? There’s no standard answer, but the methodology keeps evolving. From progressive to iterative, pure sequence-based to structure-informed, and now AI-driven large models—the tools and methods change, but the essence of the question—deciphering evolution and function from sequences—remains one of the most fascinating core questions in bioinformatics and protein engineering. Agents like MatwingsVenus™ (Xiaowu™) are bringing us closer to that answer.