Invntr
Source

All instruments

charge_deconvolution

Electrospray charge-state deconvolution: from the m/z peaks of one envelope (and optional intensities) find each peak's charge, the neutral mass with its spread, and the peaks that fit no charge; or predict the envelope m/z = (M +/- z m_c)/z for a mass. Adjacent-peak rule z1 = (m2 - m_c)/(m1 - m2) (Mann, Meng and Fenn 1989).

Field
Mass spectrometry
Version
0.1.0
Runs as
Compiled (Rust)
Typical run
0.05 s

Compiled from source: run sh packs/install.sh once before admitting it.

Known answers it must pass

Admission replaycharge_deconvolution 0.1.0 · files fed9843b40c5…411e
  1. r0001Mann-Meng-Fenn adjacent-peak closed form: noise-free pair of M = 16951.5 Da at z = 10, 11 (m/z = M/z + m_p, CODATA proton) gives z1 = (m2 - m_p)/(m1 - m2) = 10 and M exactly (rel 1e-9, float rounding only)passed

    pair_z_raw10 ± 1e-0810lockedunder 0.01 % of the tolerance used
    pair_z= 1010lockedexact match
    z_lowest= 1010lockedexact match
    z_highest= 1111lockedexact match
    mass_Da16951.5 ± 1.7e-0516951.5lockedunder 0.01 % of the tolerance used
    n_assigned= 22lockedexact match
  2. r0002Envelope of M = 16951.5 Da at z = 10..20 (m/z = M/z + m_p, written to 4 decimals: rounding <= 5e-5 m/z x z <= 1e-3 Da per peak) recovers M within 0.01 Da and every chargepassed

    mass_Da16951.5 ± 0.0116951.5locked0.35 % of the tolerance used
    z_lowest= 1010lockedexact match
    z_highest= 2020lockedexact match
    n_assigned= 1111lockedexact match
    charges_consecutive= truetruelockedexact match
    all_assigned= truetruelockedexact match
  3. r0003Stray peak m/z 1600.0 inside the M = 16951.5 Da envelope (z = 10..20, 4 decimals) fits no charge (nearest z = 11 is 3.8 % off, far past 200 ppm): flagged, mass still within 0.01 Dapassed

    n_unassigned= 11lockedexact match
    all_assigned= falsefalselockedexact match
    n_assigned= 1111lockedexact match
    mass_Da16951.5 ± 0.0116951.5locked0.35 % of the tolerance used
  4. r0004Predict closed form m/z = M/z + m_p (CODATA 2018 proton 1.007276466621 Da), M = 16951.5 Da, z = 10..20: m/z(10) = 1696.1572764666, m/z(20) = 848.5822764666, gap M/19 - M/20 = 44.609210526 (rel 1e-9)passed

    mz_highest1696.16 ± 1.7e-061696.16lockedunder 0.01 % of the tolerance used
    mz_lowest848.582 ± 8.5e-07848.582lockedunder 0.01 % of the tolerance used
    mz_spacing_min44.6092 ± 4.5e-0844.6092lockedunder 0.01 % of the tolerance used
    n_charges= 1111lockedexact match
  5. r0005Negative mode [M - zH]z-: noise-free M = 10000 Da at z = 4, 5, 6 (m/z = M/z - m_p) recovers M exactly (rel 1e-9) and the chargespassed

    mass_Da10000 ± 1e-0510000lockedunder 0.01 % of the tolerance used
    z_lowest= 44lockedexact match
    z_highest= 66lockedexact match
    pair_z= 44lockedexact match
  6. r0006Intensity-weighted mean, closed form: z = 10, 11, 12 of M = 16951.5 Da with the z = 12 peak moved +0.1 m/z (z x = M + 1.2 Da, 71 ppm), weights 1, 1, 2: M = M + 2(1.2)/4 = 16952.1 Da, unbiased weighted SD sqrt(0.36/0.625) = 0.758946638 Da (rel 1e-6)passed

    mass_Da16952.1 ± 1.7e-0516952.1lockedunder 0.01 % of the tolerance used
    mass_sd_Da0.758947 ± 7.6e-070.758947lockedunder 0.01 % of the tolerance used
    n_assigned= 33lockedexact match
6 of 6 cases passed · sandbox macos-seatbeltrecorded from the kernel in a fresh lab

Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.

Inputs

NameUnitDefaultMeaning
modedeconvolutedeconvolute: peaks to mass. predict: mass to peaks.
polaritypositivepositive: [M + z m_c]^z+. negative: [M - z m_c]^z-.
carrier_mass_DaDa1.007276466621Mass of one charge carrier. Default: the proton, CODATA 2018 (1.007276466621 u). Na+ is 22.989218.
mzdeconvolute: centroid m/z of the peaks of one envelope (m/z is dimensionless, Th).
intensitydeconvolute, optional: one height or area per peak, same order as mz; weights the mass. Leave out for equal weights.
tol_ppm200deconvolute: largest relative m/z error, in ppm (parts per million), for a peak to take a charge. 200 for unit resolution, 20 for high resolution.
z_min11deconvolute: lowest charge allowed.
z_max1100deconvolute: highest charge allowed.
mass_DaDapredict: the neutral mass M.
z_from11predict: lowest charge of the envelope.
z_to1predict: highest charge of the envelope (default z_from).

Readings

NameUnitMeaning
mode1
polarity1
carrier_mass_DaDa
mass_DaDadeconvolute: weighted mean of z (m/z -/+ m_c) over the assigned peaks. predict: the mass given.
mass_sd_DaDaSpread (unbiased weighted standard deviation) of the per-peak masses; null when it cannot be formed.
mass_sem_DaDaStandard error of the mean mass.
mass_sd_ppmmass_sd_Da / mass_Da in ppm. No unit the kernel can check (ppm is not in its table).
z_lowest1
z_highest1
n_peaks1
n_assigned1
n_unassigned1
n_charges1
all_assigned1true when every peak took a charge.
charges_consecutive1
pair_z1Charge of the highest-m/z peak of the first adjacent pair (z, z+1).
pair_z_raw1Adjacent-peak rule before rounding: (m2 - m_c)/(m1 - m2).
max_error_ppmLargest |m/z error| of an assigned peak, ppm. No unit the kernel can check (ppm is not in its table).
rms_error_ppmRMS m/z error of the assigned peaks, ppm. No unit the kernel can check (ppm is not in its table).
mz_highest1
mz_lowest1
mz_spacing_min1predict: m/z gap between the two most highly charged peaks.
charges1Charge of each input peak in order; null for a peak that fits none.
unassigned_mz1
peaks
envelope
weighted_by_intensity1
warnings1

Try the call

Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.

Terminal
MCP call