Library volumes for an equimolar or weighted sequencing pool
ngs_pooling_plan
Works out the volume of each library and the diluent for a sequencing pool, equimolar or by shares.
- Runs
- On the server
- Level
- Checked against a reference: exact rational arithmetic in a script of our own, hand-worked; libraries in mass units through ngs-library-molarity, whose outside comparison is Biopython 1.88
What it is
Returns each library's volume and the diluent for a pool of stated nM and volume, equimolar or by shares. Use when combining indexed libraries before a sequencing run. Not for one library's nM: use `ngs_library_molarity`; to dilute the pool for loading use `calc_c1v1`; for a dilution series use `dilution_series`. Refuses a pool the libraries are too dilute to reach; units required; one mass basis per call for ng/µL libraries.
Field: Sequencing and genomics.
What it does
You give
libraries(required): The libraries to pool.poolConcentration(required): The pool's molar concentration. Must be above 0 nM.poolVolume(required): The pool's final volume. Must be above 0 µL.minimumPipettingVolume: The smallest volume you will pipette; each library below it is flagged. Must be above 0 µL. Optional.basis: The mass basis for libraries given in mass units, computed-per-bp or stated-per-bp (as in ngs_library_molarity); required when any is. Optional.massPerBasePair: Mass of one base pair, g/mol, for stated-per-bp (600 to 700). Must be above 0 g/mol. Optional.
No request is recorded for this tool.
Limits
- Research arithmetic for planning sequencing libraries and runs and for genomic coordinate bookkeeping; it does arithmetic on the inputs it receives, and does not measure the library, the instrument or the data.
- Ideal volumes; equal moles is not equal reads, since cluster or read yield differs by insert length and library type; no pipetting check is made unless a minimum volume is stated; libraries given in mass units carry the mass-to-molar limits.
- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
It will not answer when
- the libraries' volumes sum to more than the pool volume: some library is too dilute for the pool concentration.
- a basis or massPerBasePair is given when every library is in molar units, or massPerBasePair with a basis other than stated-per-bp.
- the stated mass per base pair lies outside the range this suite judges a double-stranded base pair to take in common salt forms; a value near half of it is one nucleotide, not a pair.
- the mean fragment length is above the suite's length cap.
Every input, with its units6 inputs
libraries(required): The libraries to pool.poolConcentration(required): The pool's molar concentration. Must be above 0 nM.poolVolume(required): The pool's final volume. Must be above 0 µL.minimumPipettingVolume: The smallest volume you will pipette; each library below it is flagged. Must be above 0 µL. Optional.basis: The mass basis for libraries given in mass units, computed-per-bp or stated-per-bp (as in ngs_library_molarity); required when any is. Optional.massPerBasePair: Mass of one base pair, g/mol, for stated-per-bp (600 to 700). Must be above 0 g/mol. Optional.
Every refusal, with its code6 refusals
| Code | When |
|---|---|
POOL_NOT_REACHABLE | the libraries' volumes sum to more than the pool volume: some library is too dilute for the pool concentration. |
CONFLICTING_ARGUMENT | a basis or massPerBasePair is given when every library is in molar units, or massPerBasePair with a basis other than stated-per-bp. |
MASS_PER_BP_OUT_OF_RANGE | the stated mass per base pair lies outside the range this suite judges a double-stranded base pair to take in common salt forms; a value near half of it is one nucleotide, not a pair. |
LENGTH_ABOVE_RANGE | the mean fragment length is above the suite's length cap. |
MW_OUT_OF_BOUNDS | a stated molecular weight given with a length lies outside the bounds the length allows for a double-stranded molecule with its end groups. |
RESULT_UNIT_SAME_FAMILY | the result unit is in the same family as the concentration given. |
The calculation
2 methods, each with its equations, constants and worked example.
Equation 1
total = C × V (nM × µL = fmol)
a_i = C × V × w_i / Σw: the record's mass-balance construction (amount = C × V)
no source holds it
a library given in ng/µL is first converted to nM by ngs-library-molarity, whose conversion is KA #1240's
inputs are read as the exact value of their shortest decimal, and the pool's reachability and the pipetting check are decided on that value (S21, as molarity's S9)
order of checks: first the kit's form checks of every argument (number, unit, choice)
then molarity's two input ranges, massPerBasePair first (outside 600 to 700 g/mol, MASS_PER_BP_OUT_OF_RANGE, whatever the basis and even when every library is molar), then any library's meanFragmentLength (above 50,000 bp, LENGTH_ABOVE_RANGE), each refused before every check below, a duplicate name included
then DUPLICATE_NAME, then per library in order CONFLICTING_ARGUMENT for both concentrations, MISSING_ARGUMENT for neither, and for a library in mass units MISSING_ARGUMENT without basis or meanFragmentLength, CONFLICTING_ARGUMENT for massPerBasePair with a basis other than stated-per-bp (S18), MISSING_ARGUMENT for stated-per-bp without massPerBasePair, NOT_AN_INTEGER
then CONFLICTING_ARGUMENT for basis or massPerBasePair when every library is molar (S20)
then POOL_NOT_REACHABLE
| Symbol | Meaning |
|---|---|
a_i | amount of library i, fmol |
C | pool concentration, nM |
V | pool volume, µL |
w_i | share of library i, 1 when not stated (equimolar) |
Source not recorded.
Equation 2
diluent = V − Σ v_i: the record's mass-balance construction (S17)
| Symbol | Meaning |
|---|---|
v_i | volume of library i, µL |
c_i | molar concentration of library i, nM |
Source not recorded.
Equation 3
C_max = 1 / Σ (w_i / (Σw × c_i)): the record's mass-balance construction (S17)
| Symbol | Meaning |
|---|---|
C_max | the highest pool concentration reachable with no diluent, nM |
Source not recorded.
A definition, not a model: the equation states what the quantity means. A different convention gives a different number.
Worked example
Worked example: one case of ngs-pooling-plan@1.1.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
- libraries[0].name = L1
- libraries[0].molarConcentration = 10 nM
- libraries[1].name = L2
- libraries[1].molarConcentration = 20 nM
- libraries[2].name = L3
- libraries[2].molarConcentration = 5 nM
- libraries[3].name = L4
- libraries[3].molarConcentration = 8 nM
- poolConcentration = 4 nM
- poolVolume = 20 µL
Steps
- total = 80 fmol, from poolConcentration, poolVolume; by equation 1.
- a1 = 20 fmol, from total; by equation 1; gives result.libraries[0].amount.
- v1 = 2 µL, from a1, libraries[0].molarConcentration; by equation 2; gives result.libraries[0].volume.
The working, as the case writes it:
80 fmol / 4 = 20 fmol each
20/10 = 2, 20/20 = 1, 20/5 = 4, 20/8 = 2.5 uL
20 - 9.5 = 10.5 uL
Answer
result.libraries[0].amount = 20 fmol
result.libraries[0].volume = 2 µL
Where these values came from: our own exact-arithmetic script and a hand-worked case; Worked by hand by Drybench on 10 November 2026 (ruling 2). This is not an independent check.
At build the tool returned this answer within the tolerance the file states: relative 1e-15 on concentrations, amounts and volumes (near zero: absolute 1e-24 below 1e-9, in each output's own unit: uL, nM, fmol or 1); diluent absolute 1e-12 uL; statuses, codes, units, counts and strings exact.
Equation 1
c_mass[ng/µL] = c_molar[nM] × M / 10^6: KA #1240's formula with M in place of its 660 g/mol × average library size
inputs are read as the exact value of their shortest decimal, and MASS_PER_BP_OUT_OF_RANGE, MW_OUT_OF_BOUNDS, LENGTH_ABOVE_RANGE and the whole-bp test are decided on that value
the concentration, molarMass, usedPerBp and differencePercent are in double precision
each input's errors: a concentration missing or both given is MISSING_ARGUMENT or CONFLICTING_ARGUMENT
massPerBasePair or molecularWeight with a basis that does not use it is CONFLICTING_ARGUMENT
a length, massPerBasePair or molecularWeight the basis needs and lacks is MISSING_ARGUMENT
a result unit in the family given is RESULT_UNIT_SAME_FAMILY
meanFragmentLength must be a whole number of bp after the kb conversion, tested on the exact value of its stated decimal (1.001 kb is 1001 bp
1.0005 kb, 1000.5 bp, is NOT_AN_INTEGER), and at most 50,000 bp (LENGTH_ABOVE_RANGE)
a mass per bp outside 600 to 700 g/mol is MASS_PER_BP_OUT_OF_RANGE
a stated weight outside the length's bounds is MW_OUT_OF_BOUNDS (S14)
order of checks: first the kit's form checks of every argument (number, unit, choice)
then the method's two input ranges, in the record's order: a massPerBasePair outside 600 to 700 (MASS_PER_BP_OUT_OF_RANGE), then a meanFragmentLength above 50,000 bp (LENGTH_ABOVE_RANGE, 50000.5 bp among them), each refused before every check below
then the tool's checks: the argument checks above in that order, then RESULT_UNIT_SAME_FAMILY, then NOT_AN_INTEGER, then MW_OUT_OF_BOUNDS
| Symbol | Meaning |
|---|---|
c_molar | molar concentration, nM |
c_mass | mass concentration, ng/µL |
M | molar mass of one library molecule, g/mol |
Source 1.
Equation 2
| Symbol | Meaning |
|---|---|
m_bp | mass per base pair stated by the caller, g/mol |
L | mean fragment length, bp |
Source 1.
Equation 3
r_X = m(dXMP) − m(H2O), with dAMP C10H14N5O6P, dCMP C9H14N3O7P, dGMP C10H14N5O7P, dTMP C10H15N2O8P and each formula's mass from the atomic weights: the record's construction from the PubChem formulas and the CIAAW 2024 weights
| Symbol | Meaning |
|---|---|
r_X | residue mass of deoxynucleotide X in the chain, g/mol |
Source 2.
Equation 4
m_bp = (r_A + r_C + r_G + r_T) / 2, the mean mass of one base pair (both strands), free acid, C19.5H24.5N7.5O12P2: the record's construction from the CIAAW 2024 weights and the PubChem formulas (S11)
| Symbol | Meaning |
|---|---|
m_bp | mean mass of one base pair, g/mol |
r_X | residue mass of deoxynucleotide X, g/mol |
Source 3.
Equation 5
e = 2 × (m(H2O) − m(HPO3)), the two ends of a linear double strand with 5′-OH ends: the record's construction from the CIAAW 2024 weights (S11)
strands with 5′-phosphates, as Biopython 1.88 takes them, weigh 2 × m(HPO3) more
| Symbol | Meaning |
|---|---|
e | end-group term of a double-stranded linear molecule, g/mol |
Source 3.
Equation 6
M = m_bp × L + e, the record's construction (S11)
basis comparison, when a length is known: usedPerBp = M / L for a stated weight, the stated per-bp mass for stated-per-bp, m_bp for computed-per-bp
differencePercent = (usedPerBp / m_bp − 1) × 100, signed
| Symbol | Meaning |
|---|---|
M | molar mass of one library molecule, g/mol |
L | mean fragment length, bp |
Source 3.
Equation 7
600 × L + e ≤ M ≤ 700 × L + 2 m(H2O): the 600 to 700 g/mol per bp bounds are this suite's own judgement, from common salt forms
the end-group masses are from the atomic weights
| Symbol | Meaning |
|---|---|
M | stated molecular weight, g/mol |
L | mean fragment length, bp |
Source not recorded.
| Constant | Value | From |
|---|---|---|
mean mass of a base pair, free acid, from CIAAW 2024 weights and PubChem dNMP formulas (derived in the worked case) m_bp(computed) | 617.899 g/mol | Source 3 |
standard atomic weight of hydrogen, abridged A_r(H) | 1.008 g/mol | Source 3 |
standard atomic weight of carbon, abridged A_r(C) | 12.011 g/mol | Source 3 |
standard atomic weight of nitrogen, abridged A_r(N) | 14.007 g/mol | Source 3 |
standard atomic weight of oxygen, abridged A_r(O) | 15.999 g/mol | Source 3 |
standard atomic weight of phosphorus, abridged A_r(P) | 30.974 g/mol | Source 3 |
Conventions
- basis = computed-per-bp: molar mass of the double-stranded library from its mean length at 617.899 g/mol per base pair (the free acid, from CIAAW abridged atomic weights) plus the 5'-OH end groups, in g/mol
- basis = stated-per-bp: molar mass of the library as the caller's mass per base pair (g/mol per bp, 600 to 700) times its mean length, in g/mol
- basis = stated-molecular-weight: molar mass of one library molecule as the caller states it, in g/mol
A definition, not a model: the equation states what the quantity means. A different convention gives a different number.
Worked example
Worked example: one case of ngs-library-molarity@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
- massConcentration = 10 ng/µL
- resultUnit = nM
- basis = computed-per-bp
- meanFragmentLength = 500 bp
Steps
- rA = 313.21 g/mol, by equation 3.
- rC = 289.184 g/mol, by equation 3.
- rG = 329.209 g/mol, by equation 3.
- rT = 304.195 g/mol, by equation 3.
- mbp = 617.899 g/mol, from rA, rC, rG, rT; by equation 4; gives result.basisComparison.computedPerBp.
- e = -123.928 g/mol, by equation 5.
- M = 308825.57 g/mol, from mbp, meanFragmentLength, e; by equation 6; gives result.molarMass.
- c = 32.380738 nM, from massConcentration, M; by equation 1; gives result.concentration.
The working, as the case writes it:
mean bp = (dAMP + dCMP + dGMP + dTMP - 4 H2O)/2 = 617.899
ends = 2 (H2O - HPO3) = -123.928
M = 308,825.572
10 x 10^6 / M = 32.3807382... nM
Answer
result.basisComparison.computedPerBp = 617.899 g/mol
result.molarMass = 308825.57 g/mol
result.concentration = 32.380738 nM
Where these values came from: our own exact-arithmetic script and a hand-worked case; exact arithmetic from CIAAW 2024 abridged atomic weights and the dNMP formulas; worked by hand by Drybench on 10 November 2026 (ruling 2); this is not an independent check.
At build the tool returned this answer within the tolerance the file states: relative 1e-15 on concentrations and masses (near zero: absolute 1e-24 below 1e-9, in each output's own unit: nM, or the case's result unit, and g/mol); differencePercent absolute 1e-12 %; statuses, codes, units, counts and strings exact.
Sources
Illumina Knowledge Article #1240, "Converting ng/µl to nM when calculating dsDNA library concentration" (Illumina Knowledge, Library Prep, General Library Prep, Reference Material)
Used for: Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length. At: equation the formula image: (concentration in ng/µl) / (660 g/mol × average library size in bp) × 10^6 = concentration in nM.
Read in full, 14 November 2026PubChem compound records CID 12599 (dAMP, C10H14N5O6P), 13945 (dCMP, C9H14N3O7P), 135398597 (dGMP, C10H14N5O7P), 9700 (dTMP, C10H15N2O8P)
Used for: Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length. At: table MolecularFormula of each CID.
Read in full, 11 November 2026CIAAW, Abridged Standard Atomic Weights 2024
Used for: Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length. At: table abridged standard atomic weights, row 1 (H 1.0080), 6 (C 12.011), 7 (N 14.007), 8 (O 15.999), 15 (P 30.974).
Read in full, 11 November 2026
How it is checked
- Level
Checked against a reference, the lowest of its 2 methods.
- Checked against
Library volumes for an equimolar or weighted sequencing pool: Our own exact-arithmetic script and a hand-worked case.
Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length: Our own exact-arithmetic script and a hand-worked case.
- Cases
Library volumes for an equimolar or weighted sequencing pool: No case set is linked to this version.
Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length: No case set is linked to this version.
- Not checked
Library volumes for an equimolar or weighted sequencing pool: Read yield per library (equal moles is not equal reads); the caller's concentrations; more than 384 libraries.
Molar concentration of a double-stranded sequencing library from its mass concentration and mean fragment length: The caller's concentration and sizing; libraries that are not double-stranded linear DNA; the 5′-phosphate end form (not offered); the CIAAW 2021 table itself (the 2024 table was read).
What this project's records still lack1 thing
- The source's location for each equation for both methods.
Changes to its methods1 change
- 14 November 2026, ngs-library-molarity@2.0.0: In 2.0.0 the field is withheld (no-stated-weight) unless a stated weight was compared with a length's bounds. The record states the decimal reading, each input's error code and the order of checks, labels its own constructions, enters the CIAAW uncertainties, re-anchors KA #1240 at its knowledge.illumina.com address, and records Biopython 1.88's molecular_weight as an outside check.