Sequence alignment
Align two sequences, a gene family or a protein family online with Clustal Omega, MAFFT and MUSCLE5, then compare the alignments to see which columns you can trust.
More sequence alignment workflows
Tools for sequence alignment
Use these methods to prepare inputs, run the core analysis, inspect outputs, and validate the evidence described in this workflow.
Clustal Omega
Create scalable protein or nucleotide multiple-sequence alignments
MAFFT
Create configurable protein, DNA, or RNA alignments
MUSCLE5
Generate conventional or ensemble multiple-sequence alignments
StringZilla v5
Calculate pairwise global, local, or edit-distance score matrices
MUMmer4
Align genome assemblies and report coordinates and variants
USAlign
Align macromolecular structures and derive residue correspondence
FoldSeek
Find and compare structurally similar proteins
MMseqs2
Search and cluster large protein or nucleotide sequence sets
HMMER
Find homologs with profile hidden Markov models
FastTree
Estimate trees from large sequence alignments
IQ-TREE
Infer maximum-likelihood phylogenies from alignments
RAxML-NG
Run maximum-likelihood phylogenetic analysis
What is sequence alignment?
Sequence alignment is a computational method for arranging two or more DNA, RNA or protein sequences in rows so that corresponding residues share a column. Where one sequence carries an insertion or deletion, the aligner opens a gap in the other. Align human and mouse β-globin and all 147 residues fall into register without a single gap: 118 positions are identical, an identity of 80%.
The arrangement comes from a score. A substitution matrix such as BLOSUM62 rewards likely exchanges, so isoleucine opposite leucine scores better than isoleucine opposite tryptophan, while gap penalties charge for opening and extending each gap. Dynamic programming then finds the best-scoring arrangement: the Needleman-Wunsch algorithm across full lengths, the Smith-Waterman algorithm for the single best local region. The globin figures here come from our own global alignments of UniProt sequences with BLOSUM62 and the EMBOSS Needle default gap penalties.
An alignment is a hypothesis about correspondence, not proof of shared ancestry. Human β-globin and myoglobin fold into the same globin structure, yet a global alignment of the two finds only about 25% identical positions. That sits inside the 20 to 35% "twilight zone" where identity alone no longer separates true relatives from chance matches, so structure or profile evidence has to carry the argument.
When to use sequence alignment
- Find the positions where a variant, construct or ortholog differs from its reference.
- Locate conserved residues and motifs across a protein or gene family.
- Prepare an alignment for a phylogenetic tree, a profile search or a consensus sequence.
- Check whether a new sequence shares a domain with a characterized protein.
Strengths and limitations
Alignment is fast, needs nothing but sequences and produces a position-by-position record anyone can inspect. A column of identical residues across a family is often the first hint of a catalytic or binding site, and the same alignment feeds trees, profiles and structure prediction.
Every column is still an inference under one scoring scheme. Change the matrix, the gap penalties or the program and gaps can move, most often in loops, repeats and low-complexity regions. Fragments, reversed strands and a poorly chosen sequence set distort the result more than the choice of algorithm does, and similarity alone does not establish homology, function or evolutionary history.
Which sequence alignment tool to use
The right tool follows from two questions: how many sequences you have, and whether you want aligned sequences or only scores. Every tool below runs online from pasted FASTA or an uploaded file and shows its credit cost before it starts. A 1,000-residue MAFFT alignment costs 11 credits.
| What you want to do | Tool | What you get back |
|---|---|---|
| Align two sequences and see where the gaps fall | MAFFT | Aligned sequences with the native run report |
| Align three or more protein, DNA or RNA sequences | Clustal Omega | A multiple alignment, plus an optional guide tree and distance matrix |
| Measure how much an alignment depends on its guide tree | MUSCLE5 | An ensemble of alternative alignments with column confidence |
| Score every pair in a set without aligning them | StringZilla | A matrix of Needleman-Wunsch, Smith-Waterman or edit-distance scores |
| Search your own sequence collection for homologs | MMseqs2 | Hit tables with alignment coordinates, identity and E-values |
| Compare two genome assemblies | MUMmer4 | Alignment coordinates, SNPs and indels |
| Align proteins by their 3D structures | US-align | A structure-based residue alignment with TM-score and RMSD |
| Inspect an alignment you already have | MSA Viewer | Color-coded columns, conservation and a consensus sequence |
Clustal Omega is the usual first choice for a protein family and stays fast with thousands of sequences. MAFFT's L-INS-i mode is slower but more accurate when sequences share one conserved domain inside long unaligned flanks, and MAFFT can also add new sequences to an existing alignment without rebuilding it. When two programs disagree about a block, that block deserves less weight downstream.
Choosing a sequence alignment type
Alignment types answer different questions, and one comparison usually belongs to several of them at once. A protein comparison can be pairwise and global; a gene family is a multiple alignment of DNA.
Pairwise sequence alignment compares exactly two records, while multiple sequence alignment builds one shared column map across a set. Global alignment forces correspondence from end to end, which suits two full-length orthologs. Local alignment reports only the best matching stretch, so a 30-residue peptide can be matched inside a 500-residue protein without forcing 470 residues into gaps. Both are covered on the pairwise sequence alignment page.
Protein alignment scores amino acids with substitution matrices that reflect chemistry and evolution. DNA alignment needs consistent strand orientation and has only four letters, so chance matches are more common. Whole-genome alignment anchors on exact matches across millions of bases and reports rearrangements, and structure-based sequence alignment takes residue correspondence from superposed 3D structures when sequence identity is too low to trust.
How to run sequence alignment online
A good alignment depends more on the input set than on the program. These steps follow the featured workflow, which runs three aligners on the same sequences.
- Collect the sequences. Save them as one FASTA file with unique identifiers, one molecule type and, for DNA, a single strand orientation.
- Remove what does not belong. Drop duplicates, fragments much shorter than the rest and sequences with a different domain architecture, because a single outlier can pull gaps into every other row.
- Start from the default settings. Change the matrix, gap penalties or iteration strategy only for a stated reason, and record each change with the result.
- Run more than one aligner. The featured workflow sends the same FASTA to Clustal Omega, MAFFT and MUSCLE5 and keeps all three alignments.
- Compare the alignments. Blocks that every program places the same way are stable; columns that shift between programs, often in loops and termini, should be masked or treated with caution.
- Export the evidence. Keep the input FASTA, settings, every alignment and any masked columns, then pass the chosen alignment to a tree builder such as FastTree or to a profile search.
How to interpret sequence alignment results
Percent identity always needs a denominator. Our alignment of human β-globin and α-globin has 65 identical positions across 149 columns, which is 43.6% of the alignment but 45.8% of the 142-residue α chain. Programs differ in which length they divide by, so compare identities only when they were calculated the same way.
Raw alignment scores depend on the matrix, gap penalties and sequence length, so a score from one program cannot be compared with a score from another. Database search tools convert scores into E-values that account for the size of the search; an E-value of 1e-30 says a match is very unlikely to be chance, not that the two proteins share a function.
Gap placement is the least certain part of any alignment. Where an insertion sits in a variable loop, several positions are often equally good and different programs will choose differently. Treat those columns as uncertain before building a tree or transferring an annotation from one sequence to another.
How the featured workflow works
The hub workflow runs Clustal Omega, MAFFT, and MUSCLE5 from the same FASTA input so their native alignments can be compared.
- Define scope. Choose pairwise, multiple, global, local, genome, or structure-aware behavior.
- Curate sequences. Check type, orientation, boundaries, duplicates, fragments, and identifiers.
- Run three methods. Submit one FASTA set to Clustal Omega, MAFFT, and MUSCLE5.
- Compare columns. Review conserved blocks, gaps, outliers, and disagreement.
- Export evidence. Select a justified result and retain the alternatives.
Inputs and outputs for the featured workflow
Check formats before running, then inspect and download the result from every workflow step.
Inputs
Sequence evidence
FASTAPDBmmCIFProtein, DNA, or RNA sequences and, for structure-based alignment, compatible structures.
Outputs
Alignment evidence
FASTAClustalCSVTSVPDBAligned sequences, score matrices, coordinates, structures, settings, and method-native files.
Frequently asked questions
Yes, for academic use. The Free plan gives 200 credits at sign-up, refills to 100 credits each month and allows three jobs a day. A MAFFT alignment of 1,000 residues costs 11 credits, so small pairwise and family alignments fit comfortably within it.
BLAST and similar search tools find sequences in a database that locally resemble your query and report each hit as a separate pairwise alignment with an E-value. A multiple sequence alignment starts from a set you have already chosen and places all of them in one shared column map. Searching usually comes first, alignment second.
Yes, but keep native scores and alignments separate. Agreement can identify stable regions, while disagreement reveals method-sensitive columns. Raw scores from different algorithms are not automatically calibrated.
No. Alignment quantifies and represents similarity. Homology is an evolutionary conclusion supported by additional evidence such as profiles, structure, phylogeny, genomic context, and curated knowledge.
Export the original inputs, software and version, complete settings, aligned files, score or coordinate tables, excluded records, masks, manual edits, and the exact alignment used downstream.
A complete sequence alignment project is usually quote-based because providers scope sequence curation, method selection, alignment review, interpretation, and downstream analysis together. Harvard’s FY26 bioinformatics core first defines deliverables and a time estimate, then charges $180–$265 per hour; MSU lists $84–$110 per hour and expects at least eight consultant hours for custom analysis.
The total depends on sequence count and length, input cleanup, molecular type, the number of methods compared, manual review, genome scale, figures, phylogenetic or structural follow-up, and whether the deliverable includes interpretation or only alignment files.
For academic use, ProteinIQ's Free plan gives 200 credits at sign-up and refills to 100 credits each month; paid plans start at $9 per month for Lite, with Plus at $29 per month and Pro at $99 per month, which adds a commercial license. The configured sequence alignment run is estimated in credits before submission. Done-for-you analysis is scoped separately and can include data preparation, method comparison, interpretation, and a reproducible handoff.
AI answers from our docs. No sign-in needed.
Run your first analysis today
Start with 200 free credits and no installs. Upgrade when your project needs more compute.