Tutorials · updated 2026-11-21
Design protein sequences with ProteinMPNN online, then check they refold
ProteinMPNN reads a protein backbone and samples amino-acid sequences for it. Here is how to run it in a browser on a structure of your own, and how to ask the cheapest honest question about one of the sequences: if a structure engine folds it, does it come back to the backbone it was designed for? The example below is a real run, with its controls. You can read all of it without signing up.
What you will do
- Give ProteinMPNN the backbone of a protein: an uploaded structure, or one of your own folds.
- Read the sequences it samples for that backbone.
- Fold one of them with a structure engine and measure how far the result is from the backbone, next to two controls.
Step 1: sample sequences
Open the sequence design workflow, upload a protein structure and choose how many sequences to sample and at what temperature. It runs on the CPU and finishes in seconds. A lower temperature stays closer to the backbone’s own sequence; a higher one wanders further.
The example: hemoglobin alpha
The backbone is the AlphaFold database model for hemoglobin subunit alpha (UniProt P69905, 142 residues). We sampled 4 sequences at temperature 0.1 with seed 3, using protein_mpnn (checkpoint proteinmpnn_v_48_020.pt), on the cpu. Identity to the backbone’s own sequence runs from 47.2% to 51.4%.
The result, in the same view a real run gives you:
Loading the result…
Step 2: check one refolds
These are sequences a model sampled, not designs shown to work. The cheapest honest question is whether a structure engine, given the sequence, returns the backbone it was designed for. We folded design d1 with esmfold (facebook/esmfold_v1 (transformers 5.18.0)) and compared the result with the backbone, with two controls:
| Sequence folded | Identity to the backbone’s sequence | RMSD to the backbone, Å | Residues aligned |
|---|---|---|---|
| design d1 | 51.4% | 0.49 | 142 of 142 |
| the backbone's own sequence (control) | 100.0% | 0.34 | 142 of 142 |
| d1 shuffled, same letters in random order (control) | 17.2% | 15.01 | 134 of 142 (alignment ambiguous) |
How to read it
- The design refolds to the backbone: 0.49 Å against 0.34 Å for the backbone’s own sequence. That is one engine agreeing that this sequence adopts this fold.
- The shuffled control shows the check can fail. The same letters in a scrambled order land 15.01 Å away, with an ambiguous alignment. A check that passed everything would be worthless.
- Nothing is scored or ranked. Identity to the input is the model agreeing with the input sequence, not a measure of quality, and the RMSD is a distance, not a verdict.
What this example does not show
- This is the easy case: a natural backbone from a well-known family, and sequences about halfway to the native one, which the folding engine has very likely seen relatives of.
- A refold that matches says an engine believes the sequence adopts the fold. It says nothing about whether the protein is stable, expresses, binds or does anything.
- A scrambled sequence failing does not mean a subtly poor design would. A harder test is a higher temperature, a backbone with no natural relatives, and a second engine: two engines can disagree.
- One design was folded. The other sampled sequences were not.
Run it on your own backbone
Your structure is processed on our server in the EU. Signing up is needed to run; reading results is not.
Prefer to ask an AI assistant? Connect it once, then say: “Using rnafold, sample 4 sequences for the backbone of UniProt P69905, fold the first with ESMFold, and compare the result with the backbone.” The method, paper and licence are on the workbench page.