Expected distinct labels for molecules on a label set, as a Poisson model, version 1.0.1
ngs-umi-capacity@1.0.1: 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
Its calculation passed Drybench's full check: source read, a separately written implementation, edge and refusal cases, and an outside comparison where one exists. It stays below the top level because no measured prediction error is available for the model.
Level: Calculation fully checked; model error not measured; Fu et al. 2011 Eq. 1 at 80 digits; a model with no measured prediction error. Reference kind: our own exact-arithmetic script and a hand-worked case; the source's own worked example, CPython standard library (fractions, decimal), 3.13.18.
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 1.0.1
Level: Calculation fully checked; model error not measured; Fu et al. 2011 Eq. 1 at 80 digits; a model with no measured prediction error. Reference kind: our own exact-arithmetic script and a hand-worked case; the source's own worked example, CPython standard library (fractions, decimal), 3.13.18. ngs-umi-capacity@1.0.1
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: Fu et al. 2011 Eq. 1 reproduced at 80 digits from the exact ratio n/m, with the paper's 480-on-960 statement matched at its printed precision; a model of nature with no measured prediction error, so no higher level (Drybench's ruling 13)
For n molecules each taking one of m labels uniformly and independently, returns the expected distinct labels k = m(1 - e^(-n/m)) (Fu et al. 2011, Eq. 1), the counting efficiency k/n, the expected colliding molecules n - k and the fraction of labels used; m stated, or 4^L for a random label of length L (a convention).
- How results are reported: none: full double precision, unrounded
- Uncertainty: A model with no measured prediction error. Under Poisson occupancy uneven label probabilities can only lower the expected distinct count (concavity of the sum of 1 - e^(-n p_i)), so k is an upper bound on the expected distinct labels: a hand-checked statement, not a sourced one.
- Reference, as its record states it: an 80-digit decimal script of our own and Fu et al.'s worked statement
- Level confirmed by this project's ruling of 24 November 2026
What this page can and cannot show
What was checked
69 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; the source's own worked example, CPython standard library (fractions, decimal), 3.13.18: 35 agree within the tolerance the file states, 34 refuse as the case expects, 0 differ, 0 were not run.
File 1, 21 cases
- Where the expected values came from: our own exact-arithmetic script and a hand-worked case
- Recorded on: 2026-11-11
- Reference: CPython standard library (fractions, decimal), 3.13.18; licence PSF-2.0
- Tolerance as the file states it: every value relative 1e-14 (near zero: absolute 1e-24 below 1e-9); statuses, codes, units, texts and withheld rules exact
File 2, 2 cases
- Where the expected values came from: the source's own worked example, Fu et al. 2011, PNAS 108:9026, Results, the paragraph after Eq. 1: '480 molecules reacted with 960 labels, k/n becomes approximately 0.79' (PMC3107322, re-read 11 November 2026)
- Recorded on: 2026-11-11
- Reference: CPython standard library (fractions, decimal), 3.13.18; licence PSF-2.0
- Tolerance as the file states it: every value relative 1e-14 (near zero: absolute 1e-24 below 1e-9); statuses, codes, units, texts and withheld rules exact
File 3, 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 value relative 1e-14 (near zero: absolute 1e-24 below 1e-9); statuses, codes, units, texts and withheld rules 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
Measured label use against the model (none found in Fu et al. 2011 yet); synthesis bias; UMI sequencing and PCR errors; the exact finite-m occupancy; an inverse estimate of molecules from observed labels.
Definition or model
A closed form: the result follows from the inputs by the equations alone.
A model of nature: it describes how a system behaves, and can be wrong about it.
Prediction error: none available.
Equations
Equation 1
lam = n/m
labelContext is echoed, and an empty labelContext is refused as the kit's INVALID_STRING
| Symbol | Meaning and unit |
|---|---|
| lam | molecules per label |
| n | molecules within one label context |
| m | labels available |
Source: Fu GK, Hu J, Wang PH, Fodor SPA (2011), Counting individual DNA molecules by the stochastic attachment of diverse labels, PNAS 108(22):9026-9031, doi 10.1073/pnas.1017621108, equation Eq. 1 (an image, read as one) and the paragraph after it (Results), version of record, the PubMed Central HTML page as served on 14 November 2026 (the PDF answers with a bot check); its SHA-256 is pinned; the record's 11 November hash 8da69f42a939a3a0cad890f1d40189760585a1e68ce97ca7ddfd5c868d7286c4 is of another file and kept as historical; read in full on 2026-11-14 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 07e9b36285c1. Free to read (free to read; no licence stated in the file or repository, so cited only), checked 2026-11-11. No erratum found (searched Europe PMC correction list for doi 10.1073/pnas.1017621108), 2026-11-11.
Equation 2
k = m(1 - e^(-lam))
fraction of labels used = k/m
| Symbol | Meaning and unit |
|---|---|
| k | expected distinct labels |
Source: Fu GK, Hu J, Wang PH, Fodor SPA (2011), Counting individual DNA molecules by the stochastic attachment of diverse labels, PNAS 108(22):9026-9031, doi 10.1073/pnas.1017621108, equation Eq. 1 (an image, read as one) and the paragraph after it (Results), version of record, the PubMed Central HTML page as served on 14 November 2026 (the PDF answers with a bot check); its SHA-256 is pinned; the record's 11 November hash 8da69f42a939a3a0cad890f1d40189760585a1e68ce97ca7ddfd5c868d7286c4 is of another file and kept as historical; read in full on 2026-11-14 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 07e9b36285c1. Free to read (free to read; no licence stated in the file or repository, so cited only), checked 2026-11-11. No erratum found (searched Europe PMC correction list for doi 10.1073/pnas.1017621108), 2026-11-11.
Equation 3
k/n = (1 - e^(-lam))/lam
Fu et al. state an efficiency of about 0.99 at n/m of about 0.01, a quoted statement and not a case: the model gives 0.995 at exactly 0.01, and their 480-on-960 statement (about 0.79) is the worked case
| Symbol | Meaning and unit |
|---|---|
| k/n | counting efficiency |
Source: Fu GK, Hu J, Wang PH, Fodor SPA (2011), Counting individual DNA molecules by the stochastic attachment of diverse labels, PNAS 108(22):9026-9031, doi 10.1073/pnas.1017621108, equation Eq. 1 (an image, read as one) and the paragraph after it (Results), version of record, the PubMed Central HTML page as served on 14 November 2026 (the PDF answers with a bot check); its SHA-256 is pinned; the record's 11 November hash 8da69f42a939a3a0cad890f1d40189760585a1e68ce97ca7ddfd5c868d7286c4 is of another file and kept as historical; read in full on 2026-11-14 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 07e9b36285c1. Free to read (free to read; no licence stated in the file or repository, so cited only), checked 2026-11-11. No erratum found (searched Europe PMC correction list for doi 10.1073/pnas.1017621108), 2026-11-11.
Equation 4
n - k = n g(lam), g(lam) = 1 - (1 - e^(-lam))/lam
| Symbol | Meaning and unit |
|---|---|
| n - k | expected molecules sharing a label with another |
Source: Fu GK, Hu J, Wang PH, Fodor SPA (2011), Counting individual DNA molecules by the stochastic attachment of diverse labels, PNAS 108(22):9026-9031, doi 10.1073/pnas.1017621108, equation Eq. 1 (an image, read as one) and the paragraph after it (Results), version of record, the PubMed Central HTML page as served on 14 November 2026 (the PDF answers with a bot check); its SHA-256 is pinned; the record's 11 November hash 8da69f42a939a3a0cad890f1d40189760585a1e68ce97ca7ddfd5c868d7286c4 is of another file and kept as historical; read in full on 2026-11-14 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 07e9b36285c1. Free to read (free to read; no licence stated in the file or repository, so cited only), checked 2026-11-11. No erratum found (searched Europe PMC correction list for doi 10.1073/pnas.1017621108), 2026-11-11.
Equation 5
m = 4^L for a random label of L bases (a convention, not Fu et al.'s)
| Symbol | Meaning and unit |
|---|---|
| L | random label length in bases |
Ruling of this project: 11 November 2026, section "11. `ngs-umi-capacity`: required inputs and conventions, echoed". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
Conventions
What each mode computes:
labelSpace = stated-count: m is the caller's stated number of labels, as Fu et al.'s 960labelSpace = random-length: m = 4^L for a random label of L bases, a convention, not Fu et al.'s
Constants
Constants: none used.
Worked example
Worked example: one case of ngs-umi-capacity@1.0.1, 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
- molecules = 4
- labelSpace = stated-count
- labelContext = per start position and strand
- labelCount = 4
Steps
- lam = 1, from molecules, labelCount; by equation 1; gives result.moleculesPerLabel.
- k = 2.5284822, from labelCount, lam; by equation 2; gives result.model.expectedDistinctLabels.
- eff = 0.63212056, from k, molecules; by equation 3; gives result.model.countingEfficiency.
- c = 1.4715178, from molecules, k; by equation 4; gives result.model.expectedCollidingMolecules.
The working, as the case writes it:
m = 4
n/m = 1
k = m(1 - e^(-n/m)) = 2.528482235314230713617904919354156530217
Answer
result.moleculesPerLabel= 1result.model.expectedDistinctLabels= 2.5284822result.model.countingEfficiency= 0.63212056result.model.expectedCollidingMolecules= 1.4715178
Where these values came from: our own exact-arithmetic script and a hand-worked case; Worked by hand by Drybench on 11 November 2026 (ruling 14). This is not an independent check.
At build the tool returned this answer within the tolerance the file states: every value relative 1e-14 (near zero: absolute 1e-24 below 1e-9); statuses, codes, units, texts and withheld rules exact.
Who worked this case: not recorded.
Changes
No correction is logged for ngs-umi-capacity@1.0.1.
Tools that use it
Cite this version
Expected distinct labels for molecules on a label set, as a Poisson model. Drybench; ngs-umi-capacity@1.0.1; https://www.drybench.com/methods/m/ngs-umi-capacity/1.0.1 (accessed [date]).