This module follows MD-O (protonation and charge) and uses the same ubiquitin file. The animations and the density map are computed in your browser right now; the coordinates, occupancies and B values come from the real lines of the 1UBQ file, and the pdb2gmx outputs and the MD comparison come from runs that were actually made in this project.
MD-PDB · Preparing a protein for MD

What does a structure file hold? Occupancy, B-factor and crystal waters

A PDB file is not a photograph of a single molecule. It is an average over many molecules in the crystal, taken over the whole measurement. Two numbers at the end of each atom line carry the trace of this average: the occupancy gives the fraction of molecules in which the atom sits at that position; the B-factor gives the spread around the position. The MD program uses neither number. In this lab you will see what these numbers tell you and what is lost when the structure enters the simulation.

Discoveries: 0 / 4
Experimental bridge

A long-exposure photograph

Photograph a crowded square with a long exposure and a person standing still comes out sharp, a person walking around leaves a blurred trail, and a person who was there for half the time looks faint. X-ray diffraction works the same way: the measured density is an average over all the molecules in the crystal and over the whole measurement time. In the view below the atoms of ubiquitin vibrate as much as their own B values in the 1UBQ file predict, and appear as often as their own occupancies. In the whole-protein view each residue is drawn by its Cα atom, in the C-terminus view by all its heavy atoms; the small blue dots are crystal waters. Compare a single instant with a long exposure.

View
Frames stacked
Leu43 Cα (B 3.51 Ų): spread along one direction
Gly76 Cα (B 36.19 Ų, occupancy 0.25): spread along one direction

1UBQ: Vijay-Kumar, Bugg and Cook 1987 (J Mol Biol 194:531), X-ray, 1.8 Å, R 0.176, solvent content 33%, space group P2₁2₁2₁. In the animation, each atom's shift along each direction is drawn from a normal distribution with mean zero and standard deviation u = √(B / 8π²); this is the definition of the isotropic B-factor. The animation is a teaching model: in real molecules atoms do not vibrate independently of one another; neighbors move together. Atom radii are reduced for legibility.

1 · Workshop

Read the PDB line

The ubiquitin in the view is the 602 heavy atoms and 58 crystal waters of 1UBQ; the color shows each atom's B value. Pick a residue with the slider: the Cα line of that residue appears below exactly as it is written in the file. Touch a field of the line and its meaning opens. You can rotate the protein by dragging.

Color
B value of the Cα
Spread along one direction, u = √(B / 8π²)
Root-mean-square spread in three dimensions, √3 · u
Occupancy
Does it touch a neighboring molecule in the crystal? (4 Å)

B value of the CαResidue touching a neighboring molecule in the crystal (within 4 Å)Residue with occupancy below 1
Open

How different are the most rigid and the most mobile residues?

Compare a residue with a very low B value and one with a very high B value.

Pick a residue whose Cα B value is below 5 Ų and one whose Cα B value is above 30 Ų.
2 · Bench

When does an atom disappear from a density map?

Crystallographers do not see atoms directly; they see an electron density map and place the model into it. The B-factor and the occupancy decide how clearly an atom stands out in the map. First follow a single carbon atom in four steps; then change the two numbers yourself at the C-terminus of 1UBQ.

Density in four steps

Try it yourself: the map of the C-terminus

The map is computed from the real coordinates of residues 70-76 of 1UBQ, with each atom's occupancy and B value from the file. The lines are the contour level: where the density exceeds this level is "visible". Pick a residue and change its occupancy and B value; if the density at an atom's position falls below the contour level, the atom is drawn hollow.

Residue
Visible atoms in the selected residue
Density at the weakest atom / contour
Peak height of the residue, the atoms' own contribution only (fully occupied carbon with B 13.41 Ų = 1)
Density at the atom positions including neighbors (residue mean; this sets visibility)
Contour lineVisible atom (filled)Atom below the contour (hollow)Drawn thick: selected residue

TrialResidueOccupancyB (Ų)Peak height

Model: each atom is a three-dimensional Gaussian cloud carrying its electron count (C 6, N 7, O 8) times its occupancy; the cloud's variance along each direction is σ² = σ₀² + B / 8π². σ₀ = 0.45 Å is a model parameter standing for the blur of the 1.8 Å resolution itself. The map shown is the largest value, taken along the direction perpendicular to the plane that best fits the residues, of the three-dimensional density formed by these clouds; whether an atom is visible is decided by the density at that atom's center. The map contains only residues 70-76. The density on this page is not the measured map of 1UBQ; it is a teaching model computed in the browser from the atomic coordinates, occupancies and B values. The contour level is given relative to the peak height of a single fully occupied carbon with a B value of 13.41 Ų (the mean over 1UBQ protein atoms).

Open

Can a fully occupied atom disappear too?

Keep the occupancy close to 1 and change only the B value.

Bring every side-chain atom of a residue with occupancy of at least 0.90 below the contour, without raising the contour above 0.40.
Open

Can occupancy and B be told apart from the map?

Reach the same peak height in the same residue by two different routes.

Match the peak height within 5% in two trials whose occupancies differ by at least 0.3 (the rows of the table).
3 · Notebook

Deciding on the 58 waters

1UBQ contains 58 crystal waters. In this project the waters were removed from the input and the protein was placed into a new water box. Some studies, however, keep waters bound tightly to the protein. Which water is "the protein's water" and which belongs to the crystal? Each point is a water: B on the horizontal axis, the number of polar protein neighbors (N or O) within 3.5 Å on the vertical axis; the point size is the occupancy. Ringed points also touch a neighboring ubiquitin molecule in the crystal. Build your own criterion and see how many waters remain.

Waters kept
Mean B of the kept waters
Kept waters that also touch a neighboring molecule
Waters kept by your criterion
WaterBOccupancyNearest protein atom

Click a water: it is marked in the scatter plot and in the 3D view. For example HOH 112 is the water mentioned in MD-O, 0.364 nm from the NE2 of His68.

Neighbor counts were computed for this page from the 1UBQ coordinates: a polar protein neighbor is an N or O atom closer than 3.5 Å to the water oxygen. Crystal neighbors are copies of ubiquitin generated with the symmetry operations of the space group (P2₁2₁2₁) and unit-cell translations; a water closer than 3.5 Å to an N or O atom of one of these copies counts as "touching a neighboring molecule". Of the 58 waters, 25 touch a neighboring molecule, and 16 of those touch the protein itself as well. 9 waters make no polar contact within 3.5 Å with either the protein or a neighboring molecule; they most likely sit in a network formed by other waters. There is no correct criterion: the point is to see which choice fits which question.

Open

Which waters belong to the protein?

Remove the waters that touch a crystal neighbor and ask for at least two polar contacts with the protein.

Build a criterion that removes waters touching a neighboring molecule and asks for at least 2 polar protein neighbors.
4 · Back to the protein

What happens to these two numbers when the structure enters the simulation?

pdb2gmx counts the atoms with occupancy below 1, writes a warning and carries on. Each of these atoms enters the simulation as a fully occupied atom; the B-factor is not used at all. Below are two real runs from this project: one with the project's own input (crystal waters removed), the other with the original file that also contains the waters.

pdb2gmx.log (24 September 2026, 1UBQ_protein_only.pdb)
there were 0 atoms with zero occupancy and 28 atoms with occupancy unequal to one (out of 602 atoms). Check your pdb file.
pdb2gmx (29 September 2026, 1UBQ.pdb, with crystal waters)
there were 0 atoms with zero occupancy and 57 atoms with occupancy unequal to one (out of 660 atoms). Check your pdb file.
Processing chain 1 'A' (602 atoms, 76 residues)
Processing chain 2 (58 atoms, 58 residues)
Total charge in system 0.000 e
Occupancy below 1AtomsOccupancy in the fileIn the simulation
Leu7380.45fully occupied, one copy
Arg74110.45fully occupied, one copy
Gly7540.25fully occupied, one copy
Gly7650.25fully occupied, one copy
Crystal waters290.36-0.87not in the simulation in this project (removed from the input)

1UBQ has no alternate locations (altloc); every atom has a single position. In a file with alternate locations pdb2gmx uses only one of them; you decide which one you want when you prepare the input. The same C-terminus is where the unminimized S1 run in MD-EQ crashed (Gly75, an N-H bond in the first step); there the cause was the very close water-hydrogen contacts of the unminimized start, not the occupancy. The two findings point to the same region, but one is not the cause of the other.

Do the crystal B and MD in solution tell the same story?

In this project an unrestrained 2 ns run was made from the S0 preparation (crystal waters removed, TIP3P water box, 300 K, NPT); the protocol was written and frozen before the run. The first 200 ps were discarded. In the remaining 901 frames the protein was fitted on its backbone and the root-mean-square fluctuation (RMSF) of each Cα around its mean position was computed. To compare with the crystal B, B = (8π² / 3) · RMSF² was used. Below, the two are shown side by side, residue by residue.

Crystal, 1UBQMD, 200-2000 psRange between the two halves of the MD run

What do we see? The two curves rise in the same places: the C-terminus (72-76) and the 8-10 turn are the most mobile regions in both; over all 76 residues r is 0.87. Without the tail the agreement drops (r 0.59 over 1-72), because the first number is set largely by the tail. In the core MD is lower: the median B of residues 1-72 is 8.8 Ų in the crystal and 5.8 Ų in MD. The crystal B contains, besides thermal vibration, small position differences between molecules and crystal defects; MD has none of these. At the tail, by contrast, MD is much higher (Gly75: crystal 36.1, MD 87.6 Ų). In solution there is no neighboring molecule and the tail is free; in the crystal Arg72 and Arg74 touch a neighboring molecule, and part of the tail's disorder was written into a low occupancy rather than into B. These are possible explanations; this comparison does not separate how much each one contributes. A second example is the 46-48 turn: in MD it is among the ten most mobile residues (Gly47: MD 25.0, crystal 11.7 Ų), in the crystal it is not. Whether this comes from the crystal lattice or from the single 2 ns run cannot be separated here either.

Limits: 2 ns is a short run and is labeled exploratory; it is not evidence of convergence. Between the two halves of the run (200-1100 and 1100-2000 ps) r is 0.86, but the difference is large at the tail (52 Ų between the two halves at Arg74): the motion of the tail was not sampled well enough in this time. The crystal's measurement temperature is not given in the file; the run is at 300 K. Computation: gmx trjconv -pbc mol -center, -fit rot+trans on the backbone, gmx rmsf (Cα, 200-2000 ps). The run took 3 h 42 min in the cloud, GROMACS 2023.3, with 2 threads (12.98 ns/day).

5 · Test yourself

Six questions

Previous step: MD-O · Protonation and charge. Next steps: MD-PBC · The box without edges (the box and its images) and MD-EQ · Minimization and equilibration.

Model: the long-exposure animation and the density map are teaching models computed in the browser. Coordinates, occupancies and B values come from the 1UBQ.pdb file (RCSB, 1.8 Å, CC0); water neighbors and crystal neighbors were computed from this file; the pdb2gmx outputs and the MD run come from runs actually performed in this project.

Terms in this module

The definition of each term and the other modules where it appears are in the glossary.