Reporter-ion correction for reagent isotopic impurity, version 2.0.0
isobaric-impurity-correction@2.0.0: 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; Percent of reagent total only, as MSnbase documents it; pyOpenMS 3.6.0 agrees. Research arithmetic. Reference kind: our own exact-arithmetic script and a hand-worked case; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, exact rationals (Python fractions) on the exact value of each input double, each output rounded once to the nearest double; not an outside program.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Every version of this method · Every method · What the levels mean
Version 2.0.0
Level: Checked against a reference; Percent of reagent total only, as MSnbase documents it; pyOpenMS 3.6.0 agrees. Research arithmetic. Reference kind: our own exact-arithmetic script and a hand-worked case; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, exact rationals (Python fractions) on the exact value of each input double, each output rounded once to the nearest double; not an outside program. isobaric-impurity-correction@2.0.0
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: Unmixes reporter intensities by an exact solve on the certificate's impurities stated as percent of each reagent's total signal, the basis MSnbase's purityCorrect documentation gives (read at source); checked against an exact-rational script and MSnbase's printed iTRAQ 4-plex matrix rebuilt from its certificate, a fresh agent's second implementation on 38 cases, and pyOpenMS 3.6.0's own matrices on 8 certificate cases. MSnbase was not run (no R). A certificate stated relative to the main peak is refused: no document read gives that basis. Research arithmetic.
Reporter intensities corrected for the reagent lot's isotopic impurities: a matrix from the certificate's percentages of each reagent's total signal, each entry naming its destination channel, solved exactly; a channel below zero is withheld.
- 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 (the decimal JavaScript's Number-to-String gives: 0.7 is read as 7/10, not as the double's binary value; −0 is read as 0). Every range end, refusal at a bound and withholding decision is made exactly on those rationals. Each reported number is the exact result rounded once to the nearest double. A percentage below zero is invalid-input OUT_OF_RANGE (the kit's bound). The channel checks run in this order: SENTINEL_AS_CHANNEL, a channel named twice (DUPLICATE_NAME), UNKNOWN_DESTINATION, SELF_DESTINATION, a measured destination named twice in one reagent (DUPLICATE_NAME); two or more outside-measured-channels cells of one reagent are summed.
- Uncertainty: No uncertainty is given; the certificate's percentages carry none here.
- Reference, as its record states it: an exact-rational script that rebuilds MSnbase's printed matrix from its certificate; a fresh agent's second implementation; pyOpenMS 3.6.0's matrices on 8 certificate cases
- Level confirmed by this project's ruling of 25 November 2026
What this page can and cannot show
What was checked
89 cases in 3 files, linked by this exact version.
Run through the tool at build against our own exact-arithmetic script and a hand-worked case; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, exact rationals (Python fractions) on the exact value of each input double, each output rounded once to the nearest double; not an outside program: 74 agree within the tolerance the file states, 15 refuse as the case expects, 0 differ, 0 were not run.
File 1, 14 cases
- Where the expected values came from: our own exact-arithmetic script and a hand-worked case
- Recorded on: 2026-11-25
- Reference: exact rational script (Python fractions), 3.13.18; licence PSF-2.0
- Tolerance as the file states it: Corrected intensities and matrix fractions within absolute 1e-9 (each rounded once from an exact solve); channels, texts, statuses and codes exact
File 2, 37 cases
- Where the expected values came from: an outside program, second implementation (Python 3.13) 2026-11-14
- Recorded on: 2026-11-25
- 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
File 3, 38 cases
- Where the expected values came from: our own exact-arithmetic script and a hand-worked case
- Recorded on: 2026-11-25
- Reference: second implementation (Python 3.13), 2026-11-24; licence PSF-2.0
- Tolerance as the file states it: every number relative 1e-12 (absolute 1e-15 below 1e-3, in each value's unit); counts, labels, 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
MSnbase was not run (not packaged here; pyOpenMS 3.6.0 was); i-Tracker (Shadforth 2005) was read and does not state a basis; a certificate stated relative to the main peak is refused, not converted, since no document read gives that basis; no plex layout is encoded, so the caller maps each certificate cell to its channel; co-isolation interference and ratio compression are not corrected; one session wrote the script and the engine, and the second implementation is by an 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
of reagent total: e_ij = p_ij / 100, e_ii = 1 - sum(p_i) / 100
sum(p_i) includes outside
| Symbol | Meaning and unit |
|---|---|
| p_ij | certificate percentage of reagent i observed at channel j; a cell the certificate leaves out is zero, % |
| sum(p_i) | the sum of all of reagent i's impurity percentages, those to outside-measured-channels included, % |
| p_i,out | reagent i's percentages to outside-measured-channels, summed, % |
| M | the impurity matrix, M[i][j] = e_ij (impurityMatrix[i].observedIn[j].fraction) |
| e_ij | fraction of reagent i's signal observed at channel j |
| y_j | observed intensity at channel j |
| x_i | corrected intensity of reagent i |
Source: Gatto L, Lilley KS. MSnbase, purityCorrect and makeImpuritiesMatrix documentation, man/purityCorrect-methods.Rd (Bioconductor; GitHub lgatto/MSnbase, master), section the impurities matrix: reporter ions along the columns, percentages along the rows; the iTRAQ 4-plex example, the documentation file as retrieved; read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 7abdb73c670d. Free to read (Artistic-2.0 (MSnbase, Bioconductor)), checked 2026-11-11. No erratum found (searched the file as retrieved), 2026-11-11.
Equation 2
outsideMeasuredChannels_i = p_i,out / 100
p_i,out the sum of the reagent's outside-measured-channels cells, two or more summed (MS-F9)
| Symbol | Meaning and unit |
|---|---|
| p_ij | certificate percentage of reagent i observed at channel j; a cell the certificate leaves out is zero, % |
| sum(p_i) | the sum of all of reagent i's impurity percentages, those to outside-measured-channels included, % |
| p_i,out | reagent i's percentages to outside-measured-channels, summed, % |
| M | the impurity matrix, M[i][j] = e_ij (impurityMatrix[i].observedIn[j].fraction) |
| e_ij | fraction of reagent i's signal observed at channel j |
| y_j | observed intensity at channel j |
| x_i | corrected intensity of reagent i |
Source: Gatto L, Lilley KS. MSnbase, purityCorrect and makeImpuritiesMatrix documentation, man/purityCorrect-methods.Rd (Bioconductor; GitHub lgatto/MSnbase, master), section the impurities matrix: reporter ions along the columns, percentages along the rows; the iTRAQ 4-plex example, the documentation file as retrieved; read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 7abdb73c670d. Free to read (Artistic-2.0 (MSnbase, Bioconductor)), checked 2026-11-11. No erratum found (searched the file as retrieved), 2026-11-11.
Equation 3
y_j = sum over i of e_ij x_i, solved exactly for x
a value below zero withheld
a value of exactly zero is reported as zero, not withheld
the decision is exact
| Symbol | Meaning and unit |
|---|---|
| p_ij | certificate percentage of reagent i observed at channel j; a cell the certificate leaves out is zero, % |
| sum(p_i) | the sum of all of reagent i's impurity percentages, those to outside-measured-channels included, % |
| p_i,out | reagent i's percentages to outside-measured-channels, summed, % |
| M | the impurity matrix, M[i][j] = e_ij (impurityMatrix[i].observedIn[j].fraction) |
| e_ij | fraction of reagent i's signal observed at channel j |
| y_j | observed intensity at channel j |
| x_i | corrected intensity of reagent i |
Ruling of this project: 11 November 2026, section "2. Reasoning". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
Conventions
EXACT_SOLVE_NO_CLIPPING= exact solve: Fixed by the method; not an argument. The system is solved exactly; a channel below zero is withheld, never clipped to zero or fitted by non-negative least squares.
Constants
Constants: none used.
Worked example
Worked example: one case of isobaric-impurity-correction@2.0.0, 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
- channels[0].channel = 114
- channels[0].observedIntensity = 969
- channels[0].impurities[0].destination = 115
- channels[0].impurities[0].percentage = 5.9 %
- channels[0].impurities[1].destination = 116
- channels[0].impurities[1].percentage = 0.2 %
- channels[0].impurities[2].destination = outside-measured-channels
- channels[0].impurities[2].percentage = 1 %
- channels[1].channel = 115
- channels[1].observedIntensity = 1999
- channels[1].impurities[0].destination = 114
- channels[1].impurities[0].percentage = 2 %
- channels[1].impurities[1].destination = 116
- channels[1].impurities[1].percentage = 5.6 %
- channels[1].impurities[2].destination = 117
- channels[1].impurities[2].percentage = 0.1 %
- channels[2].channel = 116
- channels[2].observedIntensity = 3046
- channels[2].impurities[0].destination = 115
- channels[2].impurities[0].percentage = 3 %
- channels[2].impurities[1].destination = 117
- channels[2].impurities[1].percentage = 4.5 %
- channels[2].impurities[2].destination = outside-measured-channels
- channels[2].impurities[2].percentage = 0.1 %
- channels[3].channel = 117
- channels[3].observedIntensity = 3829
- channels[3].impurities[0].destination = 115
- channels[3].impurities[0].percentage = 0.1 %
- channels[3].impurities[1].destination = 116
- channels[3].impurities[1].percentage = 4 %
- channels[3].impurities[2].destination = outside-measured-channels
- channels[3].impurities[2].percentage = 3.6 %
- impurityPercentBasis = of-reagent-total
Steps
- e114-114 = 0.929, from channels[0].impurities, impurityPercentBasis; by equation 1; gives impurityMatrix[0].observedIn[0].fraction.
- e114-115 = 0.059, from channels[0].impurities[0].percentage; by equation 1; gives impurityMatrix[0].observedIn[1].fraction.
- x114 = 1000, from channels[0].observedIntensity, channels[1].observedIntensity, channels[2].observedIntensity, channels[3].observedIntensity, e114-114; by equation 3; gives correctedChannels[0].correctedIntensity.
The working, as the case writes it:
M rebuilt from the certificate equals MSnbase's printed matrix (rows 0.929 0.059 0.002 0
0.020 0.923 0.056 0.001
0 0.030 0.924 0.045
0 0.001 0.040 0.923). Forward M^T (1000, 2000, 3000, 4000) = (969, 1999, 3046, 3829)
157 counts lost (10 + 3 + 144). The exact solve returns the true values.
Answer
impurityMatrix[0].observedIn[0].fraction= 0.929impurityMatrix[0].observedIn[1].fraction= 0.059correctedChannels[0].correctedIntensity= 1000
Where these values came from: our own exact-arithmetic script and a hand-worked case; exact rationals (Python fractions), by this script, from Drybench's rulings of 11 November 2026.
At build the tool returned this answer within the tolerance the file states: Corrected intensities and matrix fractions within absolute 1e-9 (each rounded once from an exact solve); channels, texts, statuses and codes exact.
Who worked this case: not recorded.
What it refuses, and its input ranges
NEGATIVE_INTENSITY: an observed intensity below zero Next: Give intensities that are zero or greater.IMPURITY_SUM_NOT_BELOW_WHOLE: a reagent's impurities add up to all of its signal or more, so no main peak is left Next: Check the percentage basis and the lot's certificate.SINGULAR_MATRIX: the impurity matrix has no inverse, so the channels cannot be separated Next: Check the entries against the certificate; two channels with identical rows cannot be told apart.MAIN_PEAK_BASIS_NOT_OFFERED: impurityPercentBasis is of-main-peak: no document read states how percentages relative to a reagent's main peak become the matrix, so that basis is not computed; checked after the channel checks Next: State the certificate's percentages as percent of each reagent's total signal (of-reagent-total), the basis MSnbase documents.SENTINEL_AS_CHANNEL(invalid input): a channel is named outside-measured-channels, the word reserved for impurity lost to unmeasured massesUNKNOWN_DESTINATION(invalid input): an impurity names a destination that is not one of the channelsSELF_DESTINATION(invalid input): an impurity names its own channel as destination
Input ranges: channels[*].observedIntensity: at least 0; outside it, refused (NEGATIVE_INTENSITY).
Changes
2026-11-25-isobaric-impurity-correction@2.0.0-1
2026-11-25 · isobaric-impurity-correction@2.0.0 · Corrections to our methods
- What was wrong: A certificate stated relative to each reagent's main peak was turned into the matrix by dividing by one hundred plus the row's impurities, a rule no document read states: its corrected intensities rested on no source.
- Affected: Calls in versions 1.0.0 to 1.0.2 with impurityPercentBasis of-main-peak, in the assistant tool ms_isobaric_impurity_correction, which was held from serving throughout. Calls on the reagent-total basis are unchanged in every digit.
- What changed: In 2.0.0 the main-peak basis is refused as MAIN_PEAK_BASIS_NOT_OFFERED, and the basis's description says so; only percent of each reagent's total signal, the basis MSnbase documents, is computed.
- How it was found: The D-0273 set B full check, 24 November 2026: no document opened (MSnbase, i-Tracker, pyOpenMS) states the main-peak basis; ruled on in the CSO's lane B memo of 24 November 2026, item 8.
- Cases added: stored reference values, stored reference values and stored reference values: the earlier cases re-recorded, each main-peak case (22 in all) as the refusal.
Tools that use it
Cite this version
Reporter-ion correction for reagent isotopic impurity. Drybench; isobaric-impurity-correction@2.0.0; https://www.drybench.com/methods/m/isobaric-impurity-correction/2.0.0 (accessed [date]).