Tutorials · updated 2026-11-23

Search for similar protein structures with Foldseek online

Foldseek compares the shape of a protein chain with the shapes of other chains, so it can list relatives that a sequence search misses. Here is how to run it on this platform through an AI assistant, which part of the PDB it searches (a sample, stated plainly), how to read each hit, and the controls with known answers. The example is a real run. You can read all of it without signing up.

What you will do

  1. Search one protein chain of a structure against a database of PDB chains by its 3D shape, not its sequence.
  2. Read each hit: three TM-scores, the identity, the coverage, the e-value and the aligned region.
  3. See what the database holds and leaves out, and the controls we measured with known answers.

Step 1: run it

Structure search is offered through an AI assistant: connect it once, then ask in plain language. It is free, runs on our CPU and takes seconds (1.1 seconds for the example below). You give the structure from one of three sources: a UniProt accession (the tool fetches its model from the AlphaFold database), one of your own folds on this platform, or coordinates you paste. Coordinates are fetched on our side, so none pass through the conversation when you use the first two. You choose the chain; the first protein chain is used if you do not, and only the first model is read. The program is Foldseek, release 10-941cd33, run unmodified. See the workbench page for the prompt and the paper.

“Using rnafold, search the PDB for structures similar to chain A of this fold, and tell me, for each hit, the TM-score normalised by my chain and how much of my chain the alignment covers.”

The database is a sample of the PDB

This is the most important limit, so it comes before the result. The search does not cover the whole PDB. It covers 18,519 PDB entries (102,677 protein chains), a snapshot from 2026-11-20. They were chosen as follows: the PDB’s sequence clusters at 30 percent identity give 40,085 entries that are the first listed member of a cluster; a random sample of 20,000 of those (fixed seed) was taken, 22 fixed entries were added so the controls below have known answers, entries whose compressed file is over 1 MB (1,464 very large complexes) were left out, and 39 entries could not be fetched. The sample holds 46.2 percent of the cluster representatives.

  • What that means: a structure with no hit here is not shown to be new, because only this sample was searched. A close relative may be in the PDB and not in the sample.
  • A hit’s rank depends on which entries were sampled. Of several near-identical structures of one protein, the sample holds some and not others.
  • Very large complexes cannot be hits. Every result states the snapshot date and the counts, so you can see which database an answer came from.
  • The tool can run on the whole cluster-representative set, which takes hours to build. It has not been built here.

Example: the alpha chain of human hemoglobin

We called the tool through the live endpoint on 2026-11-23 with the coordinates of PDB entry 1A3N (downloaded from the RCSB PDB that day), chain A, 141 residues. 13 hits are listed, one chain per entry, from 31 alignments at an e-value of at most 0.001. Hits are in the order Foldseek returned them; nothing is re-ordered or scored by us, and that order is not a ranking of how related the proteins are. The query’s own entry is in the database on purpose (it is one of the fixed entries), so the first hit is the query finding itself.

#Entry and chainTitle in the PDBTM by my chainTM by the hitIdentity %My chain covered %AlignedRMSD Åe-value
11A3N ADEOXY HUMAN HEMOGLOBIN1.0001.000100.0100.01410.012.0e-20
24HHB ATHE CRYSTAL STRUCTURE OF HUMAN DEOXYHAEMOGLOBIN AT 1.74 ANGSTROMS RESOLUTION0.9960.996100.0100.01410.342.1e-18
31HHO ASTRUCTURE OF HUMAN OXYHAEMOGLOBIN AT 2.1 ANGSTROMS RESOLUTION0.9870.987100.0100.01410.671.6e-17
42DHB ATHREE DIMENSIONAL FOURIER SYNTHESIS OF HORSE DEOXYHAEMOGLOBIN AT 2.8 ANGSTROMS RESOLUTION0.9880.98887.2100.01410.605.1e-15
512RH CStructure of turkey hemoglobin A covalently bound with epigallocatechin gallate0.9500.97170.897.21370.804.5e-14
61UMO BThe crystal structure of cytoglobin: the fourth globin type discovered in man0.8820.81428.899.31492.017.4e-8
71MBN AThe stereochemistry of the protein myoglobin0.9100.84325.399.31461.751.3e-6
8101M ASPERM WHALE MYOGLOBIN F46V N-BUTYL ISOCYANIDE AT PH 9.00.9100.83825.399.31461.852.8e-6
91OJ6 DHuman brain neuroglobin three-dimensional structure0.8030.75922.192.91402.399.3e-5
101CQX ACrystal structure of the flavohemoglobin from Alcaligenes eutrophus at 1.75 A resolution0.7570.29420.199.31443.121.6e-4
112GTL GLumbricus Erythrocruorin at 3.5A resolution0.7980.75919.797.21472.547.1e-4
124B4Y Acrystal structure of the neuroglobin from the photosymbiotic marine acoel Symsagittifera roscoffensis0.7530.71816.295.01483.275.0e-4
131DM1 A2.0 A CRYSTAL STRUCTURE OF THE DOUBLE MUTANT H(E7)V, T(E10)R OF MYOGLOBIN FROM APLYSIA LIMACINA0.8010.77718.7100.01492.919.6e-4

Foldseek aligned chain A of the structure (141 residues) against the PDB chains in a local database and returned 31 alignment(s) with e-value at most 0.001; 13 are listed, in the order Foldseek gave them. TM-scores are given normalised by the query, by the hit and by the aligned length. 8 of the 13 hits have a sequence identity under 50 percent over the aligned part, and their TM-score by your chain lies between 0.753 and 0.910: a similar backbone with a different sequence, which a shape search lists and a comparison of sequences at that identity may not. The titles are the PDB’s own words. The tool does not say that any hit is related to your chain; it lists alignments of a backbone.

The tool also reports what it did not use: HEM (a ligand written as a heterogen record) is not part of the query. Only the backbone of your chain is searched, not any ligand it holds.

How to read a hit

  • Three TM-scores, each named. TM by your chain divides by your chain’s length, TM by the hit by the hit’s length, and the third by the aligned length. A short hit that matches part of your chain can score high on the third and low on the first. Foldseek’s TM-score is its own approximation and can exceed 1 slightly (up to 1.022 against itself in our controls), so the third is not a bounded TM-score of the pair.
  • Identity and coverage. Identity is measured over the aligned part only. Read it with the coverage of your chain and of the hit: a high identity over a small part is a small match.
  • The e-value of a hit depends on the size of the database searched, which is a sample, so it is the program’s number for this database and not a general one.
  • The aligned region of your chain comes back in the residue numbers of your file, insertion codes kept.

What the controls say

Before the tool was exposed we ran it on cases where the answer is known, through the same code a call uses, so the figures include our chain reading, renumbering and parsing and not only the program. They are read from the measurement file (941cd33 is the program build).

Each structure finds itself

QueryResiduesRank of itselfTM by query / by hit / by alignmentIdentity %e-valueSeconds
1LYZ12911.000 / 1.000 / 1.008100.01.0e-281.27
1CRN4611.000 / 1.000 / 1.022100.02.1e-91.17
1EMA22111.000 / 0.982 / 1.00598.22.2e-471.69
1RNH14811.000 / 0.980 / 1.00798.07.2e-341.27
2LZM16411.000 / 1.000 / 1.006100.01.6e-281.53
3PTB22311.000 / 1.000 / 1.005100.01.6e-441.57

The query is the PDB file and the database holds the mmCIF file of the same entry, so this also checks that two files of one structure agree. Where the identity is below the top, the entry holds modified residues (a chromophore, selenomethionine) as chain residues that a query read from the file’s ATOM records does not. A wiring error such as a swapped normalisation, a shifted region or a wrong chain would show here.

Point mutants find their parent, but not always first

3 structures of T4 lysozyme that differ from the wild type at a few residues were searched against the wild-type entries in the database. The wild type was found every time, with TM by the query between 0.9925 and 0.9998, but at ranks 1 to 5, not always the first: the order is Foldseek’s own, other mutants of the same protein sit within a few percent of each other, and the tool does not re-rank by TM-score.

Relatives with low sequence identity

Searching the hemoglobin alpha chain found the beta chain (TM by query 0.923) and sperm-whale myoglobin (1MBN, TM by query 0.910) with a sequence identity of 25.3 percent over 99.3 percent of the query, at an e-value of 1.3e-6. These are well-known relatives that are in the database, so this shows the tool can return them, not that it finds a remote relative that nobody knows of.

Unrelated structures and a non-protein

  • In the full database, at the default e-value, a trypsin query did not return ubiquitin and a ubiquitin query did not return trypsin.
  • In a database of five files at the most permissive e-value (10), the trypsin query returned itself and 2 short alignments of 12 and 10 residues, with TM by query 0.040 and 0.043. Ubiquitin was not returned at all. A full TM-score program superposes the same two proteins with TM 0.179 (by trypsin) and 0.367 (by ubiquitin) over 54 residues. The ubiquitin query returned itself and one alignment of 15 residues at TM 0.185. So when nothing is related, the only extra alignments are short, with low TM-scores and large e-values.
  • A random walk of 120 points spaced like consecutive alpha carbons, which is not a protein, returned 0 hits and 0 alignments.

Moving the structure changes nothing that matters

A structure rotated and shifted in space and searched again gave the same entries and chains in the same order and identical TM-scores and aligned lengths for all 7 hits (largest TM difference 0.0000). It is not bit-identical: e-values moved by up to 35 percent and RMSDs by up to 0.036 Å, because the rotated file is written with three decimals like any PDB file.

Against a full TM-score program, and odd inputs

  • For 3 hits of the hemoglobin query, Foldseek’s TM-scores were within 0.0105 (by query) and 0.0077 (by hit) of those a full TM-score program gives, all slightly higher. Three pairs of closely related chains say nothing about poorly matching or very short alignments.
  • Residues the query does not hold are listed, not hidden: CRO 66, MSE 78, MSE 88, MSE 153, MSE 218 of a fluorescent protein are not in the 221 residues searched, and residues 20 and 21 with a missing backbone atom are named with the reason. A file with two models is read as its first model only.
  • A search took 1.37 to 1.62 seconds in the timed controls.

What this example does not show

  • The database is a sample of the PDB. A structure with no hit is not shown to be new, and the rank of any hit depends on which entries were sampled.
  • A similar backbone does not mean the proteins are related or share a function. The tool reports facts about an alignment and never a verdict.
  • The example is a well-studied family whose members are in the database. Sensitivity on weak, novel or de novo folds was not measured, and the null controls are small.
  • The TM-score comparison covers three pairs of closely related chains. The third normalisation is not a bounded TM-score of the pair and should not be quoted as one.
  • One chain is searched, not a complex, and not a nucleic acid. The model confidence of a predicted structure is not taken into account.
  • These results are for one machine, one build of the program and one database snapshot. Another build or snapshot would give different e-values and may give a different order.

Run it on your own structure

Structures you give are searched on our server in the EU. Signing up is needed to run; reading results is not.

The program, version, paper and licence are listed on the structure search page.