Cells and reads for a stated coverage of a pooled guide library
screen_library_coverage
Works out the cells to transduce and keep at each passage, and the reads, for a stated coverage per guide.
- Runs
- On the server
- Level
- Checked against a reference: exact rational arithmetic in a script of our own and Joung et al. 2017 Step 56's printed figure
What it is
Returns the cells to transduce, the cells to keep at each passage and the reads needed for a stated coverage per guide. Use when sizing a pooled CRISPR screen from library size, coverage per guide and a measured transduced fraction. Not for reads at a genome depth: use `ngs_reads_required`; for pooling indexed libraries, use `ngs_pooling_plan`. Not for converting a multiplicity of infection to a transduced fraction, which no library tool does. Not a model of transduction, selection, growth or guide dropout. All inputs required, none defaulted; counts round up; refuses a fraction above one.
Field: Assays and screening.
What it does
You give
librarySize(required): The number of unique guides in the library. Must be at least 1 and at most 10000000.coveragePerGuide(required): The cells you want to carry each guide, as a count per guide. Must be at least 1 and at most 1000000.transducedFraction(required): The fraction of cells that carry the construct, between zero and one, from your own measurement — for example a selection-survival or marker-positive readout. Not a multiplicity of infection, and not estimated or defaulted here.readsPerGuide(required): The reads you want for each guide in the sequenced sample. Must be at least 1 and at most 1000000.
No request is recorded for this tool.
Limits
- Research arithmetic for planning assays and pooled screens; it does arithmetic on the inputs it receives, and does not measure cells, guides, the library or the data.
- Representation arithmetic only, from a transduced fraction you measured; it is not a model of transduction, selection, growth or guide dropout, and no multiplicity of infection is taken or converted.
- Every guide is assumed to be represented equally, with no account of skew in the plasmid pool or the integrated population.
- Cells per passage is a floor to maintain, not a predicted yield.
- Cells and reads are rounded up to whole units.
- No coverage or read depth is recommended; figures quoted from published protocols are those protocols' guidance for their own libraries.
- 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
- transducedFraction is the fraction of cells carrying the construct, so it cannot be above one; a multiplicity of infection can be above one, and it is a different quantity.
- transducedFraction cannot be zero or negative: with no cells carrying the construct there is no number of cells to transduce.
- the cells to transduce are above the largest whole number a double holds exactly, so the count cannot be returned exactly.
Every input, with its units4 inputs
librarySize(required): The number of unique guides in the library. Must be at least 1 and at most 10000000.coveragePerGuide(required): The cells you want to carry each guide, as a count per guide. Must be at least 1 and at most 1000000.transducedFraction(required): The fraction of cells that carry the construct, between zero and one, from your own measurement — for example a selection-survival or marker-positive readout. Not a multiplicity of infection, and not estimated or defaulted here.readsPerGuide(required): The reads you want for each guide in the sequenced sample. Must be at least 1 and at most 1000000.
Every refusal, with its code3 refusals
| Code | When |
|---|---|
FRACTION_ABOVE_ONE | transducedFraction is the fraction of cells carrying the construct, so it cannot be above one; a multiplicity of infection can be above one, and it is a different quantity. |
FRACTION_NOT_POSITIVE | transducedFraction cannot be zero or negative: with no cells carrying the construct there is no number of cells to transduce. |
CELLS_ABOVE_RANGE | the cells to transduce are above the largest whole number a double holds exactly, so the count cannot be returned exactly. |
The calculation
The method's equations, constants and worked example.
Equation 1
P = G c, a product of whole counts, so exact and already whole
| Symbol | Meaning |
|---|---|
P | cells to keep at each passage |
G | unique guides in the library |
c | cells wanted per guide |
Source not recorded.
Equation 2
T = ceiling(G c / f), with f read as its shortest decimal so the ceiling is exact
| Symbol | Meaning |
|---|---|
T | cells to transduce |
f | measured fraction of cells carrying the construct |
Source not recorded.
Equation 3
R = G r, a product of whole counts, so exact and already whole
| Symbol | Meaning |
|---|---|
R | reads needed |
r | reads wanted per guide |
Source not recorded.
Conventions
- ROUNDING = ceiling: Fixed by the method; not an argument. Cells and reads are rounded up to whole units.
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 screen-library-coverage@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
- librarySize = 50000
- coveragePerGuide = 500
- transducedFraction = 0.4
- readsPerGuide = 500
Steps
- P = 25000000, from librarySize, coveragePerGuide; by equation 1; gives result.cellsPerPassage.
- T = 62500000, from P, transducedFraction; by equation 2; gives result.cellsToTransduce.
- R = 25000000, from librarySize, readsPerGuide; by equation 3; gives result.readsRequired.
The working, as the case writes it:
cells per passage = 50000 x 500 = 25000000
cells to transduce = 25000000 / 0.4 = 62500000 = 62500000.0, rounded up to 62500000
reads = 50000 x 500 = 25000000
Answer
result.cellsPerPassage = 25000000
result.cellsToTransduce = 62500000
result.readsRequired = 25000000
Where these values came from: our own exact-arithmetic script and a hand-worked case; hand-worked; reads per guide 500 as Joung J et al. (2017), Nature Protocols 12:828-863, doi 10.1038/nprot.2017.016, author manuscript PMC5526071, read 11 November 2026, Step 64.
At build the tool returned this answer within the tolerance the file states: exact: cell and read counts, texts, statuses and codes.
Sources
No source is recorded for this tool's methods.
How it is checked
- Level
Checked against a reference.
- Checked against
Our own exact-arithmetic script and a hand-worked case; the source's own worked example, CPython standard library (fractions), 3.13.18.
- Cases
No case set is linked to this version.
- Not checked
Joung et al. 2017's version of record (read as the PMC author manuscript); any measured representation of a real screen; the relation between a stated MOI and a transduced fraction, which this method does not take.
What this project's records still lack1 thing
- The source's location for each equation for screen-library-coverage@1.0.1.
Changes to its methods0 changes
No change is logged for these method versions.