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
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 usedpair_z= 1010lockedexact matchz_lowest= 1010lockedexact matchz_highest= 1111lockedexact matchmass_Da16951.5 ± 1.7e-0516951.5lockedunder 0.01 % of the tolerance usedn_assigned= 22lockedexact matchr0002Envelope 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 usedz_lowest= 1010lockedexact matchz_highest= 2020lockedexact matchn_assigned= 1111lockedexact matchcharges_consecutive= truetruelockedexact matchall_assigned= truetruelockedexact matchr0003Stray 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 matchall_assigned= falsefalselockedexact matchn_assigned= 1111lockedexact matchmass_Da16951.5 ± 0.0116951.5locked0.35 % of the tolerance usedr0004Predict 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 usedmz_lowest848.582 ± 8.5e-07848.582lockedunder 0.01 % of the tolerance usedmz_spacing_min44.6092 ± 4.5e-0844.6092lockedunder 0.01 % of the tolerance usedn_charges= 1111lockedexact matchr0005Negative 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 usedz_lowest= 44lockedexact matchz_highest= 66lockedexact matchpair_z= 44lockedexact matchr0006Intensity-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 usedmass_sd_Da0.758947 ± 7.6e-070.758947lockedunder 0.01 % of the tolerance usedn_assigned= 33lockedexact match
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
| Name | Unit | Default | Meaning |
|---|---|---|---|
mode | deconvolute | deconvolute: peaks to mass. predict: mass to peaks. | |
polarity | positive | positive: [M + z m_c]^z+. negative: [M - z m_c]^z-. | |
carrier_mass_Da | Da | 1.007276466621 | Mass of one charge carrier. Default: the proton, CODATA 2018 (1.007276466621 u). Na+ is 22.989218. |
mz | deconvolute: centroid m/z of the peaks of one envelope (m/z is dimensionless, Th). | ||
intensity | deconvolute, optional: one height or area per peak, same order as mz; weights the mass. Leave out for equal weights. | ||
tol_ppm | 200 | deconvolute: 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_min | 1 | 1 | deconvolute: lowest charge allowed. |
z_max | 1 | 100 | deconvolute: highest charge allowed. |
mass_Da | Da | predict: the neutral mass M. | |
z_from | 1 | 1 | predict: lowest charge of the envelope. |
z_to | 1 | predict: highest charge of the envelope (default z_from). |
Readings
| Name | Unit | Meaning |
|---|---|---|
mode | 1 | |
polarity | 1 | |
carrier_mass_Da | Da | |
mass_Da | Da | deconvolute: weighted mean of z (m/z -/+ m_c) over the assigned peaks. predict: the mass given. |
mass_sd_Da | Da | Spread (unbiased weighted standard deviation) of the per-peak masses; null when it cannot be formed. |
mass_sem_Da | Da | Standard error of the mean mass. |
mass_sd_ppm | mass_sd_Da / mass_Da in ppm. No unit the kernel can check (ppm is not in its table). | |
z_lowest | 1 | |
z_highest | 1 | |
n_peaks | 1 | |
n_assigned | 1 | |
n_unassigned | 1 | |
n_charges | 1 | |
all_assigned | 1 | true when every peak took a charge. |
charges_consecutive | 1 | |
pair_z | 1 | Charge of the highest-m/z peak of the first adjacent pair (z, z+1). |
pair_z_raw | 1 | Adjacent-peak rule before rounding: (m2 - m_c)/(m1 - m2). |
max_error_ppm | Largest |m/z error| of an assigned peak, ppm. No unit the kernel can check (ppm is not in its table). | |
rms_error_ppm | RMS m/z error of the assigned peaks, ppm. No unit the kernel can check (ppm is not in its table). | |
mz_highest | 1 | |
mz_lowest | 1 | |
mz_spacing_min | 1 | predict: m/z gap between the two most highly charged peaks. |
charges | 1 | Charge of each input peak in order; null for a peak that fits none. |
unassigned_mz | 1 | |
peaks | ||
envelope | ||
weighted_by_intensity | 1 | |
warnings | 1 |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.