Tutorials

Protein structure files: PDB and mmCIF

Coordinates, chains, alternate locations, B-factors, ligands, missing residues and the biological assembly in a structure file.

Protein structure files store atomic coordinates and the metadata needed to interpret them. PDB and mmCIF are the two common formats. Knowing how to read them prevents mistakes in visualisation, modelling and docking.

The two formats

The PDB format is a fixed-column text format developed early in structural biology. It is compact and widely supported, but its columns and record types are limited.

The mmCIF format is a more flexible text format based on a dictionary of data items. It handles large structures, multiple models and richer metadata. Most major resources provide both, and mmCIF is the preferred format for new work.

A file may contain one model or several. NMR ensembles and some cryo-EM structures contain multiple models. A reader should know which model is being displayed.

Coordinates and chains

Each atom has a record with a serial number, atom name, residue name, chain identifier, residue number, x, y and z coordinates, occupancy and a temperature factor.

The chain identifier groups atoms into a chain. A residue number identifies the position in the chain. Insertion codes handle residues inserted between numbered positions.

The coordinates are in ångströms. The origin and the orientation are arbitrary; two structures of the same protein can be in different frames.

Alternate locations and occupancy

An atom can have alternate locations when the experimental data support more than one conformation. The occupancy gives the fraction of molecules in each location.

A file may contain only the major alternate location or all of them. A viewer may show one or all. For analysis, decide which alternates to keep and state the choice.

B-factors

The temperature factor, or B-factor, describes the uncertainty in the atomic position. High values indicate flexibility or disorder; low values indicate a well-ordered region.

B-factors are not a direct measure of biological flexibility. They depend on the resolution, the refinement and the crystal packing. A high B-factor at a terminus often reflects disorder rather than function.

Ligands, waters and ions

Hetero records describe ligands, cofactors, ions and waters. A structure may contain a ligand that is important for the biology, a crystallisation additive, or a buffer component.

Read the metadata to know what was present in the experiment. A ligand in the file is not proof that it is bound in solution. The biological assembly may differ from the asymmetric unit.

Resolution and quality

Resolution describes the level of detail in the diffraction data. A lower number means higher resolution. Resolution alone does not prove accuracy; the R-factors, the geometry and the validation report matter.

Check the validation report for outliers, Ramachandran statistics, rotamer outliers and clashes. A structure at modest resolution can still be useful, but the uncertainty should be acknowledged.

Biological assembly

The asymmetric unit is the repeating unit in the crystal. The biological assembly is the functional oligomer, which may be generated by symmetry operations.

A file may contain the biological assembly or instructions to build it. For a dimer or a multimer, check which assembly is relevant. Docking or interface analysis on the wrong assembly gives the wrong answer.

Missing atoms and residues

Not every atom in the protein may be resolved. Flexible loops, termini and side chains can be missing. The file may also contain gaps in the residue numbering.

A missing loop is not an empty region in the molecule; it is a region with no experimental coordinates. A model built into that region is a prediction, not an observation.

Reading a file in practice

Use a viewer or a parsing library to inspect the chains, the ligands, the missing residues and the metadata. Do not rely only on a picture.

For a script, parse the format explicitly and check the records you use. A parser that assumes a fixed column position can fail on a file that follows the standard differently.

Symmetry and crystal contacts

Crystallographic symmetry can generate a biologically relevant oligomer or a crystal contact that is not biologically relevant. The space group and the symmetry operators are in the file metadata.

A contact between two molecules in the crystal may be a real interface or a packing artefact. Interface size, conservation and evidence from solution experiments can help decide. Do not assume that every contact is a biological interaction.

Comparing structures

To compare two structures, align them and calculate a measure such as RMSD over equivalent atoms. The choice of atoms matters: the core, the binding site or the full chain.

A low RMSD over the core can hide a large change in a loop. A high RMSD over the full chain can reflect a hinge motion rather than a global difference. Report the region used for the alignment.

Choosing a structure

If several structures exist, choose one that matches the question. Consider the species, the ligand, the conformation, the resolution and the assembly. A structure with the ligand of interest is more useful for a binding question than an apo structure at higher resolution.

For a mutation, check whether the residue is resolved and whether the structure represents the relevant conformation. A predicted model can fill gaps, but it is not an experimental structure.

Key points

  • PDB is fixed-column; mmCIF is flexible and richer.
  • Coordinates are in ångströms and in an arbitrary frame.
  • Alternate locations and occupancy describe conformational heterogeneity.
  • B-factors reflect uncertainty, not directly flexibility.
  • The asymmetric unit may not be the biological assembly.

Common mistakes

  • Ignoring the biological assembly.
  • Treating a missing loop as an empty structure.
  • Reading a ligand as proof of binding in solution.
  • Using B-factors as a direct measure of dynamics.
  • Assuming a high-resolution structure is automatically accurate.

When to ask for help

If the assembly is ambiguous, if a ligand or mutation is central to the project, or if the structure quality is uncertain, ask for a review. You can order an analysis or read the structure quality guide. The Protein Structure Prediction & Modelling course covers structure files, and the AlphaFold guide covers predicted models.

Sources and further reading

When to ask for help. If your data or design do not fit a tutorial, order an analysis and we will reply with a fixed price.

Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.