From Crystal to Coordinates
A field guide for doctoral researchers

From Crystal to Coordinates

X-ray crystallography turns a lattice of diffraction spots into an atomic model of a molecule. This guide covers the physics, the mathematics and the practical decisions at each step, with live models you can adjust.

Where spots appear
\[ n\lambda = 2d_{hkl}\sin\theta \]
What each spot measures
\[ F(\mathbf h)=\sum_{j} f_j\,e^{-B_j s^2/4}\,e^{2\pi i\,\mathbf h\cdot\mathbf x_j} \]
What we want
\[ \rho(\mathbf x)=\frac{1}{V}\sum_{\mathbf h}|F(\mathbf h)|\,e^{i\varphi(\mathbf h)}\,e^{-2\pi i\,\mathbf h\cdot\mathbf x} \]
φ = 0.0°
Hover or tap the detector to read resolution and Miller indices.
Simulated 0.6° rotation image of tetragonal lysozyme (P43212, a = b = 79.1 Å, c = 37.9 Å) at λ = 0.9795 Å on a 300 × 300 mm pixel-array detector 200 mm from the crystal. Every spot is a real lattice point crossing the Ewald sphere as the crystal rotates, including the systematic absences of the 43 and 21 screw axes. Intensities are random draws from a Wilson distribution with B = 18 Ų.
The workflow

Seven stages from gene to deposited model

Each stage has its own physics, numbers and failure modes. Select a stage to see what happens, the governing relation, typical values and the software most labs use.

Diffraction geometry

Why a crystal gives spots, not a smear

A single molecule scatters X-rays far too weakly to measure. A crystal repeats it about 1013–1015 times in a lattice, so scattered waves add up in phase only in discrete directions. Bragg described these directions as reflections from families of lattice planes with spacing \(d_{hkl}\). Laue and Ewald described the same condition in reciprocal space.

Bragg’s law with waves

waves reflected by successive planesextra path 2d sin θ
2d sin θ
2d sin θ / λ
phase lag per plane
relative intensity

Increase N and the peaks sharpen as \(\sin^2(N\pi x)/N^2\sin^2(\pi x)\) with \(x = 2d\sin\theta/\lambda\). Real crystals have thousands of planes, so intensity is essentially zero away from the Bragg condition. Mosaicity and beam divergence give each spot its finite width.

The Ewald construction

Ewald sphere, radius 1/λreflections in diffracting positionresolution limit 1/dmin
in diffracting position
recorded so far

A reciprocal-lattice point \(\mathbf s = h\mathbf a^* + l\mathbf c^*\) diffracts when it lies on the sphere, which is Bragg’s law in vector form: \(\mathbf k' - \mathbf k = \mathbf s\) with \(|\mathbf k| = |\mathbf k'| = 1/\lambda\). Rotating the crystal sweeps points through the sphere. This is the rotation method, and the “recorded” points fill in like a dataset. Shorter λ gives a larger sphere and reaches finer detail, up to the limiting sphere of radius 2/λ.

Toy two-dimensional h0l section with a = 6 Å, c = 8 Å, chosen so individual lattice points are visible.

Structure factors and Fourier synthesis

The phase problem, in one dimension

Each reflection is a Fourier coefficient of the electron density. The detector records intensity \(I \propto |F|^2\), so the amplitude survives but the phase \(\varphi\) is lost. The density needs both. The lab below builds a one-dimensional unit cell (30 Å long) from a few atoms, computes its structure factors and sums them back into a map.

Try the swap modes. Amplitudes from structure A combined with phases from structure B give a map that looks like B. Phases carry most of the structural information, which is why model bias is a real danger in molecular replacement.

map from current coefficients correct map, same resolution atoms in A atoms in B bar colour = phase (0–360°)
reflections used
map CC vs correct

In 1D the synthesis is \(\rho(x) = F(0) + 2\sum_{h>0}|F_h|\cos(\varphi_h - 2\pi h x)\), using Friedel’s law \(F(-h) = F^*(h)\). The Patterson option replaces \(F\) by \(|F|^2\) with zero phase. It needs no phases, and its peaks sit at interatomic vectors \(x_i - x_j\), not at atoms.

Solving the phase problem

Four routes to phases

In practice, most new macromolecular structures are phased by molecular replacement, now often with predicted models. Experimental phasing is still needed for novel folds, for validation and wherever model bias must be avoided.

Place a known or predicted search model in the unknown cell. The six-dimensional search is split into a rotation search (3 angles) and a translation search (3 coordinates). Modern programs score each placement with a likelihood that accounts for model error.

\[ R(\boldsymbol\Omega)=\int_U P_{\text{obs}}(\mathbf u)\,P_{\text{calc}}(\boldsymbol\Omega\,\mathbf u)\,d\mathbf u \]
\[ \mathrm{LLG}=\sum_{\mathbf h}\ln\frac{p\big(|F_o(\mathbf h)|;\ \text{model}\big)}{p\big(|F_o(\mathbf h)|;\ \text{random atoms}\big)} \]
  • Homologues above roughly 30% sequence identity often succeed. Predicted models (AlphaFold, RoseTTAFold) extend this to most targets.
  • Trim residues with pLDDT below about 70 and convert pLDDT to B-factors before searching.
  • Phaser guide values: TFZ above 8 is almost always correct; a final LLG above about 60 is usually a solution.
  • Phases come from the model, so check with σA-weighted, omit and difference maps.

Software: Phaser, MOLREP, MrBUMP, MoRDa, Slice’N’Dice

Harker construction

The native amplitude |FP| fixes a circle about the origin. Each derivative gives a circle of radius |FPH| centred at −FH. Where the circles cross, the phase is consistent with both measurements. One derivative gives two crossings; a second picks one.

Data quality, refinement and validation

Reading “Table 1” like a referee

Every crystallography paper reports the same statistics. Each one answers a different question: how precise the merged intensities are, how far the data really extend, and how well the model explains data it was not refined against.

Precision of merged data
\[ R_{\text{merge}}=\frac{\sum_{\mathbf h}\sum_i|I_{\mathbf h,i}-\langle I_{\mathbf h}\rangle|}{\sum_{\mathbf h}\sum_i I_{\mathbf h,i}} \]
\[ R_{\text{meas}}=\frac{\sum_{\mathbf h}\sqrt{\tfrac{n_{\mathbf h}}{n_{\mathbf h}-1}}\sum_i|I_{\mathbf h,i}-\langle I_{\mathbf h}\rangle|}{\sum_{\mathbf h}\sum_i I_{\mathbf h,i}} \]

Rmerge rises with multiplicity even as the data improve. Report Rmeas (multiplicity-independent) and Rpim (precision of the merged mean, with \(\sqrt{1/(n-1)}\)).

Where to cut resolution
\[ CC^{*}=\sqrt{\frac{2\,CC_{1/2}}{1+CC_{1/2}}} \]

CC1/2 correlates intensities from two random halves of the data. CC* estimates the correlation of the full dataset with the true signal and can be compared directly with CCwork and CCfree of the model (Karplus & Diederichs, 2012). Outer shells with CC1/2 around 0.3 still help refinement. The old cut at ⟨I/σ(I)⟩ = 2 discards useful data.

CC* (upper limit for model CC)
Model versus data
\[ R=\frac{\sum_{\mathbf h}\big||F_o(\mathbf h)|-k|F_c(\mathbf h)|\big|}{\sum_{\mathbf h}|F_o(\mathbf h)|} \]

Rwork uses the reflections the model is refined against. Rfree uses a 5% test set that is never refined against (Brünger, 1992). A gap above about 0.05, or Rfree rising while Rwork falls, points to overfitting. Keep the same free set through every round, including after molecular replacement from a related entry.

\[ \text{map: } \big(2m|F_o|-D|F_c|\big)e^{i\varphi_c}\quad\text{diff: } \big(m|F_o|-D|F_c|\big)e^{i\varphi_c} \]

Atomic displacement and the Wilson falloff

rms displacement √⟨u²⟩
intensity left at 2 Å

Thermal motion and static disorder smear each atom, multiplying its scattering by \(e^{-Bs^2/4}\) (intensity by \(e^{-Bs^2/2}\)), with \(s = 2\sin\theta/\lambda = 1/d\) and \(B = 8\pi^2\langle u^2\rangle\). The Wilson plot of \(\ln\langle I\rangle/\sum f^2\) against \(s^2\) has slope \(-B/2\) and sets the overall scale and B of a dataset.

Illustrative Table 1

Example values for a 1.85 Å SeMet dataset, not from a real entry. Outer shell in parentheses.

Wavelength (Å)0.9795
Space groupP212121
a, b, c (Å)52.3, 68.9, 91.4
Resolution (Å)45.7–1.85 (1.89–1.85)
Unique reflections27,120 (1,655)
Multiplicity6.8 (6.1)
Completeness (%)99.6 (97.9)
⟨I/σ(I)⟩14.2 (1.3)
Rmeas / Rpim0.077 / 0.029 (1.55 / 0.61)
CC1/20.998 (0.52)
Wilson B (Ų)24.1
Rwork / Rfree0.176 / 0.209
rmsd bonds (Å) / angles (°)0.008 / 0.95
Ramachandran favoured / outliers (%)98.1 / 0.0

An outer-shell Rmeas above 1 is normal when CC1/2 is still significant. The unique count agrees with \(N \approx \tfrac{2\pi}{3}V_{\text{ASU}}/d^3\) for this cell.

Matthews coefficient and solvent content

Estimate how many copies fit in the asymmetric unit before molecular replacement. Loaded with hen egg-white lysozyme.

cell volume
VM (ų/Da)
solvent content
assessment
\[ V_M=\frac{V_{\text{cell}}}{Z\,n\,M_r},\qquad V_{\text{solv}}=1-\frac{1.230}{V_M} \]

Most protein crystals have VM between 1.7 and 3.5 ų/Da (solvent about 28–65%), centred near 2.5 (about 50%). Try several copy numbers and compare with self-rotation peaks and the MR result.

What resolution buys you

The same side chain at different resolutions

The map below is an honest Fourier synthesis. Structure factors are computed from a phenylalanine-like fragment and a water in a 12 × 12 Å two-dimensional cell, then truncated at dmin. The ripples near atoms at low resolution are the series-termination effect. The mesh is drawn at the mean plus 1.2σ.

Example: a 30 kDa protein (about 2,100 non-hydrogen atoms) with VM = 2.4 ų/Da, so VASU ≈ 72,000 ų.

unique reflections
obs / param (xyz + B)
obs / param (anisotropic)
refinement regime

\(N_{\text{unique}}\approx\tfrac{2\pi}{3}V_{\text{ASU}}/d_{\min}^3\): the count grows with the cube of resolution. Below an observation-to-parameter ratio of about 1, the model survives only through geometric restraints: bond lengths, angles, planarity and B-factor similarity.

Reference sheet

Equations to know by heart

Filter by keyword. “Copy LaTeX” puts the source on your clipboard for your thesis or slides.

Milestones

A century of structures

Each advance in the method removed a bottleneck. Heavy atoms and anomalous scattering solved phasing, cryo-cooling reduced radiation damage, synchrotrons and pixel detectors brought brighter beams and faster readout, and structure prediction made molecular replacement routine.

  1. 1895

    Röntgen discovers X-rays.

  2. 1912

    Von Laue, Friedrich and Knipping observe diffraction from a copper sulfate crystal, showing that X-rays are waves and crystals are lattices.

  3. 1913

    W. H. and W. L. Bragg formulate nλ = 2d sin θ and solve the first crystal structures, including NaCl.

  4. 1934

    Bernal and Crowfoot (Hodgkin) record sharp diffraction from hydrated pepsin crystals. Proteins are ordered.

  5. 1953

    Fibre diffraction by Franklin and Gosling underpins the Watson–Crick DNA double helix.

  6. 1954

    Perutz shows that heavy-atom derivatives can phase protein data (isomorphous replacement).

  7. 1958

    Kendrew’s myoglobin at 6 Å, the first protein structure (2 Å by 1960).

  8. 1965

    Phillips and colleagues solve lysozyme, the first enzyme structure.

  9. 1971

    The Protein Data Bank is founded with seven entries.

  10. 1985

    Nobel Prize to Hauptman and Karle for direct methods.

  11. 1990

    Hendrickson establishes MAD phasing with selenomethionine proteins.

  12. 2000

    Ribosomal subunit structures from the Steitz, Ramakrishnan and Yonath labs (Nobel Prize 2009).

  13. 2011

    First serial femtosecond crystallography at an X-ray free-electron laser: diffraction before destruction.

  14. 2020

    ESRF-EBS opens as the first fourth-generation high-energy synchrotron, with far brighter microbeams.

  15. 2021

    AlphaFold2 models become widely available and molecular replacement with predicted models becomes routine.

  16. 2024

    Nobel Prize in Chemistry to Baker, Hassabis and Jumper for protein design and structure prediction.

Going further

Textbooks, papers and resources

  1. B. Rupp, Biomolecular Crystallography: Principles, Practice, and Application to Structural Biology. Garland Science, 2009.
  2. J. Drenth, Principles of Protein X-ray Crystallography, 3rd ed. Springer, 2007.
  3. D. Blow, Outline of Crystallography for Biologists. Oxford University Press, 2002.
  4. C. Giacovazzo et al., Fundamentals of Crystallography, 3rd ed. IUCr/Oxford University Press, 2011.
  5. P. A. Karplus & K. Diederichs, “Linking crystallographic model and data quality.” Science 336, 1030–1033 (2012).
  6. P. R. Evans & G. N. Murshudov, “How good are my data and what is the resolution?” Acta Cryst. D69, 1204–1214 (2013).
  7. A. T. Brünger, “Free R value: a novel statistical quantity for assessing the accuracy of crystal structures.” Nature 355, 472–475 (1992).
  8. A. J. McCoy et al., “Phaser crystallographic software.” J. Appl. Cryst. 40, 658–674 (2007).

Online: RCSB PDB · wwPDB · CCP4 · Phenix · DIALS · MolProbity