Deuterium uptake and back-exchange of one HDX-MS peptide, version 1.1.2
hdx-deuterium-uptake@1.1.2: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference; Masson 2019 read; PyHDX 0.4.3 on uptake and amide count, not back-exchange; amide convention the caller's. Reference kind: our own exact-arithmetic script and a hand-worked case.
Checked by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with the stated reference within the stated tolerance. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.
Every version of this method · Every method · What the levels mean
Version 1.1.2
Level: Checked against a reference; Masson 2019 read; PyHDX 0.4.3 on uptake and amide count, not back-exchange; amide convention the caller's. Reference kind: our own exact-arithmetic script and a hand-worked case. hdx-deuterium-uptake@1.1.2
Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.
Verification statement: Uncorrected uptake, Dcorr, Dabsolute and back-exchange as Masson et al. 2019 recommendations 1.10 and 1.11 print them (p. 599; Fig. 2 legend, p. 597), read at source 24 November 2026 in the version of record (SHA-256 b19270fb…); back-exchange as a fraction, Masson's percentage before its × 100. The amide-count conventions follow PyHDX 0.4.3's correct_d_uptake(drop_first = 1 or 2), a program's convention, no paper read; Stofella et al. 2022 (p. 814) states the exclude-first-residue count, and Bai et al. 1993 (p. 79) the reason for the second. Checked against a second implementation in Python by a separate agent of the same model family (46 cases, 29 at the edges) and PyHDX 0.4.3 (relative and absolute uptake and the amide count on 42 cases, 185 values); no program run computes Masson's back-exchange. Research arithmetic.
Uncorrected uptake at each labelling time from neutral centroid masses, and with a maximally labelled control the relative and absolute uptake and the peptide's back-exchange, on a stated amide count.
- How results are reported: Each number in the call arrives as a double and is read as the exact rational value of the shortest decimal that converts back to that double (0.7 is read as 7/10; −0 as 0). Every flag is decided exactly on those rationals: ABOVE_MAXIMAL_CONTROL when m > m100, BELOW_UNDEUTERATED when m < m0, BACK_EXCHANGE_NEGATIVE when m100 − m0 > N·f; they are listed in that order. The engine computes each reported number in double arithmetic; against the exact result on the same rationals it agrees within relative 1e-12, or within these absolute bounds, whichever is larger, with ε = 2^-50 × the largest mass in the call, in Da: ε on uncorrected uptake; ε(1 + |Dcorr|)/G on relative uptake, G = m100 − m0; N times that on absolute uptake; ε/(N·f) + 2^-50 on back-exchange. A flag is decided on the inputs, not on the rounded value, so a reported Dcorr can equal 1, or a reported back-exchange be zero or slightly positive, with its flag set. Worked steps print at most eight significant figures. Checks run in this order, the first failure answered: each argument's own reading and range (invalid-input: OUT_OF_RANGE for a mass at or below 0 Da, a deuterium fraction outside (0, 1] or an amide count outside 1 to 200; MZ_NOT_MASS for a mass in Th or m/z); then CONFLICTING_ARGUMENT for a sequence with a stated amide count, then for a convention with a stated amide count; with a maximal control, MISSING_ARGUMENT for no deuterium fraction, then for neither a sequence nor an amide count, then CONVENTION_REQUIRED for a sequence without a convention; then, whenever a sequence is given, with or without a maximal control, RESIDUE_X_UNRESOLVED, then AMBIGUOUS_RESIDUE, then RESIDUE_NOT_IN_TABLE; then MAXIMAL_NOT_ABOVE_UNDEUTERATED; then NO_EXCHANGEABLE_AMIDES. amideCountDefinition reads 'N = <n> backbone amides of <sequence>: positions two onward' (three onward under exclude-first-two-residues), then ', no proline in them', ', proline at <p> excluded' or ', prolines at <p1>, <p2> and <pk> excluded' with each excluded proline's one-based position; with a stated count it reads 'N = <n> backbone amides, as stated'.
- Uncertainty: No replicate statistics; the uncertainty of each centroid is not given and not propagated.
- Reference, as its record states it: a second implementation in Python by a separate agent of the same model family, exact rationals; PyHDX 0.4.3 on 42 cases
- Computes through:
peptide-composition@1.0.4 - Level confirmed by this project's ruling of 25 November 2026
What this page can and cannot show
What was checked
46 cases in 1 file, linked by this exact version.
Run through the tool at build against our own exact-arithmetic script and a hand-worked case: 33 agree within the tolerance the file states, 13 refuse as the case expects, 0 differ, 0 were not run.
- File 1, 46 cases
- Where the expected values came from: our own exact-arithmetic script and a hand-worked case
- Recorded on: 2026-11-14
- Reference: second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
- Tolerance as the file states it: 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
Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.
What was 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.
Definition or model
A closed form: the result follows from the inputs by the equations alone.
Equations
Equation 1
U = m - m0
flagged BELOW_UNDEUTERATED when m < m0 (strictly)
| Symbol | Meaning and unit |
|---|---|
| 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: 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, figure 2, legend: the increase in mass from deuterium uptake, from the intensity-weighted centroids, p. 597, version of record (the publisher's PDF, created 30 September 2019); read in full on 2026-11-24 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning b19270fb73c4. Free to read (CC BY 4.0 (the article's own notice, p. 602)), checked 2026-11-24. No erratum found (searched crossref (10.1038/s41592-019-0459-y): no update or erratum relation, web search: the title with correction, erratum or author correction), 2026-11-24.
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 and unit |
|---|---|
| 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: 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, p. 599, section recommendation 1.11: Dcorr = (m − m0%)/(m100% − m0%), version of record (the publisher's PDF, created 30 September 2019); read in full on 2026-11-24 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning b19270fb73c4. Free to read (CC BY 4.0 (the article's own notice, p. 602)), checked 2026-11-24. No erratum found (searched crossref (10.1038/s41592-019-0459-y): no update or erratum relation, web search: the title with correction, erratum or author correction), 2026-11-24.
Equation 3
Dabs = Dcorr x N
| Symbol | Meaning and unit |
|---|---|
| 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: 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, p. 599, section recommendation 1.11: Dabsolute = Dcorr × N, N the theoretical number of backbone amides in the peptide, version of record (the publisher's PDF, created 30 September 2019); read in full on 2026-11-24 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning b19270fb73c4. Free to read (CC BY 4.0 (the article's own notice, p. 602)), checked 2026-11-24. No erratum found (searched crossref (10.1038/s41592-019-0459-y): no update or erratum relation, web search: the title with correction, erratum or author correction), 2026-11-24.
Equation 4
BE = 1 - (m100 - m0) / (N x f)
flagged BACK_EXCHANGE_NEGATIVE when m100 - m0 > N x f, decided exactly
| Symbol | Meaning and unit |
|---|---|
| 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: 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, 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), version of record (the publisher's PDF, created 30 September 2019); read in full on 2026-11-24 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning b19270fb73c4. Free to read (CC BY 4.0 (the article's own notice, p. 602)), checked 2026-11-24. No erratum found (searched crossref (10.1038/s41592-019-0459-y): no update or erratum relation, web search: the title with correction, erratum or author correction), 2026-11-24.
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 and unit |
|---|---|
| N | backbone amides counted by amideCountConvention from sequence, or amideCount as stated |
Source: PyHDX 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, section correct_d_uptake: drop_first n-terminal residues as fully back-exchanging, prolines removed (lines 105-157), the 0.4.3 wheel's source file (pyhdx-0.4.3-py2.py3-none-any.whl, SHA-256 a0829a27…); the authors' code; read in full on 2026-11-24 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 6ffe252dcf40. Free to read (MIT (PyHDX)), checked 2026-11-24. No erratum found (searched the file as installed), 2026-11-24.
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.
Constants
Constants: none used.
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= 5timePoints[0].uncorrectedUptake= 1.6 DatimePoints[0].relativeUptake= 0.5timePoints[0].absoluteUptake= 2.5backExchange= 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).
Who worked this case: not recorded.
What it refuses, and its input ranges
MAXIMAL_NOT_ABOVE_UNDEUTERATED: the maximally labelled control is not heavier than the undeuterated control Next: Check the control centroids, or omit the maximal control to get uncorrected uptake only.NO_EXCHANGEABLE_AMIDES: the amide count under the stated convention is zero Next: Give a longer peptide or a stated amide count.RESIDUE_X_UNRESOLVED: the sequence contains X, which could be a proline, so the backbone amide count is not determined Next: Replace X with the residue if it is known, or give a stated amide count instead of the sequence.AMBIGUOUS_RESIDUE: B or Z in the sequence: the shared peptide check refuses an ambiguous residue Next: Replace B or Z with the residue if it is known, or give a stated amide count instead of the sequence.RESIDUE_NOT_IN_TABLE: a letter that is not one of the twenty residues, U, O or J Next: Use one-letter codes in upper case, or give a stated amide count instead of the sequence.MZ_NOT_MASS(invalid input): a mass is given as an m/zCONFLICTING_ARGUMENT(invalid input): a sequence and a stated amide count, or a convention with a stated amide countMISSING_ARGUMENT(invalid input): a maximally labelled control without a deuterium fraction, or without a sequence or a stated amide count
Input ranges: amideCount: at least 1 and at most 200; outside it, invalid input (OUT_OF_RANGE).
Flags and notes a reply may carry
A flag says a number must be read differently:
ABOVE_MAXIMAL_CONTROL: Uptake exceeds the maximally labelled control.BELOW_UNDEUTERATED: The labelled centroid is lighter than the undeuterated control.BACK_EXCHANGE_NEGATIVE: The control gained more than the stated amides and buffer allow; check the amide count, the convention and the deuterium fraction.
A note a reply may carry:
NO_MAXIMAL_CONTROL: No maximally labelled control was given, so only uncorrected uptake is returned; a deuterium fraction or amide count, if given, is not used.
Changes
No correction is logged for hdx-deuterium-uptake@1.1.2.
Tools that use it
Cite this version
Deuterium uptake and back-exchange of one HDX-MS peptide. Drybench; hdx-deuterium-uptake@1.1.2; https://www.drybench.com/methods/m/hdx-deuterium-uptake/1.1.2 (accessed [date]).