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

Different proteins can adopt very different overall shapes (source
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 .
The conventional neutral scaffold is often written , 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 () and negatively charged carboxylate groups ()

General structure of an amino acid
The side chain 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.

Different side chains produce different amino acids (source
You can inspect the amino acids in the interactive figure below.
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 from the carboxyl group of one amino acid and from the amino group of another. The remaining atoms form a linkage and . This bookkeeping picture explains which atoms remain in the chain; it is not a description of the ribosome’s reaction mechanism.

You can compare the free components and the connected product below.
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
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 .
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,
- is the N-terminal residue.
- is the C-terminal residue.
- is residue 1, 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 -helices and -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..
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 -helices and -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

The four levels of protein structure (source
Primary structure
The primary structure is the ordered 1D amino-acid sequence. Reusing our example,
This is the primary structure of the example chainYou can track the current structural level in the figure below.
.
Order matters. and are different sequences and generally correspond to different polypeptides.

An example of protein primary structure (source
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 , 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 patterns
.

Examples of protein secondary structure (source
The two most common regular patterns are:
- -helix: Notice the dotted lines in the top right of the diagram. In a standard -helix, the carbonyl oxygen of residue hydrogen-bonds with the backbone group of residue . Repeating this pattern coils a nearby stretch of the chain into a helix.
- -sheet: It looks like folded paper or a zig-zagging plane. It is formed by multiple segments of the protein chain (called -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 -helix is built from one continuous stretch of sequence, whereas neighboring -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.


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 another
.

A tertiary structure is formed by arranging multiple secondary-structure elements in 3D (source
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 120These residues are far apart in sequence, but folding may bring them close together in space:
sequence distance: largespatial distance: smallThis 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 structure
.
For example:
Chain A + Chain B + Chain C → protein complexIn 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
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 , the alpha carbon , and the carbonyl carbon

The 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 , the three backbone torsions are:
- (phi) uses and measures rotation around .
- (psi) uses and measures rotation around .
- (omega) uses and measures rotation around the peptide bond .
With this indexing, is undefined because there is no preceding residue, while and are undefined because there is no following residue

Torsion angles in a protein backbone (source
The angles and 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 . Most peptide bonds are near in the trans configuration. The cis configuration, near , is uncommon but occurs more often before proline than before other residues.
. Side chains introduce additional torsions, conventionally named when present
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 , , and occasionally determine how neighboring units turn. Side-chain angles play the same role for atoms branching away from the backbone.
Rotating or 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
where is the alphabet of standard residue types. For example, the six-residue sequence has .
What would it mean for a model to return a structure? For each residue , let be the set of heavy atoms present in residue type . The main geometric output is
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 zResidue 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 is transformed in the same way:
where is a rotation and is a translationA matrix in has orthonormal columns and determinant equal to . 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 and remains:
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 ? A matrix with orthonormal columns and determinant 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.
.
An object is chiral if it cannot be placed on top of its mirror image using only rotations and translations
The same distinction appears in amino acids. Except for glycine, the 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 , , and provide enough information to attach a local coordinate frame to residue . We can place its origin at , point one axis toward , and use 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 be represented by a rotation and translation . Here, is the global position of the frame’s origin, and the columns of are unit vectors pointing along its three local axes. The frame maps a point with local coordinates into global coordinates:
Because is a rotation, . We can therefore express a global point in residue ‘s frame by reversing the transformation:
This equation answers a concrete geometric question: where is atom when residue is used as the origin and its backbone determines the axes?
Now move the whole protein by a rotation and translation . The atom and residue frame move together:
The coordinates seen from residue do not change:
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.
In the Torsion angles view, compare the -helix and -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
- [Odden, 2020]Amino acids Backbone: Amino Acid Structure — What it is[HTML]Odden, Joanne, 2020. YouTube.
- [Reddy, 2026]Amino acid[HTML]Reddy, Michael K., 2026. Encyclopedia Britannica.
- [Mattaini, 2020]Amino Acids and Proteins[HTML]Mattaini, Katherine, 2020. Introduction to Molecular and Cell Biology (RWU BIO103).
- [Branden et al., 1999]Introduction to Protein StructureBranden, Carl-Ivar and Tooze, John, 1999. Garland Science.
- [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
- [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
- [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
- [International Union of Pure et al.]International Union of Pure and Applied Chemistry. Compendium of Chemical Terminology (the Gold Book).
- [IUPAC-IUB Joint Commission on Biochemical Nomenclature, 1984]IUPAC-IUB Joint Commission on Biochemical Nomenclature, 1984. Pure and Applied Chemistry, vol. 56, pp. 595--624
- [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
- [Biostructure, 2025]Levels of Protein Structure[HTML]Creative Biostructure, 2025. Creative Biostructure.
- [Fowler et al., 2013]Concepts of Biology[HTML]Fowler, Samantha, Roush, Rebecca, and Wise, James, 2013. OpenStax, Rice University.
- [Mao, 2021]Geometry for Computing Dihedral Angles[HTML]Mao, Lei, 2021. Lei Mao's Log Book.