In this version Lab 1 of MD-O is published: protonation and charge. The lab on the structure file (crystal waters, occupancy, B-factor) has become a separate module: MD-PDB. The curves are computed in your browser right now; the structure, coordinates and pdb2gmx results come from this project's real files and from runs that were actually made.
MD-O · Preparing a protein for MD

Where do the hydrogens go? Protonation and charge

Hydrogens are invisible in an X-ray structure: the 1UBQ file has 602 heavy atoms and not a single hydrogen. The MD program adds them from the force field, and in doing so it decides once whether each acidic and basic group is charged or neutral. That decision does not change for the whole simulation. In the lab you choose the pH with a buffer; in MD the pH is hidden inside these decisions.

Discoveries: 0 / 4
Experimental bridge

The equation you know from buffers

When you make a buffer you use the Henderson-Hasselbalch equation: pH = pKa + log([A⁻] / [HA]). The same equation holds for every ionizable group in a protein. When the pH equals the pKa, half of the group is protonated; each unit the pH moves away shifts the ratio of the two forms by a factor of ten. Choose a group and change the pH.

Group
pKa (model peptide)
Protonated fraction
Mean charge of the group

The pKa values were measured by potentiometric titration in alanine pentapeptides in 0.1 M KCl at 25 °C (Thurlkill, Grimsley, Scholtz and Pace 2006, Protein Sci 15:1214): α-carboxyl and Asp 3.67, Glu 4.25, His 6.54, α-amino 8.00, Tyr 9.84, Lys 10.40. For arginine 13.8 (Fitch et al. 2015, Protein Sci 24:752). Inside a protein these values can shift depending on neighboring groups; you will see this in the workshop.

1 · Workshop

How does the charge of ubiquitin change with pH?

The sequence of 1UBQ has 7 Lys, 4 Arg, 1 His, 5 Asp, 6 Glu and 1 Tyr; no Cys. To these come the two termini: the amino group of Met1 and the carboxyl group of Gly76. The view shows the protein at the real coordinates from this project's pdb2gmx output (protein.gro). Each ionizable group has a halo around it: blue for positive, red for negative charge. The size and brightness of the halo is the probability that the group is charged at that pH. Move the pH slider or play the titration; you can rotate the protein by dragging.

pKa values
Net charge
Sum of positive charges / sum of negative charges
Isoelectric point (computed)
Probability that His68 is charged
Difference between the simulation's fixed charge (0 e) and the mean charge at this pH

Net charge, model pKaBand with pKa values measured in ubiquitinDashed: middle of the ranges in the measured modepdb2gmx's assignment in this project: 0 e, independent of pH (dashed line; diamond at pH 7)

Calculation: the charge of each group comes from Henderson-Hasselbalch, and the groups are treated as independent of each other. The "Measured in ubiquitin" mode uses values measured by NMR: the five Asp between 3.1 and 3.8, the six Glu between 3.8 and 4.5 (Sundd et al. 2002, Biochemistry 41:7586); the band is drawn with the two ends of these ranges, the halos in the view with their middles. For the amino group of Met1, 9.14 (Oregioni et al. 2017, Sci Rep 7:43748; 21.5 °C). Groups without a value measured in ubiquitin keep the model value. The C-terminal carboxyl was measured too (Sundd et al. 2002), but this calculation leaves it at the model value (3.67); around pH 7 its effect is negligible. The isoelectric point is a model result computed under these assumptions, not a measurement.

2 · Bench

Where did pdb2gmx put the hydrogen of His68?

The charge of a histidine depends on how many hydrogens its ring carries. X-rays do not see these hydrogens; pdb2gmx places them, and it follows a rule when it does. First follow the rule in four steps on the real geometry of His68; then change the rule's two settings yourself.

The rule in four steps

Try it yourself: the criterion map

On the map every oxygen within 0.7 nm of the two nitrogens of His68 is a point: its distance to the nitrogen on the horizontal axis, its angle at the trial hydrogen on the vertical axis. The criterion is an acceptance window at the top left: -dist moves the right edge of the window, -angle its bottom edge. An oxygen that enters the window counts as a "hydrogen bond". The flow chart beside it shows which path the rule takes. Then actually run pdb2gmx and compare the result.

-angle: bottom edge of the window
Candidate oxygen for ND1 (circle)Candidate oxygen for NE2 (triangle)In the window: counts as a bondDashed lines: default criterion (0.30 nm, 135°)

Input-dist (nm)-angleHis68Number of hydrogen bondsCharge of His68Total charge of the protein

The "There are N hydrogen bonds" total in the pdb2gmx log changes only with the distance criterion: in all 48 embedded cells it is the same for all six angles (83 at 0.25 nm, 174 at 0.30 nm, 712 at 0.60 nm). The histidine decision, by contrast, uses distance and angle together; the program applies two different criteria. The total charge column is the protein as written by pdb2gmx (0 e with HISE and HISD); HISH makes the system +1 e and stops grompp in a setup without ions (MD-FAIL, case 3).

The results come from 96 pdb2gmx runs actually made with this project's input (1UBQ_protein_only.pdb and 1UBQ.pdb, which also contains the crystal waters): 8 distances × 6 angles × 2 inputs, GROMACS 2023.3, -ff amber99sb-ildn -water tip3p -ignh. The rule is from the GROMACS 2023 source code (hizzie.cpp): the trial hydrogen is placed 0.1 nm from the nitrogen, pointing away from the two neighboring ring atoms; an oxygen counts as a bond if its distance to the nitrogen is shorter than -dist and its angle at the hydrogen is larger than -angle. The map and the flow chart apply this rule in the browser with the same coordinates and give the same decision as pdb2gmx in all 48 runs without crystal waters. The cone in the view is schematic (the projection of the angle onto the screen). "Number of hydrogen bonds" is the number pdb2gmx writes to its log for the whole protein.

Open

At what pH is the protein uncharged?

In the workshop, find the pH where the net charge is zero.

With the slider, find a pH where the net charge is smaller than 0.1 e.
Open

Why does the pKa inside the protein matter?

In the workshop, switch to the "Measured in ubiquitin" mode; look at the isoelectric point and at low pH.

In the measured mode, bring the pH both below 5 and above 7.
Open

What decided the form of His68?

On the bench, run pdb2gmx with different criteria.

Make two runs that give two different results for His68.
Open

Do the crystal waters enter the decision?

With the same criterion, run once with the crystal waters and once without.

Run both inputs with the same -dist and -angle.
3 · Back to the protein

This project's pdb2gmx run

In this project ubiquitin was prepared with this command: gmx pdb2gmx -f 1UBQ_protein_only.pdb -ff amber99sb-ildn -water tip3p -ignh. The input is 1UBQ with the crystal waters removed. Below are the real lines of the log and the decisions made.

pdb2gmx.log (24 September 2026, GROMACS 2023.3)
there were 0 atoms with zero occupancy and 28 atoms with occupancy unequal to one (out of 602 atoms)
Analysing hydrogen-bonding network for automated assignment of histidine
 protonation. 116 donors and 117 acceptors were found.
There are 174 hydrogen bonds
Will use HISE for residue 68
Identified residue MET1 as a starting terminus.
Identified residue GLY76 as a ending terminus.
Now there are 76 residues with 1231 atoms
Total charge 0.000 e
DecisionIn this projectWhat does it mean?
Hydrogens-ignh; 629 hydrogens added to 602 heavy atoms (1,231 atoms)Hydrogens in the input are ignored; all of them are rebuilt from the residue definitions of the force field. 1UBQ has no hydrogens anyway.
Asp, Glu, Lys, Arg5 Asp and 6 Glu negative, 7 Lys and 4 Arg positivepdb2gmx does not ask for a pH; this is the usual assignment for neutral pH. By the model pKa values all these groups are in this state more than 99% of the time at pH 7.
His68HISE (hydrogen on NE2, uncharged)An automatic decision based on hydrogen bonds; neither nitrogen of His68 has a protein acceptor within 0.3 nm, so the rule gave the default HISE.
TerminiMet1 NH₃⁺ (H1, H2, H3), Gly76 COO⁻ (OC1, OC2)Both termini are charged; they balance each other.
Total charge0 eNo ions are needed to neutralize. Adding salt is a separate decision (this project's S4 scenario: 0.15 M NaCl).
Crystal watersRemoved from the input (58 waters)Had they been kept, the His68 decision would not have changed (as you saw on the bench); the water box is added separately with solvate.

Fixed protonation: these charges do not change during the MD run. With the model pKa, His68 would be charged in about a quarter of the molecules at pH 7 (26%); the simulation represents this with a single form, HISE. Anyone who wants another form chooses each histidine by hand with pdb2gmx -his. There are also constant-pH MD methods that let protonation change during the run; they are not the subject of this lab. Next steps: the box and its images in MD-PBC, minimization and equilibration in MD-EQ.

4 · Test yourself

Six questions

Next steps: MD-PDB · The structure file (occupancy, B-factor, crystal waters), MD-PBC · The box without edges (the box and its images) and MD-EQ · Minimization and equilibration.

Model: the charge curves in the workshop are computed in the browser with Henderson-Hasselbalch, assuming the groups do not affect each other. The structure and coordinates come from this project's 1UBQ.pdb (RCSB, 1.8 Å, CC0) and protein.gro files; the pdb2gmx results from real runs. The molecule drawings use real coordinates; atom radii are reduced for readability.

Terms in this module

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