Use case

Pairwise sequence alignment

Compare two sequences directly, preserve the aligned strings and scoring settings, and separate correspondence from similarity scores.

Pairwise sequence alignmentRead-only preview

Inputs

1 required

Methods

2 connected

  1. 01MAFFT · Pairwise Alignment
  2. 02StringZilla v5 · Global Score

MAFFT returns aligned sequences while StringZilla independently returns a Needleman–Wunsch global score; the workflow keeps those outputs distinct.

Use this template

What is pairwise sequence alignment?

Pairwise sequence alignment is the process of arranging two biological sequences so corresponding residues or nucleotides appear in shared positions. An explicit substitution and gap model determines the alignment path and score. Those outputs are related but not interchangeable: a score ranks similarity under one parameterization, while the aligned strings expose matches, substitutions, insertions, deletions, and terminal gaps.

Use pairwise alignment when the scientific question concerns one sequence versus one other sequence: two alleles, an engineered construct and its parent, two domains, or a query and a known homolog. Choose global or local behavior according to whether the full lengths or only the best-matching region should correspond.

Check molecular type, orientation, sequence boundaries, gap penalties, and substitution model before interpreting percent identity. The same pair can receive different alignments and scores under different settings, especially around repeats, low-complexity regions, long insertions, and weakly conserved termini.

When to use pairwise sequence alignment

  • Best fit. Two homologs, alleles, constructs, or domains
  • Required input. Exactly two compatible FASTA sequences and a global-versus-local decision

Benefits of pairwise sequence alignment

  • Clear correspondence. Makes residue correspondence explicit
  • Connected evidence. Supports direct construct comparison
  • Reusable output. Produces compact reviewable outputs

Primary limitations

  • Method dependence. Results depend on scoring choices
  • Input dependence. Repeats can create alternative alignments
  • Interpretive limit. Similarity does not prove shared function

Pairwise sequence alignment methods

Dynamic-programming methods optimize a defined objective across a score matrix. End-to-end algorithms penalize terminal differences, while local algorithms allow the comparison to begin and end inside the sequences.

Progressive multiple-alignment programs can align a two-record FASTA, but their output should not be described as an exact Needleman–Wunsch path unless that is the algorithm actually run. Preserve method names and settings with every result.

Pairwise sequence alignment applications

Pairwise sequence alignment is best suited to two homologs, alleles, constructs, or domains. The result can support comparative review, sequence curation, annotation, profile construction, phylogenetic preparation, structural interpretation, or experimental planning when those downstream uses match the alignment scope.

Keep the alignment as evidence rather than a conclusion. Downstream claims should remain tied to sequence provenance, coverage, method agreement, relevant biological context, and any independent structural, evolutionary, or experimental support.

How to run pairwise sequence alignment online

Use the connected workflow to keep input records, method settings, native outputs, warnings, and exports together. Review every stage before using the result for annotation, phylogeny, variant interpretation, or experimental decisions.

  1. Define scope. Decide whether the full sequences or only a shared region should be compared.
  2. Prepare the pair. Verify molecule type, orientation, headers, boundaries, and ambiguous symbols.
  3. Set scoring. Record the substitution and gap settings rather than relying on an unlabeled score.
  4. Run comparison. Generate aligned strings and, when useful, an independent pairwise score.
  5. Interpret and export. Inspect identity, coverage, gaps, terminal effects, and biologically important positions.

How to interpret pairwise sequence alignment results

Report identity together with aligned length, coverage, gap count, and the treatment of ambiguous residues. Identity calculated over the aligned region answers a different question from identity divided by either full sequence length.

Inspect substitutions at known motifs or functional sites directly. A high overall identity can hide a critical local change, while a modest global identity can coexist with a strongly conserved domain.

How pairwise sequence alignment works

MAFFT returns aligned sequences while StringZilla independently returns a Needleman–Wunsch global score; the workflow keeps those outputs distinct.

  1. Define scope. Decide whether the full sequences or only a shared region should be compared.
  2. Prepare the pair. Verify molecule type, orientation, headers, boundaries, and ambiguous symbols.
  3. Set scoring. Record the substitution and gap settings rather than relying on an unlabeled score.
  4. Run comparison. Generate aligned strings and, when useful, an independent pairwise score.
  5. Interpret and export. Inspect identity, coverage, gaps, terminal effects, and biologically important positions.

Inputs and outputs

Check formats before running, then inspect and download the result from every workflow step.

Inputs

  • Alignment input. FASTA PDB mmCIF Two protein, DNA, or RNA sequences in FASTA format.

Outputs

  • Alignment outputs. FASTA CSV TSV PDB JSON Aligned FASTA plus method-native score tables and downloadable settings.

Frequently asked questions

Start with a workflow you can inspect and edit

Add your inputs, review the settings, and keep every structure, score, table, and file connected to the step that produced it.

Open workflow