~/lenguyen$
CV

A prologue to protein structure prediction

Last reviewedStable17 min read
Danger

I wrote this article while learning AlphaFold2, using my own notes and several AI assistants, mainly GPT 5.6 Sol, with some help from GLM 5.2 and others. I do not claim that I produced it alone.

I checked technical claims against primary sources wherever I could, but I am not a biochemist, and mistakes may remain. If you find something wrong or unclear, feedback is welcome, whether you are a clanker or a human.

Proteins are a major class of biological macromolecules. They carry out many of the catalytic, structural, transport, signaling, and regulatory functions required by cells. Much of this functional diversity begins with the enormous number of possible amino-acid sequences. A sequence constrains how a polypeptide folds, moves, and interacts with other molecules, although its environment and binding partners can also affect the structures it adopts.

Reflecting their diverse functions, proteins also have diverse shapes and sizes. Some proteins, such as hemoglobin, are globular, whereas others, such as collagen, are fibrous. A protein’s structure is closely connected to what it can do [Mattaini, 2020].

Examples of globular and fibrous proteins

Different proteins can adopt very different overall shapes (source [Mattaini, 2020]).

Protein structure prediction asks a deceptively simple question:

Given a protein’s amino-acid sequence, what three-dimensional structure is it likely to have?

From a computer-science point of view, we want to map a 1D sequence to a 3D geometric object.

Background on amino acids

So what is an amino acid? An amino acid is a small organic molecule that can serve as a building block of proteins. The standard amino acids share an alpha carbon bonded to an amino nitrogen, a carboxyl carbon, a hydrogen atom, and a variable side chain R\ce{R}.

The conventional neutral scaffold is often written NHX2CH(R)COOH\ce{NH2-CH(R)-COOH}, although proline’s side chain closes back onto the amino nitrogen. Protonation states depend on the chemical environment; near physiological pH, free amino acids are commonly represented as zwitterions with positively charged amino (NHX3X+\ce{NH3^+}) and negatively charged carboxylate groups (COOX\ce{COO^-}) [Reddy, 2026].

General structure of an amino acid

General structure of an amino acid [Odden, 2020].

The side chain R\ce{R} is what mostly distinguishes one amino acid from another. Different side chains have different sizes, charges, polarities, and chemical behaviors.

For our purposes, the important idea is simple:

A protein sequence is not a sequence of interchangeable symbols. Each symbol corresponds to a chemically different residue.

Examples of different amino-acid side chains

Different side chains produce different amino acids (source [Fowler et al., 2013]).

You can inspect the amino acids in the interactive figure below.

Amino-acid componentMethionine (M)
Loading 3Dmol.js viewer…
CHNOS
Ball-and-stick model of Methionine rendered by 3Dmol.js. Drag to rotate, scroll to zoom.

The peptide bond

Amino acids are connected into chains by peptide bonds. A peptide bond is the covalent bond between the carbonyl carbon of one amino acid and the amino nitrogen of the next.

For formal atom accounting, peptide-bond formation can be pictured as removing OH\ce{OH} from the carboxyl group of one amino acid and H\ce{H} from the amino group of another. The remaining atoms form a C(=O)N\ce{C(=O)-N} linkage and HX2O\ce{H2O}. This bookkeeping picture explains which atoms remain in the chain; it is not a description of the ribosome’s reaction mechanism.

Formation of a peptide bond
Formal formation of a peptide bond

You can compare the free components and the connected product below.

Peptide bondA + G
Loading 3Dmol.js viewer…

Separate wwPDB CCD component geometries for A and G. Toggle “Formal products” to compare atom accounting and peptide connectivity. Drag to rotate and scroll to zoom.

Suppose we have the chain

MGSAKE\ce{M - G - S - A - K - E}

Once amino acids have been incorporated into a chain, the units are called amino-acid residues or residues for short. In this example, methionine is one residue in the chain MGSAKE\ce{MGSAKE}.

Important

A protein is not merely a string of abstract tokens. It is a chemically connected chain with bond lengths, bond angles, steric constraints, charges, and rotatable bonds. A structure-prediction model must produce a geometry that respects these coupled constraints, which is one reason the problem is difficult.

N-terminus and C-terminus

Once many residues have been linked together, the result is a polypeptide chain.

Definition.A polypeptide is a chain of amino-acid residues connected by peptide bonds.
The ordered sequence of those residues is its primary structure.

A linear polypeptide chain has direction:

  • The N-terminus is the end containing the terminal amino group.
  • The C-terminus is the end containing the terminal carboxyl group.
  • Protein sequences are conventionally written from the N-terminus to the C-terminus.

For our example,

MGSAKE\ce{M - G - S - A - K - E}
  • M\ce{M} is the N-terminal residue.
  • E\ce{E} is the C-terminal residue.
  • M\ce{M} is residue 1, G\ce{G} is residue 2, and so forth.

This N-terminus to C-terminus ordering is important because AlphaFold2 receives an ordered sequence, not an unordered collection of residues.

The four levels of protein structure

Before discussing each level, let us first look at a real protein structureThe structure contains local patterns such as α\alpha-helices and β\beta-strands, together with the global arrangement that packs them into one fold.. The figure below shows crambin (PDB 1CRN), a compact 46-residue plant proteinThe Protein Data Bank, or PDB, stores experimentally determined three-dimensional structures of proteins, nucleic acids, and other biological macromolecules..

Crambin (PDB 1CRN)
Loading 3Dmol.js viewer…
Crambin (PDB 1CRN), a 46-residue plant protein. Drag to rotate and scroll to zoom. This is an experimental coordinate model, not an AlphaFold prediction.

The terms primary, secondary, tertiary, and quaternary describe different levels of protein organization.

The amino-acid sequence is the primary structure. Recurring backbone patterns, such as α\alpha-helices and β\beta-strands, form secondary structure. The complete arrangement of one chain is its tertiary structure. When multiple polypeptide chains assemble, their arrangement is the quaternary structure of the complex [Branden et al., 1999].

Four levels of protein structure

The four levels of protein structure (source [Branden et al., 1999]).

Primary structure

The primary structure is the ordered 1D amino-acid sequence. Reusing our example,

MGSAKE\ce{M - G - S - A - K - E}

This is the primary structure of the example chainYou can track the current structural level in the figure below. Primary structure.

Order matters. MGSAKE\ce{MGSAKE} and MEASKG\ce{MEASKG} are different sequences and generally correspond to different polypeptides.

Primary structure of a protein

An example of protein primary structure (source [Biostructure, 2025]).

From a machine-learning point of view, the target sequence is the starting input. It provides each residue’s amino-acid identity and order. Once the residues are indexed, we can compute sequence separation, such as jij-i, but the corresponding separation in 3D is still unknown.

Secondary structure: local backbone patterns

Secondary structure refers to recurring local conformations of the protein backbone, commonly characterized by their backbone geometry and hydrogen-bonding patternsSecondary structure.

Secondary structure of a protein

Examples of protein secondary structure (source [Fowler et al., 2013]).

The two most common regular patterns are:

  • α\alpha-helix: Notice the dotted lines in the top right of the diagram. In a standard α\alpha-helix, the carbonyl oxygen of residue ii hydrogen-bonds with the backbone NH\ce{N-H} group of residue i+4i+4. Repeating this pattern coils a nearby stretch of the chain into a helix.
  • β\beta-sheet: It looks like folded paper or a zig-zagging plane. It is formed by multiple segments of the protein chain (called β\beta-strands) lining up next to each other. Those strands can be far apart in the sequence even though they are neighbors in 3D.

The important distinction is that an α\alpha-helix is built from one continuous stretch of sequence, whereas neighboring β\beta-strands may come from distant parts of the chain.

Secondary-structure labels describe recurring backbone geometry and hydrogen-bonding patterns. A residue can therefore have a local role, such as belonging to a helix, and a global role determined by how that helix is positioned relative to the rest of the protein.

Alpha helix and beta sheet
Alpha helix and beta sheet
Hydrogen bonding in a beta sheet
Hydrogen bonding in a beta sheet

Tertiary structure: the complete fold of one chain

Tertiary structure is the overall three-dimensional arrangement of a single polypeptide chain. It describes how helices, sheets, loops, and side chains are positioned relative to one anotherTertiary structure.

Tertiary structure of a protein

A tertiary structure is formed by arranging multiple secondary-structure elements in 3D (source [Branden et al., 1999]).

Note

If primary structure is the 1D sequence, tertiary structure is the global 3D
architecture of one chain.

Describing tertiary structure requires long-range relationships. For example:

Residue 15 ─...─...─...─...─ Residue 120

These residues are far apart in sequence, but folding may bring them close together in space:

sequence distance: large
spatial distance: small

This is one of the central difficulties of protein-structure prediction. Local sequence neighborhoods are not enough. The model must infer which distant residues become spatial neighbors and how they are oriented relative to one another.

That observation will later motivate one of AlphaFold2’s central design choices: representing relationships between pairs of residues, not only features attached to individual residues.

Quaternary structure: multiple chains together

Many functional proteins contain more than one polypeptide chain. Each chain has its own primary, secondary, and tertiary structure. The arrangement of multiple chains is called the quaternary structureQuaternary structure.

For example:

Chain A + Chain B + Chain C → protein complex

In structure files, chains are commonly labelled A, B, C, and so on. A chain is also often called a subunit when it is part of a multi-chain complex.

The original AlphaFold2 system described in 2021 primarily targeted single-chain prediction [Jumper et al., 2021]. Predicting a multi-chain complex is a related problem, but it introduces additional questions: which chains interact, where their interfaces lie, and how the chains are arranged.

From a chain to three-dimensional geometry

The four structural levels tell us what scale we are describing. To understand the output of a structure-prediction model, we also need a more mechanical description of how the atoms are arranged.

A structure model records atomic coordinates, but those coordinates are one representation of the molecule rather than a preferred pose in space. We will approach that representation in two steps: first through the internal rotations of the chain, then through three-dimensional coordinates and local frames.

Each residue contributes three backbone atoms: the peptide nitrogen N\ce{N}, the alpha carbon Cα\ce{C}\alpha, and the carbonyl carbon CX\ce{C'} [Branden et al., 1999]. For residue ii, we will write them as Ni\ce{N}_i, Cαi\ce{C}\alpha_i, and CXi\ce{C'}_i. The side chain branches from Cαi\ce{C}\alpha_i, while the peptide bond connects CXi\ce{C'}_i to Ni+1\ce{N}_{i+1}.

The C-alpha atom

The Cα\ce{C}\alpha atom is bonded to the backbone nitrogen, the carbonyl carbon, a hydrogen, and the side chain. Except in glycine, these are four different groups, so their spatial arrangement has a definite handedness.

A backbone with rotatable joints

Bond lengths and bond angles fluctuate, but they stay close to strongly preferred values. If we temporarily hold them fixed, most of the backbone’s remaining flexibility comes from rotations around bonds. These rotations are described by torsion angles, also called dihedral angles.

A dihedral angle is determined by four consecutively bonded atoms. The first three atoms define one plane, the last three define another, and the signed angle between those planes measures the twist around the bond shared by the middle two atoms. For an internal residue ii, the three backbone torsions are:

  • ϕi\phi_i (phi) uses CXi1NiCαiCXi\ce{C'}_{i-1}-\ce{N}_i-\ce{C}\alpha_i-\ce{C'}_i and measures rotation around NiCαi\ce{N}_i-\ce{C}\alpha_i.
  • ψi\psi_i (psi) uses NiCαiCXiNi+1\ce{N}_i-\ce{C}\alpha_i-\ce{C'}_i-\ce{N}_{i+1} and measures rotation around CαiCXi\ce{C}\alpha_i-\ce{C'}_i.
  • ωi\omega_i (omega) uses CαiCXiNi+1Cαi+1\ce{C}\alpha_i-\ce{C'}_i-\ce{N}_{i+1}-\ce{C}\alpha_{i+1} and measures rotation around the peptide bond CXiNi+1\ce{C'}_i-\ce{N}_{i+1}.

With this indexing, ϕ1\phi_1 is undefined because there is no preceding residue, while ψN\psi_N and ωN\omega_N are undefined because there is no following residue [IUPAC-IUB Commission on Biochemical Nomenclature, 1970].

Torsion angles

Torsion angles in a protein backbone (source [Mao, 2021]).

The angles ϕ\phi and ψ\psi provide most of the backbone’s conformational freedom, so we will focus on themThe peptide bond has partial double-bond character, which makes it nearly planar and strongly restricts ω\omega. Most peptide bonds are near 180180^\circ in the trans configuration. The cis configuration, near 00^\circ, is uncommon but occurs more often before proline than before other residues. Cis and trans configurations of the peptide bond. Side chains introduce additional torsions, conventionally named χ1,,χ4\chi_1,\ldots,\chi_4 when present [Branden et al., 1999].

Intuition

In an idealized model, imagine the backbone as nearly rigid peptide units connected by rotatable joints. The preferred bond lengths and angles preserve local geometry, while ϕ\phi, ψ\psi, and occasionally ω\omega determine how neighboring units turn. Side-chain χ\chi angles play the same role for atoms branching away from the backbone.

Rotating ϕ\phi or ψ\psi changes the direction of the backbone, but these angles cannot vary freely. Some choices bring non-bonded atoms too close together, creating a steric clashAtoms have a finite effective size. When two non-bonded atoms are forced much closer than their preferred separation, repulsion rises steeply; structural models call such an implausibly close contact a steric clash..

The same structure can have different coordinates

At the scientific level, protein structure prediction asks for a plausible three-dimensional structure of a polypeptide chain with amino-acid sequence

A=(a1,a2,,aN),aiA,A=(a_1,a_2,\ldots,a_N), \qquad a_i\in\mathcal{A},

where A\mathcal{A} is the alphabet of standard residue types. For example, the six-residue sequence MGSAKE\ce{MGSAKE} has N=6N=6.

What would it mean for a model to return a structure? For each residue ii, let H(ai)\mathcal{H}(a_i) be the set of heavy atoms present in residue type aia_i. The main geometric output is

X={xi,aR3  |  i{1,,N}, aH(ai)}.X=\left\{x_{i,a}\in\mathbb{R}^3 \;\middle|\; i\in\{1,\ldots,N\},\ a\in\mathcal{H}(a_i)\right\}.

In plain language, we predict a three-dimensional coordinate for every non-hydrogen atom represented in the polypeptide chain. A simplified coordinate table looks like this:

Atom x y z
Residue 1 N ...
Residue 1 C-alpha ...
Residue 1 C ...
Residue 1 O ...
Residue 1 C-beta ...
Other side-chain atoms ...
Residue 2 N ...
...

These numbers are measured in a global coordinate system: a chosen origin together with three perpendicular axes. We could rotate a structure on the screen or move it to the other side of the scene without changing any bond, angle, or spatial relationship within the molecule.

Suppose every atomic coordinate xx is transformed in the same way:

x=Qx+s,x'=Qx+s,

where QSO(3)Q\in\operatorname{SO}(3) is a rotation and sR3s\in\mathbb{R}^3 is a translationA matrix in SO(3)\operatorname{SO}(3) has orthonormal columns and determinant equal to 11. It preserves lengths and angles without reflecting space.. The individual coordinate triples change, but the protein’s internal geometry does not. For example, the distance between atoms xax_a and xbx_b remains:

xaxb=(Qxa+s)(Qxb+s)=Q(xaxb)=xaxb.\begin{aligned} \lVert x_a'-x_b'\rVert &=\lVert (Qx_a + s) - (Qx_b + s)\rVert \\ &=\lVert Q(x_a - x_b)\rVert \\ &=\lVert x_a-x_b\rVert. \end{aligned}

Bond lengths, bond angles, and torsion angles are likewise unchanged. The two coordinate sets therefore describe the same structure in different global poses.

Intuition

The coordinate table depends on where we place the protein and which way it faces. Its internal geometry does not. A structure-prediction model should therefore treat two coordinate sets related by a shared rotation and translation as the same answer.

Why a reflection is not another pose

Why did we require det(Q)=1\det(Q)=1? A matrix with orthonormal columns and determinant 1-1 reverses orientation: it describes a reflection, possibly followed by a rotation. A reflection still preserves distances, so distance alone cannot tell a structure from its mirror image. It does, however, reverse handednessThe labels L and D describe an amino acid’s configuration by a formal relationship to L- or D-glyceraldehyde; they do not mean that the molecule literally points left or right. By convention, an unmarked amino-acid symbol in a protein sequence denotes the L configuration when the residue is chiral. Glycine is achiral. [IUPAC-IUB Joint Commission on Biochemical Nomenclature, 1984] Mirror-image configurations of a chiral amino acid.

An object is chiral if it cannot be placed on top of its mirror image using only rotations and translations [International Union of Pure et al.]. Your left and right hands illustrate the exact geometric distinction: they have the same pattern of distances, but no rotation of one hand makes it coincide with the other. They have opposite handedness.

The same distinction appears in amino acids. Except for glycine, the Cα\ce{C}\alpha atom in a standard amino acid is bonded to four different groups, giving the residue a particular three-dimensional handedness. Reflecting all of its coordinates reverses that arrangement. The result is the mirror-image configuration, not the original residue viewed from another direction.

Important

Rotations and translations move a structure without changing its handedness; a reflection produces mirror-image geometry. This is why two protein structures are considered equivalent under rotations and translations, not under arbitrary distance-preserving transformations.

A reflection preserves all pairwise distances. Distances alone therefore cannot distinguish a protein from its mirror image; a complete geometric description must retain some information about direction or handedness.

Let each residue carry its own coordinate system

Global coordinates contain the geometry we need, but they also contain an arbitrary choice we do not care about: a global origin and its axes. We would like to describe where an atom lies relative to a residue, in a way that does not change when the whole molecule is moved.

The three ordered, non-collinear backbone atoms Ni\ce{N}_i, Cαi\ce{C}\alpha_i, and CXi\ce{C'}_i provide enough information to attach a local coordinate frame to residue ii. We can place its origin at Cαi\ce{C}\alpha_i, point one axis toward CXi\ce{C'}_i, and use Ni\ce{N}_i to determine the backbone plane. There are two possible directions perpendicular to that plane, so we choose one handedness convention and use it for every residue. The main AlphaFold2 article will develop the exact construction; here, we only need the idea that every residue receives its own origin and axes.

Let the frame of residue ii be represented by a rotation RiR_i and translation tit_i. Here, tit_i is the global position of the frame’s origin, and the columns of RiR_i are unit vectors pointing along its three local axes. The frame maps a point with local coordinates uu into global coordinates:

x=Riu+ti.x=R_i u+t_i.

Because RiR_i is a rotation, Ri1=RiR_i^{-1}=R_i^\top. We can therefore express a global point xx in residue ii‘s frame by reversing the transformation:

ui(x)=Ri(xti).u_i(x)=R_i^\top(x-t_i).

This equation answers a concrete geometric question: where is atom xx when residue ii is used as the origin and its backbone determines the axes?

Now move the whole protein by a rotation QQ and translation ss. The atom and residue frame move together:

x=Qx+s,Ri=QRi,ti=Qti+s.\begin{aligned} x'&=Qx+s,\\ R_i'&=QR_i,\\ t_i'&=Qt_i+s. \end{aligned}

The coordinates seen from residue ii do not change:

ui(x)=(Ri)(xti)=(QRi)[Qx+s(Qti+s)]=RiQQ(xti)=Ri(xti)=ui(x).\begin{aligned} u_i'(x') &=(R_i')^\top(x'-t_i')\\ &=(QR_i)^\top\left[Qx+s-(Qt_i+s)\right]\\ &=R_i^\top Q^\top Q(x-t_i)\\ &=R_i^\top(x-t_i)\\ &=u_i(x). \end{aligned}

The global coordinates changed, but the atom’s position relative to the residue did not. A local frame removes the arbitrary global pose while preserving directional information that distances alone would discard.

Torsion angles and local frames now have separate roles. Torsion angles describe how bonded parts of the chain turn around particular bonds. A residue-local frame describes the position and orientation of other atoms or residues from that residue’s point of view.

Backbone geometry
Loading 3D viewer…
The highlighted four-atom sequence defines φ; its middle bond is the rotation axis. The idealized chain repeats the displayed φ, ψ, and ω values for clarity. Drag to rotate and scroll to zoom.

In the Torsion angles view, compare the α\alpha-helix and β\beta-strand presets and inspect which four atoms define each angle. Then switch to Local frame and toggle the global pose. The molecule moves, but the coordinates measured in the selected residue’s frame remain the same.

References

  1. [Odden, 2020]
    Amino acids Backbone: Amino Acid Structure — What it is[HTML]
    Odden, Joanne, 2020. YouTube.
  2. [Reddy, 2026]
    Amino acid[HTML]
    Reddy, Michael K., 2026. Encyclopedia Britannica.
  3. [Mattaini, 2020]
    Amino Acids and Proteins[HTML]
    Mattaini, Katherine, 2020. Introduction to Molecular and Cell Biology (RWU BIO103).
  4. [Branden et al., 1999]
    Introduction to Protein Structure
    Branden, Carl-Ivar and Tooze, John, 1999. Garland Science.
  5. [Ramachandran et al., 1963]
    Stereochemistry of Polypeptide Chain Configurations[DOI]
    Ramachandran, G. N., Ramakrishnan, C., and Sasisekharan, V., 1963. Journal of Molecular Biology, vol. 7, pp. 95--99
  6. [Lovell et al., 2003]
    Structure Validation by Cα Geometry: φ,ψ and Cβ Deviation[DOI]
    Lovell, Simon C., Davis, Ian W., Arendall, W. Bryan, et al., 2003. Proteins: Structure, Function, and Genetics, vol. 50, pp. 437--450
  7. [IUPAC-IUB Commission on Biochemical Nomenclature, 1970]
    Abbreviations and Symbols for the Description of the Conformation of Polypeptide Chains: Tentative Rules (1969)[HTML][DOI]
    IUPAC-IUB Commission on Biochemical Nomenclature, 1970. Biochemistry, vol. 9, pp. 3471--3479
  8. [International Union of Pure et al.]
    Chirality[HTML][DOI]
    International Union of Pure and Applied Chemistry. Compendium of Chemical Terminology (the Gold Book).
  9. [IUPAC-IUB Joint Commission on Biochemical Nomenclature, 1984]
    Nomenclature and Symbolism for Amino Acids and Peptides: Recommendations 1983[HTML][DOI]
    IUPAC-IUB Joint Commission on Biochemical Nomenclature, 1984. Pure and Applied Chemistry, vol. 56, pp. 595--624
  10. [Jumper et al., 2021]
    Highly Accurate Protein Structure Prediction with AlphaFold[DOI]
    Jumper, John, Evans, Richard, Pritzel, Alexander, et al., 2021. Nature, vol. 596, pp. 583--589
  11. [Biostructure, 2025]
    Levels of Protein Structure[HTML]
    Creative Biostructure, 2025. Creative Biostructure.
  12. [Fowler et al., 2013]
    Concepts of Biology[HTML]
    Fowler, Samantha, Roush, Rebecca, and Wise, James, 2013. OpenStax, Rice University.
  13. [Mao, 2021]
    Geometry for Computing Dihedral Angles[HTML]
    Mao, Lei, 2021. Lei Mao's Log Book.
/help