Sequence ⇄ Structure · an interactive primer

Folding, and the arrow run backwards

One chain of amino acids finds one shape, reliably, in milliseconds. Predicting that shape is folding. Choosing a shape first and asking which chains would settle into it is inverse folding. The two directions are not mirror images — they fail and succeed for different reasons.

Fig. 01
01 / 08 Forward

Sequence — click to switch

Fold
Energy
Radius of gyration
H buried
Steps
H · hydrophobic P · polar contact

This is a two-dimensional toy — twenty-four beads, two chemistries, Brownian dynamics with a hydrophobic attraction. It is not a protein. But the two things it does get right are the two things that matter: sequence alone determines where the chain ends up, and the design problem is solved by burying the greasy residues and leaving the polar ones facing out.

SEQUENCE MKVLAT GIWDEY 20 letters · 1-D · ~10²⁶⁰ options STRUCTURE 3-D coordinates · one basin FOLDING · PREDICTION AlphaFold, ESMFold, Boltz — and physics INVERSE FOLDING · DESIGN ProteinMPNN, ESM-IF, Rosetta fixed-backbone many-to-one ↑ collapses · ↓ chooses

Hover either arrow

The same two objects, two different questions. Sequence space is enormous and discrete; structure space is continuous and, in practice, surprisingly small — nature reuses a few thousand folds. That asymmetry is the whole story.

Side by side

FoldingInverse folding
GivenA chain of lettersA backbone you want
WantedThe coordinates it settles intoLetters that settle into it
MappingEssentially one answer per inputAstronomically many valid answers
What makes it workCoevolution across millions of homologous sequences; geometry learned once, reused everywhereLocal environment is nearly enough — burial, neighbour geometry, backbone angles predict the residue
What makes it hardThe signal is non-local: two letters far apart in the chain decide each other's fateNegative design. The chosen sequence must prefer your fold over every other fold it could adopt
How you know you're rightPredicted confidence (pLDDT, PAE), then a crystal or a cryo-EM mapFold the design back and check it returns. Then express it and see if it behaves
Rough difficultyWas open for fifty yearsSolved well enough that recovery rates ~50% beat nature's own choices at stability

Why both arrows in one pipeline

01 · Shape

Sketch or generate a backbone with the geometry the job needs — a pocket, an interface, a channel.

02 · Inverse fold

Ask which sequences would hold that backbone. Get hundreds of candidates in seconds.

03 · Fold forward

Run each candidate through structure prediction as if it were an unknown natural protein.

04 · Filter

Keep only those that come back to the shape you asked for, with high confidence and low error.

05 · Build

Order the DNA, express it, measure. A few percent working is a very good day.

The forward model is the cheap referee for the inverse one. Design proposes; prediction disposes — and because prediction never saw the design during training, agreement between them is real evidence rather than a tautology.