# TM-align vs Dali vs Foldseek vs US-align

> TM-align and US-align superimpose two structures and report a TM-score, Dali searches for distant relatives by comparing distance matrices, and Foldseek searches millions of structures in seconds. See what each one optimizes, what its score means and where the same pair gets a TM-score of 0.48 from one setting and 0.91 from another.

## Which structure comparison tool should you use?

Use TM-align or US-align when you already have the two structures and want to know how alike they are; US-align is the same algorithm extended to complexes, RNA and DNA, and reordered chains. Use Foldseek to search a database of millions of structures in seconds. Use the Dali server when you want one of the most sensitive searches for distant relatives and can wait minutes to hours for it.

The catch is that each can give a confident answer that depends on a setting you never chose. Concanavalin A and peanut lectin share the legume lectin fold, but concanavalin A's chain starts in the middle of it. TM-align at its defaults scores the pair (PDB [3CNA](https://www.rcsb.org/structure/3CNA) and [2PEL](https://www.rcsb.org/structure/2PEL)) at 0.48 over 118 residues, just under the 0.5 that usually means "same fold". Its circular permutation mode gives 0.91 over 228 residues, from the same two files (Figure 1).

![Two strip diagrams of concanavalin A (237 residues) above peanut lectin (232 residues). In the sequential alignment, concanavalin A residues 3 to 118 pair with peanut lectin residues 116 to 232 and the rest is unaligned. In circular permutation mode, residues 123 to 237 also pair with peanut lectin 1 to 113 and the bands cross.](/images/guides/tm-align-vs-dali-vs-foldseek-vs-us-align/permutation-strips.webp "**Figure 1. The same pair aligned sequentially and with circular permutation allowed.** Chain A of concanavalin A (3CNA) and peanut lectin (2PEL), N to C left to right on one scale; teal marks aligned residues. TM-scores are normalized by peanut lectin. We ran US-align built from commit 1fa25a9 (version 20260527); TM-align built from the same source gave identical numbers.")

The four tools differ in what they compare (superposed coordinates, internal distances or a structural alphabet), in the score they print and in whether they compare two structures or search a database. Those three things decide which one fits a question, and they also decide how each one fails.

## TM-align fits one rigid superposition

TM-align, published by Zhang and Skolnick in 2005, looks for the residue pairing and the single rigid superposition that give the highest [TM-score](/guides/tm-score-vs-rmsd). It starts from secondary structure and threading guesses, then alternates superposition and dynamic programming until the alignment stops changing. In the original benchmark it was about 20 times faster than Dali and ranked first of four programs by average TM-score.

It prints two TM-scores, one normalized by each structure's length, with the number of aligned residues, the [RMSD](/guides/rmsd) over them and their sequence identity. That makes it what most people mean by a TM-score calculator, and it needs no shared residue numbering.

Its limit is the word "rigid". One superposition cannot fit two domains that moved relative to each other, and residue order has to run the same way in both chains. A `-cp` option for circular permutations was added in 2019, according to the change log in its source, but it is off by default. The licence allows any use, including commercial, as long as the notices are kept.

## US-align extends TM-align to complexes and nucleic acids

US-align comes from the same group and keeps TM-align's objective, the TM-score, while widening what it can align: protein and RNA or DNA chains, whole complexes with chain matching, and mixed protein and nucleic acid assemblies. The TM-align page now points readers to it as the extension of TM-align. A `-mm` option chooses the mode:

- `-mm 1` aligns two multi-chain complexes and works out which chain matches which.
- `-mm 3` handles circular permutations, and `-mm 5` and `-mm 6` allow fully and semi non-sequential alignments.
- `-mm 4` builds a consensus alignment of several structures.
- `-mm 7`, added in August 2026, is a flexible alignment with hinges. The 2026 Nature Protocols paper still described US-align as not designed for flexible alignment, so this mode is newer than any published description of it.

For two single protein chains, the default mode gave us exactly TM-align's numbers, on the lectin pair and on hen against T4 lysozyme (1LYZ, 2LZM), both built from US-align commit 1fa25a9. On these two pairs the choice made no difference. An alignment typically takes under a second, and the licence is the same as TM-align's. The [US-align tool on ProteinIQ](/app/usalign) offers these modes in its form, circular permutation included.

## Dali compares distance matrices, not superpositions

Dali, from Holm and Sander, never superimposes the structures while it aligns them. It describes each protein by the distances between all its Cα atoms, breaks that matrix into small contact patterns of six residues against six, and searches for the residue pairing that preserves the most internal distances. The score is elastic: a deviation counts relative to the distance it changes, so a 1 Å shift between residues 20 Å apart costs less than the same shift between neighbours.

Because it compares distances within each structure, Dali does not care how domains are oriented, so two conformations of a hinge protein still look alike to it. The 1993 method could align segments in any order; the current version is constrained to sequential alignments, so it reports no circular permutations, and it ignores similarities spanning more than one chain.

Dali's score is a Z-score, which says how far a match sits above what unrelated structures of that size reach; it is a measure of significance, not of geometric closeness. The cutoff for similarity is Z = 2, and the Z-score depends on protein size, so compare Z-scores only between hits of similar length. Whether a match means common ancestry, Holm writes, depends on wider context. A Z-score cannot be converted into a TM-score or an RMSD.

The [Dali server](http://ekhidna2.biocenter.helsinki.fi/dali/) searches the PDB, a 25% identity subset of it and AlphaFold Database models, and compares up to 10 structures pairwise or 64 all against all. It is free with no login, but a PDB search takes upwards of 10 to 15 minutes before any queue. The standalone DaliLite v5 is GPLv3, though the old DSSP program bundled with it is licensed for academic use.

On fold detection, Holm reported that DaliLite beat TM-score based methods at every level of his benchmark. Like every head-to-head comparison in this article, that one was run by the authors of one of the tools.

## Foldseek turns structure into a sequence

Foldseek, from the Söding and Steinegger groups, describes each residue by its geometry relative to its closest neighbour in space and assigns it one of 20 states, the 3Di alphabet, so a structure becomes a string that sequence search machinery can scan. The default is a local Smith-Waterman alignment of the 3Di and amino acid strings; TM-align and LoLalign modes are options.

The speed changes what is possible. On SCOPe domains, Foldseek ran more than 4,000 times faster than TM-align and Dali. For one 942-residue query against the 2021 AlphaFold Database, Dali took 10 days, TM-align 33 hours and Foldseek 6 seconds. The cost is some sensitivity: Foldseek found 86% as many true relatives as Dali, 88% as many as TM-align and 133% as many as CE.

![Horizontal bar chart on a logarithmic axis of the time to search one 942-residue structure against AlphaFold DB v1: Dali 10 days, TM-align 33 hours, Foldseek 6 seconds](/images/charts/structure-search-time-dali-tmalign-foldseek.webp "**Figure 2. One database search, three programs.** The SARS-CoV-2 RNA polymerase (PDB 6M71, chain A) searched against the 365,198 models of AlphaFold DB v1, as reported by the Foldseek authors. Log scale. Source: van Kempen et al. (2024).")

Hits come with an E-value and a probability that query and target are homologous. Robert Edgar, who wrote the competing aligner Reseek, found Foldseek E-values underestimated by several orders of magnitude, so treat them as a ranking, not an error rate.

Foldseek-Multimer extends the search to complexes, 1,000 to 10,000 times faster than US-align in database search. Foldseek is GPLv3 and has a public search server. The [Foldseek tool on ProteinIQ](/app/foldseek) runs searches, pairwise comparisons and clustering.

## One lectin pair aligned two ways

Concanavalin A is the textbook natural circular permutation. Cunningham and colleagues found in 1979 that the β chain of favin, another legume lectin, matches concanavalin A from residue 120 to its C-terminus and then on through its first 69 residues. The plant cuts the precursor and ligates the pieces in a new order. We compared it with peanut lectin, another legume lectin (2PEL, chain A, 232 modelled residues), using chain A of the concanavalin A entry 3CNA (237 residues).

TM-align at its defaults paired 118 residues at 1.63 Å, all but two of them in one block: the first half of concanavalin A (residues 3 to 118) against the second half of peanut lectin (116 to 232), TM-score 0.480 normalized by peanut lectin. Having used up peanut lectin's C-terminal half, a sequential alignment cannot go back for the rest. US-align's default mode printed the same numbers. In circular permutation mode (TM-align `-cp` or US-align `-mm 3`) both programs paired 228 residues at 1.93 Å, and the TM-score rose to 0.909, as Figure 1 shows.

The cut point we found, between concanavalin A residues 118 and 123, sits where Cunningham placed it from sequence alone. The sequences are 41% identical across the 228 permuted pairs, so this is not a pair that sequence search would miss. It is a topology trap: the fold is the same, and the residue order breaks any aligner that assumes it runs the same way in both chains.

We did not run Dali or Foldseek on this pair. Both align residues in order: Dali by design in its current version, and Foldseek in its default Smith-Waterman and its TM-align modes. A single sequential alignment can pair at most one half of this protein, so neither can report the full match in one alignment, however significant the half they find.

The [PDB viewer by ProteinIQ](/app/pdb-viewer) reproduces the first result in the browser. With 3CNA (as its asymmetric unit, under `Assemblies`) and 2PEL open, `Superpose` with `TM-align`, moving 3cna onto 2pel chain A, gave 1.72 Å over 118 residues and a TM-score of 0.480 (Figure 3). The viewer runs its own TM-align implementation, which pairs the same 118 residues at 1.72 Å instead of 1.63 Å, and with no permutation mode it gives the sequential answer.

![The PDB viewer by ProteinIQ with concanavalin A (green) superposed onto peanut lectin chain A (orange) by TM-align. The Superpose menu shows the TM-align method, Move 3cna and Onto 2pel chain A, and the side panel lists RMSD 1.72 Å, TM-score 0.480, 118 residues aligned.](/images/guides/tm-align-vs-dali-vs-foldseek-vs-us-align/concanavalin-peanut-lectin-viewer-tm-align.webp "**Figure 3. The sequential superposition in the PDB viewer by ProteinIQ.** 3CNA in its asymmetric unit and 2PEL with waters and chains B to D hidden, fitted with Superpose and the TM-align method. One half of each β-sandwich overlays well; the other half is left out of the 118 aligned residues.")

To see the permutation itself, we saved the `-mm 3` superposition from US-align and opened it in the viewer, coloured from blue at the N-terminus to red at the C-terminus with `spectrum count, rainbow, polymer`. The strands overlay, but the colours do not: the blue start of concanavalin A lies on the green middle of peanut lectin (Figure 4).

![The PDB viewer by ProteinIQ showing concanavalin A superposed onto peanut lectin in circular permutation mode, both coloured as a rainbow from N-terminus to C-terminus. The β-sheets overlay closely, but strands of different colour lie on top of each other.](/images/guides/tm-align-vs-dali-vs-foldseek-vs-us-align/concanavalin-peanut-lectin-circular-permutation.webp "**Figure 4. The permuted superposition, coloured N to C.** Concanavalin A chain A moved by the US-align -mm 3 rotation and opened in the PDB viewer by ProteinIQ as a file, next to peanut lectin chain A. Matching strands carry different colours because concanavalin A's chain starts halfway along peanut lectin's.")

The pattern to watch for is a TM-score near 0.5 where the aligned block covers one end of one chain and the opposite end of the other. Rerun in permutation mode before concluding that two proteins have different folds.

## How to choose by question

The right first tool depends on whether you have two structures or one query, whether the chains are single proteins, and how far apart the structures are (Table 1).

  <caption><strong>Table 1. Which structure comparison tool to start with.</strong> The second column names the program that answers the question directly; the third is the check that catches its typical failure. Sources: the papers and documentation cited in each section above.</caption>
  <thead>
    <tr>
      <th scope="col">Your question</th>
      <th scope="col">Start with</th>
      <th scope="col">Then check</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>How far apart are two models of the same protein?</td>
      <td>[RMSD Calculator](/app/rmsd-calculator), which pairs residues by number</td>
      <td>The share of residues matched, and a per-residue profile for one moving loop</td>
    </tr>
    <tr>
      <td>Do two structures share a fold?</td>
      <td>[US-align](/app/usalign) or TM-align</td>
      <td>Both normalizations, the aligned length and which residues aligned</td>
    </tr>
    <tr>
      <td>Is a low TM-score hiding a reordered chain?</td>
      <td>US-align `-mm 3`, or `-mm 5` and `-mm 6` for non-sequential matches</td>
      <td>Whether the aligned block sits at opposite ends of the two chains</td>
    </tr>
    <tr>
      <td>Do two complexes or RNAs match?</td>
      <td>US-align `-mm 1` or the RNA mode</td>
      <td>The chain mapping it chose</td>
    </tr>
    <tr>
      <td>What known structure, experimental or predicted, looks like mine?</td>
      <td>[Foldseek](/app/foldseek)</td>
      <td>TM-scores of the top hits by US-align, since E-values are only a ranking</td>
    </tr>
    <tr>
      <td>Does a distant relative exist that Foldseek missed?</td>
      <td>Dali server</td>
      <td>Z above 2, compared only between hits of similar length</td>
    </tr>
  </tbody>

Write down the program, version, mode and normalization with every score you report. A TM-score of 0.48 and one of 0.91 for the same pair are both correct outputs, and only the settings tell a reader which question each one answers. The usual reporting rules for TM-score and RMSD apply on top of this, and the commands to [superimpose protein structures](/guides/superimpose-protein-structures) in PyMOL, ChimeraX or the browser are the same whatever program chose the pairs.

## Structure comparison tools on ProteinIQ

Fetch or upload the structures, compare a pair or search a database, then look at the result in 3D. [Protein structure alignment](/use-cases/protein-structure-alignment) and [multiple structure alignment](/use-cases/multiple-protein-structure-alignment) put these tools in order for common tasks.

- [US-align](/app/usalign): align two chains, complexes or nucleic acids, including circular permutation and non-sequential modes
- [Foldseek](/app/foldseek): search structure databases, or compare and cluster your own set
- [RMSD Calculator](/app/rmsd-calculator): measure RMSD against one reference when residue numbering matches
- [pyRMSD](/app/pyrmsd): compute every pairwise RMSD across an ensemble of the same protein
- [PDB viewer by ProteinIQ](/app/pdb-viewer): superpose structures by TM-align or sequence and read RMSD and TM-score in the browser

## Frequently asked questions

### Is US-align the same as TM-align?

US-align is the same group's extension of TM-align and uses the same TM-score objective, adding complexes, RNA and DNA, permuted and non-sequential alignments and multiple alignment. On two single protein chains its default mode gave us the same numbers as TM-align. Use US-align when anything beyond a pair of monomers is involved.

### What is a good Dali Z-score?

Dali reports matches with a Z-score above 2, which is its cutoff for similarity, and an empty result means the folds are dissimilar. The Z-score depends on protein size, so compare Z-scores only between hits of similar length. It measures significance, not distance, and cannot be read as a TM-score.

### Is Foldseek as accurate as Dali?

Not quite. On SCOPe domains Foldseek found 86% as many true relatives as Dali and 88% as many as TM-align, while running thousands of times faster. Use Foldseek to search large databases and recheck the hits that matter with US-align or Dali.

### Is the Dali server free?

Yes. The Dali server is free and open to all users without a login, and the standalone DaliLite v5 is released under GPLv3, with an old DSSP program inside that is licensed for academic use. Expect a PDB search to take 10 to 15 minutes or more.

### How do I calculate a TM-score online?

Upload the two structures to [US-align](/app/usalign), which runs the native program and reports TM-scores normalized by each structure, the RMSD and the aligned residues. When both files share residue numbering, the [RMSD Calculator](/app/rmsd-calculator) gives the RMSD over every matched residue instead of only the aligned core.
