Fold-80 base penalty of target coverage, as Picard 3.4.0 computes it, version 1.1.0
ngs-capture-fold80@1.1.0: 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
Level: Checked against a reference; Convention inferred from Picard 3.4.0 outputs on designed cases; Picard's description says otherwise. Reference kind: our own exact-arithmetic script and a hand-worked case.
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.1.0
Level: Checked against a reference; Convention inferred from Picard 3.4.0 outputs on designed cases; Picard's description says otherwise. Reference kind: our own exact-arithmetic script and a hand-worked case. ngs-capture-fold80@1.1.0
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: The convention was chosen as the one candidate matching Picard 3.4.0 on six designed cases (candidates written first), then checked on seven fresh cases whose expectations were committed before Picard ran: all seven matched at Picard's six decimals, including the withholding boundary, overlapping targets, bait-only bases and Picard's default coverage cap. A known issue records the disagreement with Picard's wording.
Fold-80 = the mean depth over all target bases, zero-depth bases included, divided by the depth of the r-th smallest target base, r = floor((n + 4) / 5); a convention inferred from Picard 3.4.0's outputs on designed cases, withheld when that depth is 0 or a capped top bin holds bases.
- How results are reported: none: full double precision, unrounded
- Uncertainty: Arithmetic on the depths supplied; the convention is an inference from one program's outputs, pinned to its version.
- Reference, as its record states it: exact rational arithmetic in a script of our own, with Picard 3.4.0 run offline
- Level confirmed by this project's ruling of 14 November 2026
What this page can and cannot show
What was checked
73 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: 60 agree within the tolerance the file states, 13 refuse as the case expects, 0 differ, 0 were not run.
File 1, 11 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), 3.13.18; licence PSF-2.0
- Tolerance as the file states it: means and fold-80 relative 1e-14, fractions relative 1e-14 (zero exact); base counts, texts, statuses, codes and withheld rules exact
File 2, 7 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), 3.13.18; licence PSF-2.0
- Tolerance as the file states it: means and fold-80 relative 1e-14, fractions relative 1e-14 (zero exact); base counts, texts, statuses, codes and withheld rules exact
File 3, 55 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: means and fold-80 relative 1e-14, fractions relative 1e-14 (zero exact); base counts, texts, statuses, codes 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
Picard's source (deliberately unread); other Picard versions; depths that Picard's read and base filters would reduce (low mapping quality, low base quality, overlapping read-pair bases), which the designed cases did not include; a second written source for the formula (none found); real BAMs with paired reads, clipping and filters.
Definition or model
A closed form: the result follows from the inputs by the equations alone.
Equations
fold-80 = mean over all target bases / depth at rank floor((n + 4) / 5) counted from the smallest, the depth found as the first bin whose cumulative base count reaches that rank
withheld as twentieth-percentile-zero where that depth is 0, which takes precedence over an open top bin that holds bases
the designed and fresh Picard cases exercised none of Picard's read or base filters, which Picard's page says it applies after fold-80 ("calculated prior to some of the filters are applied"), so the inference holds only where those filters remove no target-base depth
| Symbol | Meaning and unit |
|---|---|
| fold-80 | fold-80 base penalty |
| n | target bases, bp |
Ruling of this project: 11 November 2026, section "2. Reasoning (rulings)". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
Constants
Constants: none used.
Worked example
Worked example: one case of ngs-capture-fold80@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
- depthForm = per-base
- depths.values[0] = 0
- depths.values[1] = 0
- depths.values[2] = 0
- depths.values[3] = 0
- depths.values[4] = 0
- depths.values[5] = 0
- depths.values[6] = 0
- depths.values[7] = 0
- depths.values[8] = 0
- depths.values[9] = 5
- depths.values[10] = 6
- depths.values[11] = 7
- depths.values[12] = 8
- depths.values[13] = 9
- depths.values[14] = 10
- depths.values[15] = 11
- depths.values[16] = 12
- depths.values[17] = 13
- depths.values[18] = 14
- depths.values[19] = 15
- depths.values[20] = 16
- depths.values[21] = 17
- depths.values[22] = 18
- depths.values[23] = 19
- depths.values[24] = 20
- depths.values[25] = 21
- depths.values[26] = 22
- depths.values[27] = 23
- depths.values[28] = 24
- depths.values[29] = 25
- depths.values[30] = 26
- depths.values[31] = 27
- depths.values[32] = 28
- depths.values[33] = 29
- depths.values[34] = 30
- depths.values[35] = 31
- depths.values[36] = 32
- depths.values[37] = 33
- depths.values[38] = 34
- depths.values[39] = 35
- depths.values[40] = 36
- depths.values[41] = 37
- depths.values[42] = 38
- depths.values[43] = 39
- depths.values[44] = 40
- depths.values[45] = 41
- depths.values[46] = 42
- depths.values[47] = 43
- depths.values[48] = 44
- depths.values[49] = 45
- depths.unit = x
- depthThresholds[0] = 1 x
- depthThresholds[1] = 20 x
- depthFilters = unknown
Steps
- f = 4.1, from depths; by the equation above; gives result.fold80BasePenalty.
The working, as the case writes it:
n = 50 bases
mean = 41/2 = 20.5
rank floor((n + 4)/5) = 10, depth there 5
Answer
result.fold80BasePenalty= 4.1
Where these values came from: our own exact-arithmetic script and a hand-worked case; exact rational arithmetic on the adopted convention; the expectation committed before Picard 3.4.0 ran on it.
At build the tool returned this answer within the tolerance the file states: means and fold-80 relative 1e-14, fractions relative 1e-14 (zero exact); base counts, texts, statuses, codes and withheld rules exact.
Who worked this case: not recorded.
What it refuses, and its input ranges
NO_TARGET_BASES: the depths cover no target base Next: Send the depths over your target bases, including those at zero depth.
Flags and notes a reply may carry
A note a reply may carry:
FOLD80_CONVENTION: Fold-80 here takes every target base, zero-depth bases included, for both the mean and the twentieth percentile. The rule was inferred from Picard's outputs on designed cases; Picard's own description names non-zero-coverage targets, and its outputs do not follow that wording.
Changes
No correction is logged for ngs-capture-fold80@1.1.0.
Tools that use it
Cite this version
Fold-80 base penalty of target coverage, as Picard 3.4.0 computes it. Drybench; ngs-capture-fold80@1.1.0; https://www.drybench.com/methods/m/ngs-capture-fold80/1.1.0 (accessed [date]).