← Workbench

AnalyseVia your AI assistantProtein

Antibody inverse folding: read a structure, sample CDRs

Free · about 6 s

Give an antibody (heavy chain, with a light chain if there is one) or nanobody structure and AntiFold reports, for every position of the variable domain, the probability it assigns to the residue that is in the structure, the rank of that residue among the 20, the five residues it would put there instead and the entropy, with IMGT position (insertion codes included), IMGT region and the residue number of your own file. On request it also draws sequences for chosen regions, the CDRs by default; only positions inside those regions can differ from the input. A probability is the model’s agreement between a residue and the backbone, not binding, stability or developability.

Try asking

Using rnafold, read this antibody structure with AntiFold, heavy chain H and light chain L, and list the CDR positions where the model would put a different residue than the one in the structure, with the IMGT positions. Then draw 5 sequences for CDR-H3 only.

Tools your assistant calls

score_antibody_on_structurepredict_antibody_structure

Every tool, with its inputs and outputs →

How it works

The method behind this item.

AntiFoldTool · version antifold 0.4.0 (source commit 9918344, 2026-09-27) with ANARCII 2.0.8; weights model.pt sha256 d5c442fa…e9e

An antibody inverse-folding model: a protein inverse-folding network (a GVP-transformer, ESM-IF1) fine-tuned on solved antibody structures and on predicted structures of antibody sequences from the Observed Antibody Space. Given only the backbone atoms N, CA and C of the variable domain of a heavy chain (with a light chain if there is one) or of a nanobody, it reads the chain from the N terminus and, for every position, gives a probability for each of the 20 amino acids. We report the probability of the residue that is actually there, its rank among the 20, the five most probable residues and the entropy, with IMGT position and region attached (the structure is renumbered with ANARCII, the numbering model AntiFold itself uses, and the positions are cross-checked against our own ANARCI numbering). On request we also draw sequences for chosen regions, the CDRs by default, at a temperature you set: each position of the region is drawn independently from the model’s distribution for the input sequence, and no other position can change. A probability is the model’s agreement between a residue and this backbone; it is not binding, affinity, stability, expression or developability, and a rare residue is not an error.

Paper

Høie MH, Hummer A, Olsen TH, Aguilar-Sanjuan B, Nielsen M, Deane CM. AntiFold: improved structure-based antibody design using inverse folding. Bioinformatics Advances 5(1):vbae202, 2025.

Hsu C, Verkuil R, Liu J, et al. Learning inverse folding from millions of predicted structures. bioRxiv, 2022 (ESM-IF1, the network AntiFold starts from).

Code
AntiFold on GitHub
Licence
BSD 3-Clause (code and weights, as stated in the repository README); ESM-IF1 (MIT); ANARCII (BSD 3-Clause) · Copyright 2023 Magnus Haraldson Hoie and Alissa M Hummer (AntiFold)
Length cap here
one heavy chain with an optional light chain, or one nanobody; up to 500 residues per chain; 0 to 20 sampled sequences

The constant domain of a Fab is cut off before the model runs, because keeping it changed the variable-domain probabilities in our test (36 of 228 positions by more than 0.05). On the trastuzumab Fab (a structure the model may have seen in training) the observed residue was the model’s most probable one at 98.9% of framework positions and 76.6% of CDR positions. The model reads the structure you give it: for a predicted structure the numbers describe that prediction. Training data: SAbDab structures and Observed Antibody Space sequences, both CC BY 4.0. We run the published model unmodified on a CPU.

Limits

  • One heavy chain with an optional light chain, or one nanobody (single-domain) chain, at most 500 residues per chain. Name the chains, or leave them out and the numbering model looks for them; a chain it does not read as an antibody chain is refused rather than read.
  • The model sees only the backbone atoms N, CA and C of the variable domain (IMGT 1 to 128). The constant domain of a Fab is cut off before it runs and is listed in the result; side chains, antigens, waters and ligands are not shown to it, so a probability cannot reflect an interaction with them.
  • Each position is read given the residues before it in the chain, so positions are not independent questions and are not combined into a total for the sequence. Nothing is ranked.
  • Sampled sequences are draws from the model, not designs that were folded or tested. Each changed position was drawn independently, so a sample with several changes was never scored as a whole, and combinations are not checked for compatibility with each other or with an antigen.
  • The model was trained on natural antibody structures. A rare residue is not a mistake, and a designed or humanised antibody, or a predicted structure, is read against the same natural background. This says nothing about binding, affinity, stability, expression, immunogenicity or developability.