686 Medical Measurement: The Dependency Graph

The preceding sections traced individual instruments. This one assembles the instruments used in clinical medicine and pharmaceutical development into a single directed graph, from the SI base units to regulatory decisions, and asks which nodes the clinical conclusions rest on.

686.0.1 Construction

Each edge records that determining the child requires the parent, and is typed as definitional, fitted, model-introduced, or instrumental. The graph covers six detection modalities — quantitative PCR, sequencing, mass spectrometry, immunoassay, flow cytometry, chromatography — together with the two imaging modalities of §646 and CT, histopathology, and the clinical and regulatory layer above them.

The result has \(113\) nodes and \(109\) edges: \(63\) definitional, \(25\) fitted, \(11\) model-introduced, \(10\) instrumental.

686.0.2 Cycles
metre           -> c_SI -> metre
wavelength_scale -> observed_lines -> energy_levels -> NIST_lines
                 -> wavelength_scale
variant_call    -> reference_genome -> read_alignment -> variant_call
antibody_titre  -> reference_serum -> calibration_curve -> antibody_titre
seropositive_call -> assay_specificity -> seropositive_call
cell_population_label -> gating_strategy -> cell_population_label
MRI_image       -> image_sharpness_criterion -> gradient_delay -> MRI_image

Seven cycles. Two are inherited from the physical layer and have appeared already. The remaining five are internal to biomedical measurement.

The sequencing cycle is the clearest. A variant is called by aligning reads to a reference genome and identifying positions where they differ. The reference genome is itself a consensus assembled from called variants, and each revision incorporates variants called against the previous revision. A position is a variant because it differs from the reference; the reference is what it is because of variants called earlier.

The immunoassay cycle runs through the calibrator. An antibody titre is read off a calibration curve anchored to a reference serum whose assigned value is in international units, and those units were assigned by measuring the reference material in the same class of assay. The specificity cycle is tighter still: an assay’s specificity is estimated from the fraction of known negatives it calls positive, and which samples count as known negatives is determined by an assay.

The flow-cytometry cycle is drawn by hand. A cell population is defined by a gate — a polygon drawn on a two-dimensional projection — and the gate is placed where the population appears. There is no population prior to the gate and no gate prior to the population.

686.0.3 Vertices with no parent

Thirty-six nodes have in-degree zero. Excluding the seven SI constants, the remainder are decisions:

\[ \begin {array}{lll} \texttt {threshold\_rule} & \texttt {baseline\_window} & \texttt {caller\_thresholds} \\ \texttt {segmentation\_threshold} & \texttt {scoring\_cutoff} & \texttt {equivalence\_margin} \\ \texttt {observation\_window} & \texttt {analysis\_population} & \texttt {symptom\_list} \\ \texttt {screening\_intensity} & \texttt {ICD\_revision} & \texttt {lead\_time} \\ \texttt {pathologist\_reading} & \texttt {antibody\_clone} & \texttt {stain\_protocol} \\ \texttt {integration\_parameters} & \texttt {curve\_model\_choice} & \texttt {decoy\_database} \\ \texttt {reconstruction\_kernel} & \texttt {I0\_estimate} & \texttt {internal\_standard} \\ \end {array} \]

Each terminates the chain not in a measurement but in a setting. The equivalence margin \(0.80\)–\(1.25\), which decides whether a biosimilar is approved, has no parent in the graph because it has none in the regulation either: it is a stipulated interval.

686.0.4 What the clinical endpoints rest on

Taking as endpoints drug_approval, biosimilar_approval, vaccine_efficacy, cancer_incidence, survival_rate, cause_of_death, lesion_size and cancer_diagnosis, and measuring how many each node reaches:

\[ \begin {array}{lrrr} \text {node} & \text {reaches} & \text {endpoints} & \text {depth} \\ \hline \texttt {stain\_protocol} & 5 & 3 & 0 \\ \texttt {pathologist\_reading} & 4 & 3 & 0 \\ \texttt {antibody\_clone} & 4 & 3 & 0 \\ \texttt {scoring\_cutoff} & 4 & 3 & 0 \\ \texttt {histology\_grade} & 3 & 3 & 3 \\ \texttt {caller\_thresholds} & 21 & 2 & 0 \\ \texttt {reference\_genome} & 20 & 2 & 3 \\ \texttt {variant\_call} & 20 & 2 & 3 \\ \texttt {K\_cd\_fixed} & 15 & 2 & 0 \\ \texttt {threshold\_rule} & 10 & 2 & 0 \\ \texttt {baseline\_window} & 10 & 2 & 0 \\ \texttt {Ct\_value} & 9 & 2 & 14 \\ \texttt {symptom\_list} & 3 & 2 & 0 \\ \texttt {observation\_window} & 2 & 2 & 0 \\ \texttt {analysis\_population} & 2 & 2 & 0 \\ \end {array} \]

The four nodes reaching the most endpoints — stain protocol, pathologist reading, antibody clone, scoring cutoff — all have depth zero. They are where histopathology terminates, and histopathology is what decides whether a person has cancer. Three clinical endpoints depend on a reading whose inter-observer agreement is between \(48\%\) and \(75\%\) depending on the tissue and the diagnostic category.

Note also the column of zeroes. threshold_rule, baseline_window, caller_thresholds, observation_window, analysis_population and symptom_list each reach two endpoints and each has no parent: they are settings that propagate to regulatory decisions without themselves deriving from anything.

686.0.5 Reach of each instrument
\[ \begin {array}{lrl} \text {instrument readout} & \text {reaches} & \text {endpoints reached} \\ \hline \texttt {Ct\_value} & 9 & \text {drug approval, vaccine efficacy} \\ \texttt {histology\_grade} & 3 & \text {cancer diagnosis, incidence, survival} \\ \texttt {CT\_HU} & 2 & \text {lesion size} \\ \texttt {antibody\_titre} & 4 & - \\ \texttt {MRI\_image} & 2 & - \\ \texttt {base\_call} & 1 & - \\ \texttt {mz\_ratio} & 1 & - \\ \texttt {peak\_area} & 1 & - \\ \texttt {cell\_count} & 0 & - \\ \end {array} \]

Two readouts carry the clinical layer. The \(C_t\) value of a qPCR run reaches vaccine efficacy and drug approval, because a case is defined by a positive test and a positive test is defined by a \(C_t\) below a cutoff. The histology grade reaches the three cancer endpoints.

Neither is a measurement of the quantity it stands for. \(C_t\) is the cycle at which a fluorescence curve crosses a threshold, and both the threshold rule and the baseline window from which it is computed have in-degree zero. The histology grade is a reading.

686.0.6 Most depended upon

Ranking by reverse PageRank — how much of the graph flows into each node:

\[ \begin {array}{lrr} \text {node} & \text {PageRank} & \text {reaches} \\ \hline \text {metre} & 0.0463 & 5 \\ c_{\rm SI} & 0.0428 & 5 \\ \texttt {variant\_call} & 0.0406 & 20 \\ \texttt {reference\_genome} & 0.0392 & 20 \\ \texttt {reference\_standard} & 0.0217 & 12 \\ \texttt {Ct\_value} & 0.0208 & 9 \\ \texttt {read\_alignment} & 0.0208 & 20 \\ \texttt {caller\_thresholds} & 0.0208 & 21 \\ \texttt {wavelength\_scale} & 0.0151 & 3 \\ \texttt {K\_cd\_fixed} & 0.0147 & 15 \\ \end {array} \]

The first two are the metre and \(c\), which is the cycle of §376.28: every optical instrument in the graph measures a length or a wavelength. Ranks three, four and seven are the three members of the sequencing cycle, which score highly precisely because they feed each other.

686.0.7 Summary
\[ \begin {array}{ll} \text {nodes} & 113 \\ \text {edges} & 109\ (63\ \mathrm {DEF},\ 25\ \mathrm {FIT},\ 11\ \mathrm {MODEL},\ 10\ \mathrm {INSTR}) \\ \text {cycles} & 7\ (5\ \text {internal to biomedicine}) \\ \text {in-degree } 0 & 36\ (7\ \text {SI constants},\ 29\ \text {settings}) \\ \text {deepest clinical node} & \texttt {case\_definition}\ (17\ \text {ancestors}) \\ \text {most endpoints from depth } 0 & \text {histopathology settings}\ (3\ \text {each}) \\ \end {array} \]

Fifty-eight percent of the edges are definitional. The clinical endpoints are reached most directly not from the instruments but from the settings attached to them — the threshold, the window, the cutoff, the population, the symptom list — and those settings have no derivation in the graph because they have none outside it.

pict

Figure 903: Dependency graph of medical measurement: \(113\) nodes, \(109\) edges, seven directed cycles, thirty-six vertices of in-degree zero. Layers run from the SI base units at the bottom to regulatory decisions at the top. Edge colour gives the type of dependency; nodes on a cycle are outlined in red, vertices of in-degree zero in green, clinical endpoints in black.

686.1 Quantitative PCR: The Threshold Rule and the Copy Number

Quantitative PCR reports a quantity of nucleic acid. What the instrument records is a fluorescence value once per thermal cycle. Between the two lies a sequence of choices, and this subsection measures what each is worth, using amplification curves from published instrument output distributed with the qpcR, chipPCR and PCRedux packages.

686.1.1 The reported quantity

The pipeline is

\[ \text {fluorescence}(n) \;\to \; C_t \;\to \; \text {copies} \propto E^{-C_t}, \]
where \(C_t\) is the cycle at which the curve crosses a threshold and \(E\) is the amplification efficiency. Both are determined by rule rather than measured. Because the relation is exponential, a displacement of \(\Delta C_t\) multiplies the reported quantity by \(E^{\Delta C_t}\).
686.1.2 Eight rules on the same wells

Eight \(C_t\) definitions in current use were applied to the \(84\) wells of the guescini1 dilution series. The fluorescence values are identical throughout; only the rule changes.

\[ \begin {array}{lrrrrr} \text {rule} & \text {mean } C_t & \text {s.d.} & \min & \max & \text {undefined} \\ \hline 3\sigma \ \text {baseline }3\text {--}15 & 16.95 & 5.35 & 1.97 & 28.56 & 0 \\ 10\sigma \ \text {baseline }3\text {--}15 & 20.07 & 4.11 & 16.11 & 29.52 & 12 \\ 10\sigma \ \text {baseline }5\text {--}20 & 23.02 & 2.37 & 21.11 & 30.03 & 24 \\ \text {second-derivative max} & 24.06 & 7.18 & 13.00 & 36.00 & 0 \\ 20\%\ \text {of maximum} & 24.43 & 7.06 & 13.99 & 36.12 & 0 \\ \text {sigmoid } c_{50} & 26.30 & 7.17 & 15.25 & 38.09 & 0 \\ 50\%\ \text {of maximum} & 26.35 & 7.12 & 15.52 & 38.09 & 0 \\ \text {first-derivative max} & 26.37 & 7.11 & 16.00 & 38.00 & 0 \\ \end {array} \]

The mean \(C_t\) ranges over \(9.4\) cycles across the eight rules. Taken well by well, the median spread between the largest and smallest \(C_t\) is \(10.47\) cycles, corresponding to a factor of

\[ 2^{10.47} = 1417 \]
in reported copy number; at the ninetieth percentile the spread is \(13.48\) cycles, a factor of \(11\,459\).

Two rules return no value for some wells — twelve and twenty-four of eighty-four respectively — because the curve never crosses the threshold they define. Under those rules the wells are not quantified; under the other six they are.

686.1.3 The efficiency

The exponent \(E\) is obtained from a dilution series. In dil4reps94, \(375\) wells span four four-fold dilutions with \(94\) replicates each. Fitting \(C_t\) against dilution step for each rule:

\[ \begin {array}{lrrrrrr} \text {rule} & \text {cycles}/4\times & E & \text {efficiency} & R^2 & E^{10} \\ \hline \text {first-derivative max} & 3.414 & 1.501 & 50.1\% & 0.998 & 58.0 \\ 10\sigma \ \text {baseline }3\text {--}15 & 3.370 & 1.509 & 50.9\% & 0.998 & 61.2 \\ 20\%\ \text {of maximum} & 3.326 & 1.517 & 51.7\% & 1.000 & 64.6 \\ \text {second-derivative max} & 3.316 & 1.519 & 51.9\% & 0.998 & 65.4 \\ 50\%\ \text {of maximum} & 3.298 & 1.523 & 52.3\% & 1.000 & 66.9 \\ \text {sigmoid } c_{50} & 3.276 & 1.527 & 52.7\% & 1.000 & 68.8 \\ 3\sigma \ \text {baseline }3\text {--}15 & 2.960 & 1.597 & 59.7\% & 0.997 & 108.2 \\ 10\sigma \ \text {baseline }5\text {--}20 & 2.665 & 1.682 & 68.2\% & 0.968 & 181.6 \\ \end {array} \]

Every rule gives \(R^2 \geq 0.968\) and six give \(R^2 \geq 0.998\): each standard curve is, on its own terms, an excellent fit. They return efficiencies from \(1.501\) to \(1.682\), and over ten cycles the implied amplification differs by a factor of \(3.13\).

The customary assumption \(E = 2\) is not among them. Against the measured range, assuming perfect doubling overstates a ten-cycle amplification by a factor of \(5.6\) to \(17.6\).

686.1.4 Efficiency and rule dependence are coupled

The chipPCR package distributes four sets of \(60\) runs at different amplification efficiencies. Applying the same eight rules:

\[ \begin {array}{lrrr} \text {dataset} & C_t\ (\text {2nd deriv}) & \text {median rule spread} & \text {factor} \\ \hline \texttt {Eff625} & 26.97 & 14.72\ \text {cycles} & 26\,983 \\ \texttt {Eff750} & 23.70 & 10.58 & 1\,527 \\ \texttt {Eff875} & 23.43 & 11.84 & 3\,655 \\ \texttt {Eff1000} & 24.18 & 12.63 & 6\,321 \\ \end {array} \]
The lowest-efficiency sample is the most rule-dependent, by a factor of seventeen over the next. Where the amplification is least ideal, the choice of rule matters most.
686.1.5 Presence or absence

A clinical qPCR result is frequently binary, obtained by comparing \(C_t\) to a cutoff. Applying this to \(600\) wells of vermeulen1:

\[ \begin {array}{lrrrrr} \text {rule} & \text {cutoff }30 & 33 & 35 & 37 & 40 \\ \hline 3\sigma \ \text {baseline }3\text {--}15 & 587 & 594 & 595 & 595 & 595 \\ 10\sigma \ \text {baseline }3\text {--}15 & 562 & 576 & 577 & 580 & 581 \\ \text {second-derivative max} & 434 & 537 & 575 & 591 & 598 \\ 20\%\ \text {of maximum} & 440 & 541 & 578 & 594 & 600 \\ 50\%\ \text {of maximum} & 342 & 484 & 543 & 578 & 597 \\ \text {sigmoid } c_{50} & 319 & 465 & 524 & 559 & 577 \\ \text {first-derivative max} & 312 & 465 & 527 & 572 & 594 \\ \end {array} \]

At a cutoff of \(35\) the number of positives ranges from \(524\) to \(595\) across rules — \(71\) wells, or \(11.8\%\) of the plate. At a cutoff of \(30\) the range is \(312\) to \(587\), a factor of \(1.88\).

Neither the rule nor the cutoff is determined by the fluorescence. Both are configured before the plate is read.

686.1.6 Human adjudication

The PCRedux package distributes \(400\) amplification curves classified independently by seven assessors, each returning y (positive), n (negative) or a (ambiguous):

\[ \begin {array}{lrrrrr} \text {assessor} & \texttt {y} & \texttt {a} & \texttt {n} & \%\,\texttt {y} & \%\,(\texttt {y}+\texttt {a}) \\ \hline 1 & 264 & 28 & 108 & 66.0 & 73.0 \\ 2 & 248 & 44 & 108 & 62.0 & 73.0 \\ 3 & 260 & 33 & 107 & 65.0 & 73.2 \\ 4 & 254 & 40 & 106 & 63.5 & 73.5 \\ 5 & 259 & 33 & 108 & 64.8 & 73.0 \\ 6 & 263 & 29 & 108 & 65.8 & 73.0 \\ 7 & 262 & 30 & 108 & 65.5 & 73.0 \\ \end {array} \]

All seven agree on \(362\) of \(400\) curves (\(90.5\%\)); they disagree on \(38\) (\(9.5\%\)). Pairwise agreement ranges from \(92.8\%\) to \(99.2\%\), median \(97.0\%\). Sixty-two curves (\(15.5\%\)) receive an a from at least one assessor.

The structure of the disagreement is specific. Treating y alone as positive, the assessors differ in positive rate from \(62.0\%\) to \(66.0\%\); treating y+a as positive, they agree to within \(0.5\) percentage points, and unanimity rises from \(362\) to \(398\) of \(400\). The assessors do not disagree about which curves amplified. They disagree about which curves are ambiguous, and the reported positive rate depends on which side of the line ambiguity is placed.

686.1.7 Summary
\[ \begin {array}{lll} \text {what is varied} & \text {effect} & \text {fixed by} \\ \hline C_t\ \text {rule (8)} & 1417\times \ \text {median quantity} & \text {configuration} \\ C_t\ \text {rule, low-efficiency sample} & 26\,983\times & \text {configuration} \\ \text {efficiency }E & 1.501\text {--}1.682,\ 3.13\times \text { at }10\text { cycles} & \text {rule} \\ E=2\ \text {assumption} & 5.6\text {--}17.6\times \ \text {overstatement} & \text {convention} \\ \text {cutoff }35,\ \text {rule} & 524\text {--}595\ \text {positives of }600 & \text {configuration} \\ \text {ambiguity assignment} & 62.0\%\text {--}73.5\%\ \text {positive} & \text {assessor} \\ \end {array} \]

The fluorescence values are the same in every row. Each standard curve fits with \(R^2 \geq 0.968\), each rule is defensible, and each is in current use.

Data

Amplification curves from the R packages qpcR 1.4-2 (guescini1, \(84\) wells; dil4reps94, \(375\) wells over four four-fold dilutions; vermeulen1, first \(600\) of \(1280\) wells), chipPCR (Eff625, Eff750, Eff875, Eff1000, \(60\) runs each), and PCRedux (decision_res_kbqPCR, \(400\) curves classified by seven assessors). All are unprocessed instrument output; the \(C_t\) rules, efficiencies and cutoffs reported here were computed from the raw fluorescence values.

pict

686.2 Sequencing: The Reference and the Alphabet

A clinical sequencing report states that a patient carries a particular variant at a particular position in a particular gene. What the instrument produces is a set of short strings with per-character confidence values. This subsection follows the chain between the two, using the Genome in a Bottle reference material NA12878 (HG001), for which both raw alignments and a community benchmark call set are public.

The region examined is BRCA1, GRCh37 chr17:41,196,312–41,277,500, \(81{,}188\) bp, covered by \(19{,}282\) reads of mean length \(148\) bp from the NIST \(300\times \) HiSeq run downsampled to \(30\times \).

686.2.1 The delivered alignment is already a product

The BAM header records what was done before the file was released. It contains twenty-one invocations of GATK IndelRealigner, one per chromosome group, each with a distinct targetIntervals file and the parameter LODThresholdForCleaning=5.0, interleaved with twenty-one PrintReads passes that rewrite the reads. Duplicates have already been removed: the duplicate flag is set on zero of the \(19{,}282\) reads.

The positions in the file are therefore not where the aligner first placed the reads. They are where a realignment procedure, parameterised by a threshold of \(5.0\), moved them.

686.2.2 Where the reference comes from

A variant is a difference from a reference. The pileup alone does not say which base is the reference: at a heterozygous site the two alleles appear in roughly equal numbers, and which is designated reference is supplied externally.

Substituting the most common base at each position for the reference and calling variants against that gives, against \(115\) benchmark SNVs:

\[ \begin {array}{lrrrrr} \text {reference} & \text {calls} & \text {TP} & \text {FP} & \text {recall} & \text {precision} \\ \hline \text {GRCh37} & 151 & 114 & 37 & 0.991 & 0.755 \\ \text {pileup majority} & 135 & 61 & 74 & 0.530 & 0.452 \\ \text {second-most-common base} & 8\,373 & 53 & 8\,320 & 0.461 & 0.006 \\ \text {random base} & 60\,916 & 60 & 60\,856 & 0.522 & 0.001 \\ \text {all A} & 57\,663 & 65 & 57\,598 & 0.565 & 0.001 \\ \end {array} \]

The majority-base reference differs from GRCh37 at \(0.07\%\) of positions — \(57\) of \(81{,}188\) — and halves the recall. Inspection of the missed sites shows why:

\[ \begin {array}{lll} \text {position} & \text {benchmark} & \text {observed bases} \\ \hline 41\,198\,621 & \text {A}\to \text {G} & \text {G}:16,\ \text {A}:14 \\ 41\,200\,109 & \text {T}\to \text {C} & \text {C}:23,\ \text {T}:21 \\ 41\,202\,688 & \text {G}\to \text {A} & \text {A}:22,\ \text {G}:15 \\ 41\,216\,205 & \text {G}\to \text {T} & \text {T}:16,\ \text {G}:14 \\ \end {array} \]

At each, the allele the benchmark designates as the variant is the majority in the reads. Of the \(48\) sites missed by the majority-reference, \(47\) are heterozygous and one is homozygous. Whether a position is a variant or the reference is not decidable from the reads; the assignment comes from outside.

GRCh37 is itself a mosaic assembled from a small number of anonymous donors and is not the genome of any individual.

686.2.3 The alphabet

The reads are strings over \(\{\mathrm {A},\mathrm {C},\mathrm {G},\mathrm {T}\}\). This is a choice of encoding, not a property of the molecule: a nucleotide can equally be classified as purine or pyrimidine, as strong or weak base-pairing, as amino or keto, or read as a protein sequence in any of three frames.

Re-encoding both reads and reference under fourteen schemes:

\[ \begin {array}{lrrrrr} \text {encoding} & |\Sigma | & H(\text {ref}) & \text {distinct 12-mers} & \text {length} \\ \hline \text {ACGT} & 4 & 1.9852 & 27\,423 & 81\,188 \\ \text {purine/pyrimidine} & 2 & 1.0000 & 3\,977 & 81\,188 \\ \text {strong/weak} & 2 & 0.9855 & 4\,050 & 81\,188 \\ \text {amino/keto} & 2 & 0.9997 & 4\,054 & 81\,188 \\ \text {A vs.\ rest} & 2 & 0.8689 & 2\,847 & 81\,188 \\ \text {protein, frame 0} & 21 & 4.2509 & 25\,300 & 27\,062 \\ \text {protein, frame 1} & 21 & 4.2495 & 25\,392 & 27\,062 \\ \text {protein, frame 2} & 21 & 4.2437 & 25\,267 & 27\,062 \\ \end {array} \]

Aligning \(300\) reads under each encoding, with the reference encoded the same way:

\[ \begin {array}{lrrrr} \text {encoding} & \text {unique positions} & \text {mean ED/len} & \text {ties} & \text {exact} \\ \hline \text {ACGT} & 260 & 0.0566 & 26 & 168 \\ \text {purine/pyrimidine} & 266 & 0.0311 & 26 & 191 \\ \text {strong/weak} & 269 & 0.0322 & 30 & 172 \\ \text {amino/keto} & 266 & 0.0325 & 22 & 187 \\ \text {A vs.\ rest} & 267 & 0.0266 & 33 & 179 \\ \text {protein, frame 0} & 258 & 0.4198 & 161 & 64 \\ \text {reverse complement} & 272 & 0.0566 & 36 & 168 \\ \end {array} \]

Two results here are worth separating.

Collapsing the alphabet from four symbols to two reduces the distinct 12-mer count from \(27{,}423\) to as few as \(2{,}847\) — a tenfold loss of distinguishability — while improving every alignment statistic: the normalised edit distance falls from \(0.0566\) to \(0.0266\) and the number of exact matches rises from \(168\) to \(191\). Discarding the distinction between A and G makes reads fit the reference better, because the mismatches that remained were the distinction. Alignment quality is not evidence that the encoding is correct.

Reading the same reads as protein in any frame gives \(161\) ties out of \(300\) against \(26\) under ACGT: over half the reads no longer have a unique best placement. The three frames differ from one another in entropy by \(0.007\) bits and in distinct \(k\)-mer count by \(0.5\%\); nothing in the read distinguishes which frame is the one that matters.

Reverse-complementing the reads gives \(272\) unique positions against \(260\) and an identical mean edit distance. The two orientations are not distinguishable by fit.

686.2.4 What a read is

A read is not a fixed object either. It is delivered at a particular length, with particular ends, and with per-base quality values that may or may not be used to censor bases. Reconstructing the same underlying data:

\[ \begin {array}{lrrrrr} \text {construction} & \text {reads} & \text {mean len} & \text {ED/len} & \text {recall} & \text {precision} \\ \hline \text {as delivered} & 19\,282 & 148 & 0.0456 & 0.991 & 0.750 \\ \text {trim }10\text { bp each end} & 19\,282 & 128 & 0.0440 & 0.991 & 0.708 \\ \text {shred to }50\text { bp} & 38\,564 & 50 & 0.0681 & 0.983 & 0.734 \\ \text {shred to }25\text { bp} & 96\,410 & 25 & 0.0915 & - & - \\ \text {mask BQ}<30\text { as N} & 19\,282 & 148 & 0.5564 & 0.443 & 0.823 \\ \text {subsample }50\% & \approx 9\,600 & 148 & 0.0210 & 0.948 & 0.645 \\ \end {array} \]

Masking bases below quality \(30\) — a threshold routinely applied — removes \(52.7\%\) of all base calls and drops recall from \(0.991\) to \(0.443\) while raising precision from \(0.750\) to \(0.823\). Half the variants disappear and the remainder look cleaner. Subsampling to half the reads loses \(5\) variants and adds \(22\) false positives.

Shredding the reads into \(25\) bp fragments raises the normalised edit distance by a factor of two and reduces the number of distinct alignment positions from \(353\) to \(231\): shorter reads fit more places and resolve fewer.

686.2.5 What the benchmark is

The comparison above uses the GIAB v4.2.1 benchmark as the standard of correctness. Its own records state how it was produced. A representative entry:

  41197274 C>A GT=(0,1) PASS
    platformnames:  Illumina, PacBio, CG, 10X, Solid
    callsetnames:   HiSeqPE300xGATK, CCS15kb_20kbDV, CCS15kb_20kbGATK4,
                    CGnormal, HiSeqPE300xfreebayes, 10XLRGATK, SolidSE75GATKHC
    datasetsmissingcall: IonExome
    callable:       CS_HiSeqPE300xGATK_callable, CS_CCS15kb_20kbDV_callable,
                    CS_10XLRGATK_callable, CS_CCS15kb_20kbGATK4_callable,
                    CS_CGnormal_callable, CS_HiSeqPE300xfreebayes_callable

Five of the seven contributing call sets are GATK-based. The callable field records which callers considered the position tractable; positions no caller considered tractable are excluded from the benchmark interval file rather than counted as misses.

The benchmark is a consensus of variant callers, and the regions where they disagree are removed from the evaluation.

686.2.6 Agreement with the benchmark selects the benchmark’s own settings

Varying six filtering parameters over \(6{,}400\) combinations and scoring each against the benchmark within its high-confidence intervals:

\[ \begin {array}{lrr} \text {quantity} & \text {range} \\ \hline \text {calls per configuration} & 0\text {--}435 \\ \text {configurations returning zero} & 224\ (3.5\%) \\ \text {recall} & 0.000\text {--}0.543 \\ \text {precision} & 0.000\text {--}1.000 \\ \text {distinct variants ever called} & 770 \\ \text {called by all }6{,}400\text { configurations} & 0 \\ \text {called by fewer than half} & 700\ (90.9\%) \\ \end {array} \]

The ten highest-\(F_1\) configurations all share \(\texttt {bq\_min}=20\), \(\texttt {af\_min}=0.20\), \(\texttt {sb\_max}=1.0\) — the GATK defaults. The configuration matching GATK’s defaults exactly ranks \(15\)th of \(6{,}400\), the top \(0.23\%\).

This is the expected result and is not evidence that those settings are correct. The benchmark was constructed predominantly from GATK call sets; a filter configuration resembling GATK’s reproduces it. Agreement with the standard measures similarity to the procedure that made the standard.

686.2.7 Marginal effect of each filter

Averaged over all \(6{,}400\) configurations, the mean number of calls by parameter value:

\[ \begin {array}{lrrr} \text {parameter} & \text {permissive} & \text {strict} & \Delta \\ \hline \text {strand-bias limit} & 110.8\ (1.0) & 41.4\ (0.2) & 69.4 \\ \text {base quality} & 98.5\ (13) & 37.8\ (30) & 60.7 \\ \text {allele fraction} & 106.5\ (0.05) & 51.2\ (0.40) & 55.3 \\ \text {minimum depth} & 96.2\ (5) & 43.6\ (30) & 52.6 \\ \text {mapping quality} & 82.2\ (0) & 71.9\ (60) & 10.3 \\ \text {end trimming} & 78.9\ (0) & 71.4\ (10) & 7.5 \\ \end {array} \]

Mapping quality, conventionally treated as the primary alignment-confidence filter, has the second-smallest effect of the six.

686.2.8 Summary
\[ \begin {array}{lll} \text {what is varied} & \text {effect} & \text {supplied by} \\ \hline \text {reference base }(0.07\%\text { of sites}) & \text {recall }0.991\to 0.530 & \text {external assembly} \\ \text {alphabet }4\to 2\text { symbols} & \text {12-mers }27\,423\to 2\,847,\ \text {fit improves} & \text {convention} \\ \text {reading frame (protein)} & \text {ties }26\to 161\text { of }300 & \text {convention} \\ \text {BQ masking at }30 & \text {recall }0.991\to 0.443 & \text {configuration} \\ \text {subsample }50\% & 5\text { variants lost},\ 22\text { FP gained} & \text {configuration} \\ \text {6 filters, }6\,400\text { combinations} & 0\text {--}435\text { calls};\ 0\text { variants universal} & \text {configuration} \\ \end {array} \]

The reads are the same throughout. The benchmark against which all of this is scored is a consensus of the callers being scored, restricted to the regions where they agreed.

686.3 Sequencing: From Current to Genome

A clinical report states that a patient carries a variant at a position in a gene. The instrument produces a time series of electrical measurements. This subsection traces what lies between.

686.3.1 The chain

DNA molecule in solution
   \(\downarrow \) fragmentation (target length is chosen)
   \(\downarrow \) adapter ligation, PCR (cycle count chosen; duplicates created)
   \(\downarrow \) cluster generation / pore translocation
PHYSICAL SIGNAL
   Illumina: four-channel fluorescence intensity per cycle
   ONT: ionic current, pA, sampled at 4–5 kHz
   \(\downarrow \) base calling \(\leftarrow \) here the alphabet enters
      Illumina: RTA firmware, not distributed
      ONT: neural network, weights distributed (fast / hac / sup)
READ = string over {A,C,G,T} + Phred quality Q
   \(\downarrow \) alignment \(\leftarrow \) reference assembly, k-mer index, gap penalties
   \(\downarrow \) indel realignment \(\leftarrow \) LOD threshold 5.0
   \(\downarrow \) read filtering \(\leftarrow \) MAPQ, BQ, end trim
   \(\downarrow \) pileup \(\to \) variant call \(\leftarrow \) depth, allele fraction, strand bias
VARIANT = (position, ref allele, alt allele)
   \(\downarrow \) scored against
BENCHMARK \(\leftarrow \) consensus of variant callers,
         restricted to regions they agreed on
   \(\downarrow \)
CLINICAL REPORT

Two things about this chain are established before any measurement is examined.

The reference assembly enters at the alignment step and again at the calling step: a variant is by definition a difference from it, and GRCh37 is a mosaic assembled from a small number of anonymous donors, the genome of no individual.

The alphabet enters at base calling. Below that step there is no A, C, G or T — there is a current in picoamperes or an intensity in four channels. The four-letter alphabet is the output of a classifier, not a property read off the molecule.

686.3.2 What is distributed

Illumina
   raw intensity (CIF) not archived
   BCL rarely, test data only
   FASTQ smallest public unit – already base-called
   RTA base-calling firmware not distributed
Oxford Nanopore
   raw current (pod5 / fast5) public
   basecaller (Dorado) + weights public, three accuracy tiers
GIAB benchmark
   call set public
   callable-region intervals public
   positions no caller found tractable excluded, not counted as misses

For the dominant platform the chain cannot be entered below the read. The conversion from signal to letters happens inside instrument firmware that is not released, and the archives begin one step above it. This is itself a result: the layer at which the alphabet is imposed is the layer at which public access stops.

Nanopore is the exception, and the rest of this subsection uses it for the steps below the read and the NIST HG001 alignments for the steps above.