Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Binding free energy (FEP)

Computes an absolute protein–ligand binding free energy from molecular dynamics, by double decoupling. It is a tab of the Protein module, and the natural next step after Docking: docking ranks candidates in minutes, this puts a free energy on one of them in hours to days.

What it does

The ligand is switched off twice:

  1. Complex leg — inside the solvated protein, with a restraint holding it in the site while its interactions vanish.

  2. Solvent leg — alone in a water box.

The difference between the two is how much more the ligand likes the pocket than it likes water. Two corrections turn that into a binding free energy at the standard state:

TermWhat it is
Coupling in the complexthe complex leg
Coupling in waterthe solvent leg, subtracted
Restraint, standard statethe translational and rotational freedom the ligand gives up on binding. Analytic — no simulation, no error bar
Restraint on the bound complexthe cost of holding the ligand at its average position while it is still fully interacting

The result panel lists all four, so you can see which one dominates.

The restraint

A Boresch restraint fixes one distance, two angles and three dihedrals between three receptor atoms and three ligand atoms. Together these hold the ligand’s position and its orientation, which is what makes the decoupled end state well defined: without it, a ligand with no interactions left simply wanders out of the site and the calculation never converges.

The six anchor atoms are chosen automatically, after equilibration rather than from the docked pose, because a pose comes from a rigid receptor and relaxes as soon as the protein and the water can move. Backbone atoms are preferred, since a side chain can rotate away from the frame it is supposed to define, and angles near 0° or 180° are rejected, where the restraint would be ill-defined.

Force constants are given in kJ/mol/Ų and kJ/mol/rad², and default to 41.84 of each (the 10 kcal/mol that is usual in the Boresch literature). Stiffer restraints converge the decoupling faster but make the restraint-on term larger, so the work moves from one place to another rather than going away.

Restraint term in the bound state

Protocols

ProtocolWindows per legPer windowSimulated time in total
Quick look1150 ps≈ 1.2 ns
Standard (default)17500 ps≈ 19 ns
Tight221 ns≈ 48 ns

The sidebar shows the total before you start. Wall-clock depends on the machine and on the platform. On an Apple M5 Max with the OpenCL platform, a 47,000-atom complex runs at about 235 ns/day, which puts a Standard run at roughly two hours; the CPU platform is an order of magnitude slower.

Memory

Each window runs in its own process. That is not a performance choice: OpenMM’s GPU platforms leak a few kilobytes of memory on every step and never give it back, so a Standard run’s ten million steps would otherwise leave tens of gigabytes behind in the application. A window’s memory is returned when its process ends, so the app’s own footprint stays flat however long the protocol is. Nothing is lost if a window cannot start in a process of its own — it runs in the application instead.

Quick look is for checking the setup, not for a number. Its windows are far too short to converge, and the result carries a warning saying so. Use it to confirm the system builds, the restraint anchors look sensible and nothing falls over, then run Standard.

Input

A complex in one file. When the PDB you load holds something that could be a ligand, a Ligand in that file menu appears listing the candidates, largest first; waters, ions and the usual crystallisation additives are left out. Choosing one splits the file: that residue becomes the ligand, and everything else — including any other hetero group, which may be a cofactor the site needs — stays with the receptor. PDB stores no bond orders, so they are perceived from the geometry; that needs the hydrogens to be there, and the panel shows the resulting SMILES so you can check it. Choosing none puts the whole file back and waits for a separate ligand file.

Several poses in one file. A multi-record SDF — what a docking run writes — gets a Pose menu listing every record with its score, instead of silently taking the first.

Hydrogens

Everything that goes into the boxes is made hydrogen-complete before anything is computed, and the log says what was done to each part.

The receptor is repaired and protonated at the pH you set: missing heavy atoms are rebuilt first, then hydrogens are placed, and the log gives the count. If any residue comes through with heavy atoms but no hydrogen at all — a non-standard residue the repair step does not recognise, or a water that arrived bare — the run stops and names it rather than parameterising something that is not the molecule you meant. Hydrogens that were already in your file are kept; only if the force field then rejects a residue are they thrown away and replaced, which is almost always a naming convention from another program rather than a chemical problem. That retry is automatic and appears in the log.

The ligand is given every hydrogen its structure implies. This matters most for a ligand taken out of a crystal complex, which has none at all: for etravirine out of a 3 Å structure, the 15 hydrogens it needs are placed and then relaxed with the heavy atoms pinned, landing 0.09 Å from the ones in a fully protonated copy of the same pose. The relaxation is there because those positions go straight into the RESP calculation.

The pH does not reach the ligand. Its protonation state is the one drawn in the file, so an acid drawn neutral stays neutral. Because the hydrogens follow the structure, a declared charge that disagrees with it is refused rather than silently computed: the charge field is filled in from the structure whenever a ligand is loaded or handed over from Docking, and if you want the other protonation state, change the structure and not the number. A flat structure — every atom in one plane, which is a 2D drawing rather than a pose — is refused for the same reason.

The protein uses ff14SB, the ligand GAFF with gas-phase RESP charges (HF/6-31G*), the combination the Solvation module benchmarked for neutral molecules, and the water model is yours to choose.

A charged ligand runs, with a warning: decoupling a net charge in two periodic boxes of different size leaves finite-size errors this calculation does not correct, and the Solvation module’s ion recipe is calibrated for SPC/E water, not for TIP3P with ff14SB. Compare charged ligands only with ligands of the same charge.

Reading the result

The headline is ΔG of binding in kcal/mol, with the statistical uncertainty from MBAR. That uncertainty is the precision of this calculation, not its accuracy: it says how well the windows sampled, and says nothing about whether the force field, the protonation states or the starting pose were right.

When to disbelieve it

Buried pockets and GCMC water

While the ligand is switched off, its pocket must either fill with water or close up. In a buried pocket, and above all in one that only opens when the ligand binds, neither happens within a window of half a nanosecond. The reference state is then an empty hole inside the protein, and switching the ligand back on from it releases far too much free energy.

This is not hypothetical. On HIV-1 reverse transcriptase with etravirine, the decoupled pocket held 1–7 waters where its volume holds about 17, the protein did not close around it, and the result was −29.8 kcal/mol against about −12.5 measured: roughly 14 missing waters at about 1.2 kcal/mol each.

Every run now checks this. In each window the module counts the waters inside the space the ligand fills, and the protein heavy atoms around it. It compares the fully decoupled complex with the same volume in the water leg. When the pocket holds less than half the water that the same volume holds in bulk, and the protein has not closed in either, the headline reads not a result. The computed number stays in the terms table and the files, marked as untrustworthy.

GCMC water in the binding site (Protocol settings) is the fix. Grand-canonical Monte Carlo moves insert and remove water molecules in a sphere around the ligand, at the chemical potential of bulk TIP3P (−6.09 kcal/mol). The pocket can then fill without waiting for water to diffuse in. When it is on:

It needs TIP3P water. On a Mac GPU it adds about 2 hours to a Standard run on a 225,000-atom box; the estimate shows the figure for your system. If the pocket still stays dry with GCMC on, the panel says so: either the pocket is genuinely dry, or it needs longer.