Deuterium uptake and back-exchange of an HDX-MS peptide
ms_hdx_deuterium_uptake
Works out a peptide's deuterium uptake at each HDX-MS time point from neutral centroid masses and controls.
- Runs
- On the server
- Level
- Checked against a reference: a second implementation in Python by a separate agent of the same model family, exact rationals; PyHDX 0.4.3 on 42 cases
What it is
Returns a peptide's deuterium uptake at each HDX-MS time point from neutral centroid masses and its controls. Use when a person has measured centroids of one peptide, undeuterated, at labelling times and optionally maximally labelled, and asks for uptake or back-exchange. Not for a peptide's theoretical mass: use `ms_peptide_mass`; for an isotope envelope, use `ms_isotope_pattern`. Takes neutral masses in Da, not m/z. Refuses a maximal control not above the undeuterated one, and a peptide with no exchangeable amides.
Field: Analytical chemistry.
What it does
You give
undeuteratedCentroidMass(required): Neutral (uncharged) centroid mass of the undeuterated control; not m/z, not monoisotopic. Must be above 0 Da.timePoints(required): The labelling times; row k of the reply is timePoints[k]; label and mass are in inputsUsed.sequence: The peptide in one-letter codes, N to C, to count its backbone amides; give this or amideCount, not both. Leading and trailing white space is removed before the pattern is checked. Optional.amideCount: Stated backbone amides, for modified or non-standard residues; give this or sequence, not both. Must be at least 1 and at most 200. Optional.amideCountConvention: Which backbone amides a sequence counts; required with a sequence and the maximal control. Optional.maximallyLabelledCentroidMass: Neutral centroid mass of the maximally labelled control. Must be above 0 Da. Optional.
and 1 more, listed below
No request is recorded for this tool.
Limits
- Research arithmetic: each number follows from the formula, sequence or values you give, by the method and any constants named on the tool, and describes those inputs rather than the sample or instrument they came from.
- It is not an identification, a validated quantification or a check of an instrument, and it is not for diagnosis or treatment decisions.
- Computes uncorrected and back-exchange-corrected deuterium uptake for one peptide from neutral centroid masses; needs a maximally labelled control for corrected values; no replicate statistics, no peak picking or centroiding, no charge-state handling, no kinetics fitting, no residue-level resolution, no significance testing between states.
- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
It will not answer when
- the maximally labelled control is not heavier than the undeuterated control.
- the amide count under the stated convention is zero.
- the sequence contains X, which could be a proline, so the backbone amide count is not determined.
- B or Z in the sequence: the shared peptide check refuses an ambiguous residue.
Every input, with its units7 inputs
undeuteratedCentroidMass(required): Neutral (uncharged) centroid mass of the undeuterated control; not m/z, not monoisotopic. Must be above 0 Da.timePoints(required): The labelling times; row k of the reply is timePoints[k]; label and mass are in inputsUsed.sequence: The peptide in one-letter codes, N to C, to count its backbone amides; give this or amideCount, not both. Leading and trailing white space is removed before the pattern is checked. Optional.amideCount: Stated backbone amides, for modified or non-standard residues; give this or sequence, not both. Must be at least 1 and at most 200. Optional.amideCountConvention: Which backbone amides a sequence counts; required with a sequence and the maximal control. Optional.maximallyLabelledCentroidMass: Neutral centroid mass of the maximally labelled control. Must be above 0 Da. Optional.deuteriumFraction: Deuterium fraction of the labelling buffer; required with the maximal control. Must be above 0 and at most 1. Optional.
Every refusal, with its code9 refusals
| Code | When |
|---|---|
MAXIMAL_NOT_ABOVE_UNDEUTERATED | the maximally labelled control is not heavier than the undeuterated control. |
NO_EXCHANGEABLE_AMIDES | the amide count under the stated convention is zero. |
RESIDUE_X_UNRESOLVED | the sequence contains X, which could be a proline, so the backbone amide count is not determined. |
AMBIGUOUS_RESIDUE | B or Z in the sequence: the shared peptide check refuses an ambiguous residue. |
RESIDUE_NOT_IN_TABLE | a letter that is not one of the twenty residues, U, O or J. |
MZ_NOT_MASS | a mass is given as an m/z. |
CONFLICTING_ARGUMENT | a sequence and a stated amide count, or a convention with a stated amide count. |
MISSING_ARGUMENT | a maximally labelled control without a deuterium fraction, or without a sequence or a stated amide count. |
OUT_OF_RANGE | amideCount outside at least 1 and at most 200. |
The calculation
The method's equations, constants and worked example.
Equation 1
flagged BELOW_UNDEUTERATED when m < m0 (strictly)
| Symbol | Meaning |
|---|---|
U | uncorrected uptake (timePoints[k].uncorrectedUptake), Da |
m | centroid mass of the peptide at a labelling time (timePoints[k].centroidMass), Da |
m0 | centroid mass of the undeuterated control (undeuteratedCentroidMass), Da |
Source 1.
Equation 2
Dcorr = (m - m0) / (m100 - m0), not clipped
flagged ABOVE_MAXIMAL_CONTROL when m > m100, decided exactly on the inputs (equivalent to Dcorr > 1 in exact arithmetic)
| Symbol | Meaning |
|---|---|
Dcorr | relative uptake (timePoints[k].relativeUptake) |
m | centroid mass of the peptide at a labelling time (timePoints[k].centroidMass), Da |
m0 | centroid mass of the undeuterated control (undeuteratedCentroidMass), Da |
m100 | centroid mass of the maximally labelled control (maximallyLabelledCentroidMass), Da |
Source 1.
Equation 3
Dabs = Dcorr x N
| Symbol | Meaning |
|---|---|
Dabs | absolute uptake in amide equivalents (timePoints[k].absoluteUptake) |
Dcorr | relative uptake (timePoints[k].relativeUptake) |
N | backbone amides counted by amideCountConvention from sequence, or amideCount as stated |
Source 1.
Equation 4
flagged BACK_EXCHANGE_NEGATIVE when m100 - m0 > N x f, decided exactly
| Symbol | Meaning |
|---|---|
BE | back-exchange of the peptide, a fraction (backExchange) |
m0 | centroid mass of the undeuterated control (undeuteratedCentroidMass), Da |
m100 | centroid mass of the maximally labelled control (maximallyLabelledCentroidMass), Da |
N | backbone amides counted by amideCountConvention from sequence, or amideCount as stated |
f | deuterium fraction of the labelling buffer (deuteriumFraction) |
Source 1.
Equation 5
N = the residues after the first (exclude-first-residue) or after the first two (exclude-first-two-residues) that are not proline, every proline among them removed
or amideCount as stated
| Symbol | Meaning |
|---|---|
N | backbone amides counted by amideCountConvention from sequence, or amideCount as stated |
Source 2.
Conventions
- CENTROID_MASSES = intensity-weighted centroids: Fixed by the method; not an argument. Masses are intensity-weighted centroids; the tool cannot check this.
- UPTAKE_NOT_CONVERTED_TO_DEUTERONS = mass difference or amide equivalents: Fixed by the method; not an argument. Uptake is reported as a mass difference in Da or as amide equivalents, never converted to a count of deuterons.
- UPTAKE_NOT_CLIPPED = not clipped: Fixed by the method; not an argument. Relative and absolute uptake are not clipped; values above one or below zero are flagged, not changed.
- BACK_EXCHANGE_AS_FRACTION = 1: Fixed by the method; not an argument. Back-exchange is reported as a fraction of one, not as a percentage.
A definition, not a model: the equation states what the quantity means. A different convention gives a different number.
Worked example
Worked example: one case of hdx-deuterium-uptake@1.1.2, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- undeuteratedCentroidMass = 1000 Da
- timePoints[0].label = 30 s
- timePoints[0].centroidMass = 1001.6 Da
- timePoints[1].label = 10 min
- timePoints[1].centroidMass = 1003.52 Da
- timePoints[2].label = 0 s check
- timePoints[2].centroidMass = 999.9 Da
- maximallyLabelledCentroidMass = 1003.2 Da
- deuteriumFraction = 0.9
- sequence = ALPKVEF
- amideCountConvention = exclude-first-residue
Steps
- n = 5, from sequence, amideCountConvention; by equation 5; gives amideCount.
- gain = 3.2 Da, from maximallyLabelledCentroidMass, undeuteratedCentroidMass; by equation 2.
- u0 = 1.6 Da, from timePoints[0].centroidMass, undeuteratedCentroidMass; by equation 1; gives timePoints[0].uncorrectedUptake.
- d0 = 0.5, from u0, gain; by equation 2; gives timePoints[0].relativeUptake.
- a0 = 2.5, from d0, n; by equation 3; gives timePoints[0].absoluteUptake.
- be = 0.28888889, from gain, n, deuteriumFraction; by equation 4; gives backExchange.
Answer
amideCount = 5
timePoints[0].uncorrectedUptake = 1.6 Da
timePoints[0].relativeUptake = 0.5
timePoints[0].absoluteUptake = 2.5
backExchange = 0.28888889
Where these values came from: our own exact-arithmetic script and a hand-worked case; the second implementation's run(arguments).
At build the tool returned this answer within the tolerance the file states: every number relative 1e-12 (absolute 1e-15 below 1e-3, in each value's unit); counts, labels, formulas, strings, flags, statuses and codes exact; where one path carries more than one unit, or a logarithmic unit, absolute at the relative value times the smallest nonzero magnitude under it (the largest, for a logarithm).
Sources
Masson GR, Burke JE, Ahn NG, et al. Recommendations for performing, interpreting and reporting hydrogen deuterium exchange mass spectrometry (HDX-MS) experiments. Nat Methods 2019;16:595-602
Used for: Deuterium uptake and back-exchange of one HDX-MS peptide. At: figure 2, legend: the increase in mass from deuterium uptake, from the intensity-weighted centroids, p. 597; p. 599, section recommendation 1.11: Dcorr = (m − m0%)/(m100% − m0%); p. 599, section recommendation 1.11: Dabsolute = Dcorr × N, N the theoretical number of backbone amides in the peptide; p. 599, section recommendation 1.10: Back exchange = (1 − (m100% − m0%)/(N × Dfrac)) × 100, a percentage; the method reports the fraction before the × 100 (BACK_EXCHANGE_AS_FRACTION).
Read in full, 24 November 2026PyHDX 0.4.3 (Smit JH, Krishnamurthy S et al.), stored reference values, correct_d_uptake(drop_first, d_percentage): a program's convention, no paper read
Used for: Deuterium uptake and back-exchange of one HDX-MS peptide. At: section correct_d_uptake: drop_first n-terminal residues as fully back-exchanging, prolines removed (lines 105-157).
Read in full, 24 November 2026
How it is checked
- Level
Checked against a reference.
- Checked against
Our own exact-arithmetic script and a hand-worked case.
- Cases
No case set is linked to this version.
- Not checked
The exclude-first-two-residues convention rests on PyHDX's code (a program's convention, no paper read), so the PyHDX comparison checks only its transcription; no outside program was run on Masson's back-exchange (HaDeX2 1.0.0 computes it with the proton's mass per exchange, not run), so it is checked by the exact script and the second implementation only; Masson's supplementary example tables are unread; replicate statistics are not offered; one session wrote the first script and the engine, and the second implementation is by a separate agent of the same model family.
Changes to its methods0 changes
No change is logged for these method versions.