639 Base Calling— Part 2

A sequence is delivered as a string over \(\{A,C,G,T\}\) with a per-position quality score. Neither the letters nor the scores are recorded by the instrument. What is recorded is a time series of intensities. This subsection follows the conversion, in two technologies whose raw signal is public: Sanger capillary electrophoresis, where the file contains four fluorescence channels alongside the manufacturer’s own call, and nanopore sequencing, where it contains an ionic current trace.

639.0.1 What the file contains

An .ab1 file holds four intensity channels sampled through the capillary run, the peak positions the instrument selected, the sequence it called, and a quality value per base:

\[ \begin {array}{lrrrr} \text {file} & \text {trace samples} & \text {bases called} & \text {median } Q & \text {instrument} \\ \hline \texttt {good\_control} & 3\,962 & 330 & 59 & 3730 \\ \texttt {lowq\_control} & 9\,533 & 797 & 18 & 3730 \\ \texttt {abi\_3730} & 16\,302 & 1\,165 & 50 & 3730 \\ \texttt {abi\_3100} & 10\,303 & 795 & 58 & 3100 \\ \end {array} \]

The trace is the measurement; the sequence and the quality values are outputs of processing already applied. Because both are present, the conversion can be repeated and compared against the delivered result.

639.0.2 How many bases there are

The instrument records the sample positions at which it decided a base occurred. Discarding those and locating peaks in the summed trace, with the minimum spacing as the only parameter:

\[ \begin {array}{lrrrrrr} & \multicolumn {2}{c}{\texttt {good\_control}} & \multicolumn {2}{c}{\texttt {abi\_3730}} & \multicolumn {2}{c}{\texttt {abi\_3100}} \\ \text {peak spacing} & n & \text {ident.} & n & \text {ident.} & n & \text {ident.} \\ \hline \text {instrument} & 330 & 97.9\% & 1165 & 98.8\% & 795 & 98.3\% \\ d = 10 & 315 & 93.9\% & 1137 & 94.5\% & 647 & 88.0\% \\ d = 11 & 303 & 90.9\% & 1104 & 83.5\% & 623 & 81.5\% \\ d = 12 & 238 & 71.2\% & 965 & 50.7\% & 531 & 64.2\% \\ \end {array} \]

Identity is by global alignment against the instrument’s own call. Changing the minimum peak spacing from \(10\) to \(12\) samples removes \(172\) of \(1165\) bases from the 3730 read and drops the agreement to \(50.7\%\).

The read length is therefore not a count of anything. It is the number of local maxima that survive a spacing criterion, and that criterion is a parameter.

639.0.3 Mobility and crosstalk

The four dideoxy terminators have different electrophoretic mobilities, so the peak for a given base arrives at a different time than it would have if the dye did not affect migration. A mobility shift per channel is applied to compensate. Its magnitude is a calibration constant, and the correction is applied before peaks are located.

Applying shifts of a few samples, at fixed peak spacing \(d=11\):

\[ \begin {array}{lrrrr} \text {correction} & \multicolumn {2}{c}{\texttt {abi\_3730}} & \multicolumn {2}{c}{\texttt {abi\_3100}} \\ & n & \text {identity} & n & \text {identity} \\ \hline \text {none} & 1104 & 83.5\% & 623 & 81.5\% \\ G + 3\ \text {samples} & 946 & 57.5\% & 536 & 65.3\% \\ G + 6\ \text {samples} & 900 & 57.3\% & 535 & 65.2\% \\ A - 3,\ T + 3 & 937 & 57.3\% & 510 & 61.2\% \\ \end {array} \]

A three-sample shift on one channel — less than a third of the spacing between bases — removes \(158\) bases from the 3730 read and takes the agreement from \(83.5\%\) to \(57.5\%\).

Spectral overlap between the four dyes is removed by inverting a \(4\times 4\) crosstalk matrix. Varying the off-diagonal magnitude from \(0\) to \(0.30\) leaves the identity within half a percent, so on these files that correction is not what decides the sequence. The spacing and the mobility shift are.

639.0.4 Ambiguity

A base is called as the channel with the largest intensity at the peak. A second criterion decides when no call is made: if the second-largest intensity exceeds a fraction of the largest, the position is reported as \(N\).

\[ \begin {array}{lrr} \text {threshold on 2nd/1st} & N & \text {identity} \\ \hline 1.00\ \text {(never)} & 0.00\% & 97.9\% \\ 0.60 & 0.30\% & 97.9\% \\ 0.35 & 0.91\% & 97.3\% \\ 0.25 & 1.21\% & 97.0\% \\ 0.10 & 3.64\% & 97.0\% \\ \end {array} \]

The fraction of the read declared unreadable moves from zero to \(3.6\%\) across thresholds that are all in use. Nothing in the trace distinguishes them.

639.0.5 What the quality value is

The Phred score is defined as \(Q = -10\log _{10} P(\text {error})\), and \(P\) is an estimate. Correlating the delivered \(Q\) against two quantities computed from the trace:

\[ \begin {array}{lrr} \text {file} & \mathrm {corr}(Q,\ \text {2nd/1st}) & \mathrm {corr}(Q,\ \log \ \text {peak height}) \\ \hline \texttt {good\_control} & -0.462 & +0.150 \\ \texttt {lowq\_control} & -0.454 & +0.543 \\ \texttt {abi\_3100} & -0.576 & +0.561 \\ \end {array} \]

\(Q\) is a function of the peak shape. It is not a count of errors, and no errors were observed in producing it. The number attached to each base as its error probability is a transformation of the same trace from which the base was called.

639.0.6 Nanopore: the current

A nanopore read is a series of ADC counts. For the read examined here: \(123\,627\) samples at \(4\) kHz, \(30.9\) seconds, ADC values from \(-4\) to \(635\).

Conversion to picoamperes uses three constants stored in the file:

\[ I\ [\mathrm {pA}] = (\text {ADC} + \text {offset}) \times \frac {\text {range}}{\text {digitisation}}, \]
here offset \(21.0\), range \(1437.70\), digitisation \(8192\). Perturbing them:
\[ \begin {array}{lrrr} \text {offset} & \text {range} & \text {median } I\ [\mathrm {pA}] & \text {shift} \\ \hline 21.0 & 1437.7 & 62.48 & - \\ 26.0 & 1437.7 & 63.36 & +0.88 \\ 16.0 & 1437.7 & 61.60 & -0.88 \\ 21.0 & 1509.6 & 65.60 & +3.12 \\ 21.0 & 1365.8 & 59.35 & -3.12 \\ \end {array} \]

A \(5\%\) change in the range constant moves the whole trace by \(3.1\) pA. The difference in mean current between neighbouring five-mers is of the same order.

639.0.7 Nanopore: normalisation

The basecaller does not receive picoamperes. It receives a normalised signal, and the normalising statistic is a choice:

\[ \begin {array}{lrrrr} \text {normalisation} & \text {mean} & \text {s.d.} & P_1 & P_{99} \\ \hline \text {none} & 62.789 & 11.570 & 38.44 & 87.93 \\ \text {mean / s.d.} & 0.000 & 1.000 & -2.105 & 2.172 \\ \text {median / MAD} & 0.023 & 0.872 & -1.812 & 1.918 \\ \text {quantile} & 0.017 & 0.640 & -1.330 & 1.408 \\ \end {array} \]

The three give different inputs to the same network. The standard deviation of the normalised signal differs by \(36\%\) between mean/s.d. and quantile scaling.

639.0.8 Nanopore: where one base ends

Classical basecallers segmented the trace into events before calling. Varying the change-point threshold and the minimum event length:

\[ \begin {array}{lrrr} \text {threshold} & \text {min.\ length} & \text {events} & \text {samples/event} \\ \hline 0.5 & 3 & 9\,530 & 12.5 \\ 0.5 & 8 & 5\,497 & 18.0 \\ 1.0 & 5 & 3\,345 & 36.5 \\ 1.5 & 5 & 1\,268 & 97.4 \\ 2.0 & 5 & 445 & 277.8 \\ \end {array} \]

The event count is an upper bound on the number of bases that can be called. It moves by a factor of \(21\) across the thresholds tried, and by a factor of \(2.85\) between \(0.5\) and \(1.0\).

Current basecallers have absorbed this step into a recurrent or convolutional network trained with a connectionist temporal classification loss. The segmentation is no longer explicit, but the boundary between one base and the next is still not present in the current trace: it is now supplied by the trained weights rather than by a threshold, and by the reference sequences those weights were trained against.

639.0.9 The chain
MEASURED
    Sanger    four-channel fluorescence intensity vs time
    Nanopore  ionic current, ADC counts vs time

NOT MEASURED
    where one base ends and the next begins
    which base produced a given signal level
    the probability that a call is wrong
------------------------------------------------------------------
SUPPLIED
  peak spacing / event threshold
        how many bases exist
        d=10 -> 1137 bases, d=12 -> 965 bases (same trace)
        event threshold 0.5 -> 9530, 2.0 -> 445

  mobility shift per channel
        which channel is read at a given position
        3 samples on one channel: 83.5% -> 57.5% identity

  crosstalk matrix
        how much of each dye leaks into each detector
        0 to 0.30 off-diagonal: < 0.5% change here

  ADC offset, range, digitisation
        the current scale
        5% in range -> 3.1 pA shift of the whole trace

  normalisation statistic
        the network input
        mean/sd vs quantile: 36% difference in scale

  trained weights
        the mapping from signal to base
        trained against reference sequences assembled from earlier calls

  Q formula
        the confidence attached to each letter
        corr(Q, second/first peak) = -0.46 to -0.58

The last two entries close the loop. The network that converts current to letters is trained on reads aligned to a reference genome, and that reference was assembled from base calls produced by an earlier version of the same procedure. The quality value that accompanies each letter is computed from the same signal that produced the letter, and reports no independent count of error.

pict

Figure 835: Base calling from raw signal. (a) Four-channel Sanger trace as recorded. (b) The same after baseline subtraction, with the peak positions the instrument selected. (c) Sequence recalled from the trace under ten preprocessing settings, aligned against the instrument’s own call. (d) Nanopore ionic current in picoamperes. (e) The same trace under three normalisation conventions. (f) Number of segmentation events, an upper bound on the number of bases, as a function of the change-point threshold.
Data

All files used in this subsection are public and were downloaded unmodified.

Sanger capillary traces (.ab1)

\[ \begin {array}{llrl} \text {label} & \text {file} & \text {size} & \text {source} \\ \hline \texttt {good\_control} & \texttt {good\_example\_control.ab1} & 170\ \mathrm {kB} & \text {Synthego ICE test data} \\ \texttt {lowq\_control} & \texttt {low\_quality\_control.ab1} & 223\ \mathrm {kB} & \text {Synthego ICE test data} \\ \texttt {abi\_3730} & \texttt {3730.ab1} & 300\ \mathrm {kB} & \text {Biopython test suite} \\ \texttt {abi\_3100} & \texttt {3100.ab1} & 209\ \mathrm {kB} & \text {Biopython test suite} \\ \end {array} \]

github.com/synthego-open/ice, path ice/tests/test_data/; github.com/biopython/biopython, path Tests/Abi/.

Channels were read from the DATA9–DATA12 records, which hold the processed four-colour trace in the order \(G, A, T, C\), and reordered to \(A, C, G, T\). Instrument peak positions were taken from PLOC1, the delivered sequence from the record sequence, and quality values from the per-letter annotation. Instrument model was read from MODL1: two files from an ABI 3730 and one from a 3100.

Nanopore raw current (.fast5)

\[ \begin {array}{ll} \text {file} & \texttt {multi\_fast5\_zip.fast5}\ (2.4\ \mathrm {MB},\ 10\ \text {reads}) \\ \text {source} & \texttt {github.com/nanoporetech/pod5-file-format},\ \texttt {test\_data/} \\ \text {read used} & \text {first read in file} \\ \text {signal} & \texttt {/Raw/Signal},\ 123\,627\ \text {samples},\ \texttt {int16} \\ \text {calibration} & \text {offset } 21.0,\ \text {range } 1437.6976,\ \text {digitisation } 8192,\ 4\ \mathrm {kHz} \\ \end {array} \]

The file also carries a basecalled FASTQ under /Analyses/Basecall_1D_000/BaseCalled_template/, which was not used; the analysis here operates on /Raw/Signal only.

Methods

Baseline subtraction used a \(301\)-sample running-minimum filter per channel. Mobility correction was applied as linear interpolation of each channel along the sample axis. Crosstalk removal inverted a \(4\times 4\) matrix with equal off-diagonal terms. Peaks were located with scipy.signal.find_peaks on the summed trace, with minimum spacing and prominence as stated. Identity was computed by global alignment (Levenshtein) over the first \(600\) positions against the instrument’s own call. Nanopore segmentation used a first-difference change-point rule with the threshold and minimum event length as stated, on the median/MAD-normalised current.

Code and derived tables are available with the manuscript.

639.1 The Sequence (DNA)

§706.11 took the genome as a string \(s \in \Sigma ^{*}\) and traced the operation performed on it. This section examines the string.

639.2 Why four letters

The alphabet \(\Sigma = \{\mathrm {A},\mathrm {C},\mathrm {G},\mathrm {T}\}\) is a convention, not an observation. The IUPAC nucleotide standard defines sixteen symbols, of which four are unambiguous and eleven denote sets:

\[ \begin {array}{llll} \mathrm {R} = \{A,G\} & \mathrm {Y} = \{C,T\} & \mathrm {S} = \{G,C\} & \mathrm {W} = \{A,T\} \\ \mathrm {K} = \{G,T\} & \mathrm {M} = \{A,C\} & \mathrm {B} = \{C,G,T\} & \mathrm {D} = \{A,G,T\} \\ \mathrm {H} = \{A,C,T\} & \mathrm {V} = \{A,C,G\} & \mathrm {N} = \text {any} & \mathrm {U} = T\ (\text {RNA}) \\ \end {array} \]

More consequentially, the alphabet has fewer letters than the molecule has states. Modified bases occur and are not represented:

\[ \begin {array}{ll} \text {5-methylcytosine} & \sim \!4\%\ \text {of human CpG cytosines} \\ \text {5-hydroxymethylcytosine} & \text {abundant in brain tissue} \\ N^{6}\text {-methyladenine} & \\ \text {8-oxoguanine} & \text {oxidative damage} \\ \text {uracil in DNA} & \text {deamination product} \\ \text {inosine} & \text {RNA editing product} \\ \end {array} \]
Each is recorded as \(\mathrm {C}\), \(\mathrm {A}\) or \(\mathrm {G}\). The notation does not merely fail to record the distinction; it erases it, and every downstream operation — alignment, distance, phylogeny, editing — is performed on the erased representation.

Distinguishing them requires a separate assay: bisulphite conversion for 5mC, which chemically alters the molecule before reading it, or a dedicated base-calling model for nanopore signal. The distinction is therefore available only to an experiment that has decided in advance to look for it.

639.3 The confidence is a model output

Each called base carries a Phred score

\[ Q = -10\log _{10} P(\text {error}), \]
and reads are retained or discarded by comparing \(Q\) against a cutoff:
\[ \begin {array}{rrl} Q & P(\text {error}) & \text {use} \\ \hline 10 & 10^{-1} & \text {minimum retained} \\ 13 & 5\times 10^{-2} & \text {Sanger convention} \\ 20 & 10^{-2} & \text {common cutoff} \\ 30 & 10^{-3} & \text {standard cutoff} \\ 40 & 10^{-4} & \text {high confidence} \\ 50 & 10^{-5} & \text {PacBio HiFi target} \\ \end {array} \]

\(P\) is not measured. It is a posterior produced by the base-calling model, and that model is trained on data whose correct sequence is taken as known — from a reference genome, or from the output of another base caller. The confidence attached to a letter is the model’s estimate of its own reliability, calibrated against a sequence produced the same way.

639.4 Nanopore: current to letters

A nanopore records ionic current against time, sampled at a few kilohertz. Recovering characters requires:

\[ \begin {array}{ll} \text {event segmentation} & \text {threshold, minimum dwell} \\ k\text {-mer or neural model} & \text {trained current levels for }4^{5}\text {--}4^{6}\text { contexts} \\ \text {transition model} & \text {HMM or CTC decoding} \\ \text {homopolymer handling} & \text {no signal feature encodes run length} \\ \text {modified bases} & \text {a separate model, or nothing} \\ \end {array} \]

The homopolymer case is a structural limitation rather than a noise problem. A run of identical bases produces a constant current; the number of bases in the run is not encoded in the level, and must be inferred from dwell time against a duration model. Nothing in the physical signal distinguishes \(\mathrm {A}_{5}\) from \(\mathrm {A}_{6}\) except a duration distribution.

The manufacturer’s position on the resulting instability is explicit: base-calling models are versioned, later versions produce different sequences from the same raw signal, and users are advised to re-basecall archived data with current models. The raw current is the durable record; the sequence is not.

639.5 Assembly: reads to a genome

Reads are short and genomes are long, so the sequence is assembled. Assembly is a graph problem, and the graph depends on a parameter.

In de Bruijn assembly the choice is the \(k\)-mer length. Values in common use run \(k \in \{21,31,41,51,63,77,99,127\}\); the vertex set is a subset of \(\Sigma ^{k}\), of size up to

\[ 4^{21} = 4.4\times 10^{12}, \qquad 4^{31} = 4.6\times 10^{18}, \qquad 4^{63} = 8.5\times 10^{37}. \]
Small \(k\) collapses repeats into single vertices; large \(k\) fragments the graph where coverage is sparse. There is no principled optimum, and the standard procedure is to assemble at several values of \(k\) and select the one maximising a contiguity statistic such as N50 — that is, to choose the method by its result.

Repeats longer than the read length are not resolvable in principle: the graph contains several traversals consistent with the data, and the assembler selects one. Overlap-based assembly replaces \(k\) with a minimum overlap length and a minimum identity, and has the same property.

639.6 The reference

Variants are defined as differences from a reference. The human reference is not a person: GRCh38 is a mosaic assembled from bacterial artificial chromosome clones contributed by several donors, with one donor predominating.

It is also versioned — NCBI34/hg16 (2003), GRCh37/hg19 (2009), GRCh38/hg38 (2013) — and coordinates are not stable across versions. The T2T-CHM13 assembly of 2022 is gapless but derives from a single hydatidiform mole cell line, which is homozygous and therefore carries one haplotype rather than two. The pangenome reference released in 2023 replaces the linear sequence with a graph, on the grounds that no single sequence is adequate.

Querying the NCBI assembly database returns \(2579\) human genome assemblies, including GRCh38.p14, T2T-CHM13v2.0, HuRef2.0, hg002v1.1 (maternal and paternal haplotypes deposited separately), KOLF2.1Jv1.1 and several from the Vertebrate Genomes Project.

A variant call is therefore a statement of the form “this read differs from that assembly at that coordinate”. Changing the assembly changes the variant list for the same individual, and changing the version changes the coordinate.

639.7 Alignment

Even the position is a choice. Aligning

\[ x = \mathrm {ACGTACGTTTTTACGTACGT}, \qquad y = \mathrm {ACGTACGTTTACGTACGT} \]
— which differ by a two-base deletion inside a homopolymer run — under gap-opening penalties \(\{-1,-2,-5,-10\}\), gap-extension penalties \(\{-0.1,-0.5,-1,-2\}\) and three scoring schemes yields three distinct alignments. The deletion can be placed at any position within the run, and the scoring parameters select which. In a real genome this is the difference between two variant calls at different coordinates.

639.8 The chain

\[ \boxed { \begin {aligned} &\text {current or fluorescence} && \text {(continuous)} \\ &\quad \downarrow \ \text {segmentation, }k\text {-mer model, decoding} && \text {thresholds, trained parameters} \\ &\text {characters over }\Sigma && |\Sigma | = 4\ \text {by convention; modifications erased} \\ &\quad \downarrow \ Q\text {-score cutoff} && Q \text { from the model, cutoff chosen} \\ &\text {retained reads} && \\ &\quad \downarrow \ \text {assembly} && k \text { chosen to maximise the result} \\ &\text {contigs} && \text {repeats resolved by selection} \\ &\quad \downarrow \ \text {alignment to a reference} && \text {gap penalties; reference is one of } 2579 \\ &\text {coordinates and variants} && \\ \end {aligned}} \]

The proposition that an organism has a genome of a certain sequence, and that a given position carries a given letter, is the terminus of this chain. The alphabet is smaller than the molecule; the confidence is the model’s own; the assembly parameter is chosen by its output; the reference is one selection from thousands; and the coordinate depends on a gap penalty.

639.9 The Count

§701.5 reduced every spectroscopic quantity to two integers: a pixel index and a fringe count. This section examines those integers.

639.10 A real raw record

The file LomanLabz_PC_20161125_FNFAF01132_MN17024_…_ch199_read2556_strand.fast5 from the Loman Lab human reference run contains, at /Raw/Reads/Read_2556/Signal, an array of \(98\,848\) int16 values recorded at \(4000\) Hz — \(24.7\) seconds of ionic current through one nanopore.

The array is not a current. Converting it requires three constants stored elsewhere in the same file:

\[ I_{\rm pA} = \big (\mathrm {ADC} + \texttt {offset}\big ) \times \frac {\texttt {range}}{\texttt {digitisation}} = \big (\mathrm {ADC} + 5.0\big ) \times \frac {1506.22}{8192.0} = \big (\mathrm {ADC} + 5.0\big ) \times 0.183865 . \]
\[ \begin {array}{lr} \text {samples} & 98\,848 \\ \text {ADC range} & 373\ \text {to}\ 1207 \\ \text {distinct codes used} & 409\ \text {of}\ 65\,536 \\ \text {step} & 0.183865\ \mathrm {pA} \\ \text {current range} & 69.50\ \text {to}\ 222.84\ \mathrm {pA} \\ |\Delta \mathrm {ADC}| = 0 & 2.46\%\ \text {of samples} \\ |\Delta \mathrm {ADC}| = 1 & 5.11\%\ \text {of samples} \\ \end {array} \]

Of the \(65\,536\) codes a sixteen-bit converter can produce, \(409\) are used. The remaining resolution is not measurement; it is the numerical range of the container. And in \(2.46\%\) of consecutive sample pairs the signal did not change by even one code: for those intervals the recorded current is not a measurement of the current but a statement that it moved less than \(0.18\) pA.

The three constants are read from the file. They were written by the instrument’s control software, and nothing in the signal determines them.

639.11 The threshold produces the count

The quantity of interest in a nanopore record is how many events occurred. Applying a standard peak-finding procedure to the same \(24.7\) seconds, varying only the detection threshold in units of the median absolute deviation:

\[ \begin {array}{rrrr} \text {threshold [MAD]} & \text {events} & \text {rate [s}^{-1}] & \text {relative to } 3\sigma \\ \hline 0.5 & 22\,206 & 898.6 & 3172 \\ 1.0 & 11\,703 & 473.6 & 1672 \\ 1.5 & 4874 & 197.2 & 696 \\ 2.0 & 1225 & 49.6 & 175 \\ 2.5 & 116 & 4.7 & 16.6 \\ 3.0 & 7 & 0.3 & 1.00 \\ 4.0 & 0 & 0.0 & 0 \\ \end {array} \]
The count spans four orders of magnitude and terminates at zero. There is no threshold at which the number stabilises, and no feature of the record identifies one. The recorded current is fixed; the number of events in it is not a property of the record.

639.12 The segmentation produces the sequence length

Base calling begins by segmenting the current into intervals during which one \(k\)-mer occupied the pore. The number of such intervals bounds the number of bases the read can contain. Segmentation requires a jump threshold and a minimum dwell:

\[ \begin {array}{rrrr} \text {jump [ADC]} & \text {min dwell} & \text {segments} & \text {mean dwell} \\ \hline 3 & 3 & 2854 & 3.3 \\ 3 & 5 & 139 & 5.4 \\ 5 & 3 & 5773 & 3.5 \\ 5 & 10 & 7 & 10.6 \\ 8 & 3 & 9479 & 4.0 \\ 8 & 10 & 90 & 11.3 \\ 12 & 3 & 12\,104 & 4.7 \\ 12 & 10 & 532 & 12.4 \\ 20 & 3 & 12\,025 & 6.6 \\ 20 & 10 & 2064 & 14.7 \\ \end {array} \]
Across settings all of which lie within the range used in practice, the implied read length runs from \(7\) to \(12\,104\) — a factor of \(1700\) from the same \(98\,848\) samples.

The letters of §639.1 are counted from these segments. How many letters a molecule has, in this instrument, is set before any letter is identified.

639.13 Requantisation

Reducing the same signal to fewer bits and measuring the correlation efficiency \(\eta = \langle xq\rangle / \sqrt {\langle x^2\rangle \langle q^2\rangle }\):

\[ \begin {array}{rrrr} \text {bits} & \text {levels} & \eta & \text {loss} \\ \hline 16 & 65\,536 & 0.999851 & 0.01\% \\ 12 & 4096 & 0.999851 & 0.01\% \\ 8 & 256 & 0.999811 & 0.02\% \\ 4 & 16 & 0.989564 & 1.04\% \\ 3 & 8 & 0.960569 & 3.94\% \\ 2 & 4 & 0.947384 & 5.26\% \\ 1 & 2 & 0.430612 & 56.94\% \\ \end {array} \]
Sixteen bits and twelve bits are indistinguishable, consistent with only \(409\) codes being occupied.

The two-bit row is the VLBI case. DiFX and hops multiply correlated amplitudes by \(1/0.88252 = 1.13312\) to compensate for two-bit quantisation, a factor computed from the van Vleck relation assuming Gaussian noise and a threshold at \(0.9816\sigma \). On this signal the measured efficiency is \(0.947\), not \(0.883\): the assumed correction is too large by \(7.3\%\).

The discrepancy is not a defect in either. It is the statement that the correction is exact for a Gaussian and approximate for anything else, and that the instrument does not measure which it has.

639.14 The same structure in four instruments

\[ \begin {array}{llll} \text {instrument} & \text {recorded} & \text {conversion} & \text {constants from} \\ \hline \text {nanopore} & \texttt {int16} \text { ADC} & I = (\mathrm {ADC}+o)\,r/d & \text {3, file metadata} \\ \text {CCD} & \texttt {uint16} \text { ADU} & e^- = \mathrm {ADU} \times g & \text {1 per amplifier per MJD} \\ \text {VLBI} & \text {2-bit} & A \times 1/0.88252 & \text {1, theoretical} \\ \text {LIGO} & \text {ADC counts} & h = \delta L/L & \text {time-varying transfer function} \\ \end {array} \]

The CCD case was traced earlier: opGain.par carries \(24\) gain entries, selected by observation date with a strict inequality, three of which have an empty provenance note, and one of which changes by \(108\%\) across a ten-day boundary.

639.15 LIGO: what is left after the conversions

The strain record for GW150914 at \(4096\) Hz contains \(131\,072\) samples with

\[ h_{\min } = -7.045\times 10^{-19}, \qquad h_{\max } = +7.706\times 10^{-19}, \qquad h_{\rm rms} = 2.181\times 10^{-19}, \]
dimensionless. Multiplying by the \(4\) km arm length gives a displacement range of \(-2.8\) to \(+3.1 \times 10^{-15}\) m, against a proton radius of \(8.4\times 10^{-16}\) m: the reported motion is a few proton diameters.

The released quantity is \(h\), not the photodiode output. Recovering \(h\) from ADC counts requires the sensing and actuation transfer functions of the interferometer, which are measured by injecting known displacements with the calibration lines and are re-derived for each observing run. The DQmask dataset accompanying the strain carries the data-quality flags by which segments are admitted or rejected.

The chain has the form of §452: the response function that converts counts to displacement is determined by driving the instrument with a displacement whose size is known from the same response function at a previous epoch.

\[ \boxed { \begin {aligned} &\text {recorded:} && 98\,848\ \texttt {int16}\ \text {values},\ 409\ \text {distinct} \\ &\text {to obtain a current:} && \times \ \texttt {range}/\texttt {digitisation},\ +\ \texttt {offset} \\ &\text {to obtain a count:} && \text {choose a threshold} \Rightarrow 0\ \text {to}\ 22\,206 \\ &\text {to obtain a length:} && \text {choose a segmentation} \Rightarrow 7\ \text {to}\ 12\,104 \\ &\text {to obtain a letter:} && \text {choose a model (\S 639.1)} \\ \end {aligned}} \]

The integers of §701.5 are integers. They are not counts of anything until a threshold is chosen, and the thresholds are not in the record. What the instrument delivers is a sequence of code values and three numbers written by its own software; every quantity above that — a current, an event, a base, a wavelength, a redshift — is obtained by a decision applied to it.

pict

Figure 836: One nanopore read from the Loman Lab human reference run (ch199_read2556, R9.4 flow cell): \(98\,848\) int16 samples at \(4000\) Hz, \(24.7\) seconds of ionic current. (a) The record converted to picoamperes, with \(30\) ms of raw ADC codes inset. The inset is the measurement; the main panel is the measurement multiplied by three constants. (b) Of the \(65\,536\) codes a sixteen-bit converter can produce, \(409\) occur, spanning codes \(373\) to \(1207\). The shaded regions are never visited. The conversion \(I = (\mathrm {ADC} + 5.0) \times 1506.22/8192.0\) uses offset, range and digitisation, all read from the file’s own metadata and none determined by the signal. (c) Events detected in the fixed record as the detection threshold is varied across the range used in practice: \(22\,206\) at \(0.5\sigma \), \(1225\) at \(2\sigma \), \(7\) at \(3\sigma \), none at \(4\sigma \). The count spans four orders of magnitude and terminates at zero; no threshold is distinguished by the data. (d) Segments produced by the event-detection step, which bounds the number of bases the read can yield. Across jump thresholds of \(3\)–\(20\) codes and minimum dwells of \(3\)–\(10\) samples — all within normal use — the implied read length runs from \(7\) to \(12\,104\), a factor of \(1700\) from identical samples. (e) Correlation efficiency \(\eta \) under requantisation. Sixteen and twelve bits are indistinguishable, since only \(409\) codes are occupied. At two bits the measured \(\eta = 0.947\) exceeds the value \(0.88252\) that VLBI correlators divide by, because that figure is derived for Gaussian noise at a threshold of \(0.9816\sigma \); the applied correction is too large by \(7.3\%\) for this signal. (f) The same structure in four instruments, with the LIGO GW150914 strain record shown as arm-length displacement against the proton radius: the reported motion is a few proton diameters, obtained from ADC counts through a transfer function calibrated by injecting displacements whose size is known from the same transfer function.

639.16 Alternative Representations

§639.1 traced the chain from ionic current to a string over \(\Sigma = \{\mathrm {A},\mathrm {C},\mathrm {G},\mathrm {T}\}\). This subsection asks what that string carries that other representations of the same reads do not.

Four MinION runs are used: DRR088098, DRR088146 and DRR088013 (Plasmodium falciparum) and DRR138538 (Homo sapiens). Composition figures are from DRR088098 unless stated otherwise.

639.16.1 How much information the string holds
\[ \begin {array}{lrrr} \text {representation} & \text {bytes} & \text {bits/base} & \text {ratio} \\ \hline \text {ASCII, one byte per base} & 2\,000\,000 & 8.0000 & 1.0000 \\ \text {2-bit packed} & 500\,000 & 2.0000 & 0.2500 \\ \texttt {gzip} & 509\,691 & 2.0388 & 0.2548 \\ \texttt {bzip2} & 452\,074 & 1.8083 & 0.2260 \\ \texttt {xz} & 430\,692 & 1.7228 & 0.2153 \\ \texttt {xz} \text { on 2-bit packed} & 430\,896 & 1.7236 & 0.2154 \\ \end {array} \]
Naive two-bit packing beats gzip; the best general-purpose compressor reaches \(1.72\) bits per base against a maximum of \(2\), and applying it to the already-packed form gains nothing.
\[ \begin {array}{lrr} \text {order} & \text {bits/base} & \text {distinct } k\text {-mers} \\ \hline 0 & 1.9417 & 4\ \text {of}\ 4 \\ 2 & 1.9359 & 64\ \text {of}\ 64 \\ 4 & 1.9234 & 1024\ \text {of}\ 1024 \\ 5 & 1.9149 & 4094\ \text {of}\ 4096 \\ 7 & 1.8776 & 65\,201\ \text {of}\ 65\,536 \\ \end {array} \]
Every \(k\)-mer up to length four occurs; at \(k=8\), \(65\,201\) of \(65\,536\). Conditioning on seven preceding bases reduces the entropy by \(3.3\%\) for a model with \(65\,536\) parameters. The string is, to within \(6\%\), incompressible by a model of its own local statistics.
639.16.2 Four letters is one choice among several
\[ \begin {array}{lrrrr} \text {alphabet} & |\Sigma | & H_0 & \texttt {xz}\ \text {bytes} & \text {bits/symbol} \\ \hline \mathrm {ACGT}\ \text {(as delivered)} & 4 & 1.9417 & 430\,692 & 1.9417 \\ \text {purine/pyrimidine } \mathrm {R/Y} & 2 & 1.0000 & 254\,208 & 1.0000 \\ \text {strong/weak } \mathrm {S/W} & 2 & 0.9417 & 252\,060 & 0.9417 \\ \text {keto/amino } \mathrm {K/M} & 2 & 1.0000 & 254\,352 & 1.0000 \\ \text {three letters, } \mathrm {T}\!\to \!\mathrm {C} & 3 & 1.4701 & 351\,620 & 1.4701 \\ \text {codons, 3-mers} & 64 & 5.8077 & 259\,248 & 1.9359 \\ \text {dinucleotides} & 16 & 3.8774 & 177\,956 & 1.9387 \\ \end {array} \]
Every row is the same physical record. The codon and dinucleotide alphabets carry the same information per base to three decimals; the four-letter form is not privileged by any quantity here. The \(\mathrm {T}\!\to \!\mathrm {C}\) collapse is what a bisulphite-converted read looks like before computational restoration, and the five-letter extension including 5-methylcytosine requires a separate assay to populate.
639.16.3 A generated string reproduces the local statistics
\[ \begin {array}{lrrrrr} \text {source} & \mathrm {GC}\% & H_0 & H_2/2 & \texttt {xz}\ \text {bits/base} & \text {6-mer JS} \\ \hline \text {real reads} & 34.05 & 1.9252 & 1.9213 & 1.7059 & - \\ \text {i.i.d., order 0} & 34.20 & 1.9266 & 1.9228 & 2.1336 & 0.0708 \\ \text {Markov order 3} & 34.15 & 1.9261 & 1.9222 & 2.1061 & 0.0448 \\ \text {Markov order 5} & 34.17 & 1.9263 & 1.9223 & 2.0760 & 0.0256 \\ \text {shuffled real} & 34.05 & 1.9252 & 1.9252 & 2.1330 & 0.0798 \\ \end {array} \]
An order-5 chain — \(1024\) contexts — reproduces base composition to \(0.12\) percentage points and entropy to four decimals. What it does not reproduce is compressibility: \(2.08\) against \(1.71\) bits per base. The residual \(0.37\) bits, or \(18\%\) of the nominal two, is long-range repetition beyond any \(k\)-mer context.
639.16.4 Separating the runs: compression-based distances fail

The normalised compression distance treats reads as byte strings with no biological interpretation. Its standard form,

\[ \mathrm {NCD}(x,y) = \frac {C(xy) - \min (C_x,C_y)}{\max (C_x,C_y)}, \]
returned values near unity earlier, indicating that concatenation was not finding shared structure. Since the normalisation is the suspect element, six alternative normalisations of the same three quantities \(C_x\), \(C_y\), \(C(xy)\) were tested, on two-bit packed sequences of \(200\) kb, under three compressors:
\[ \begin {array}{lrrrl} \text {definition (}\texttt {xz}\text {, 64\,MB dictionary)} & \text {within} & \text {between} & \text {sep.} & \text {separates} \\ \hline (C_{xy}-\min )/\max & 0.99314 & 0.99605 & +1.33 & \text {no} \\ C_{xy}/(C_x{+}C_y) & 0.99608 & 0.99783 & +1.40 & \text {no} \\ (C_{xy}-\min )/(C_x{+}C_y{-}\min ) & 0.99314 & 0.99605 & +1.33 & \text {no} \\ 1-(C_x{+}C_y{-}C_{xy})/C_{xy} & 0.99606 & 0.99782 & +1.40 & \text {no} \\ -(C_x{+}C_y{-}C_{xy})/\min & -0.00924 & -0.00485 & +1.45 & \text {no} \\ C_{xy}/\max & 1.73528 & 1.84581 & +1.05 & \text {no} \\ \end {array} \]

None separates: no normalisation achieves \(\min (\text {between}) > \max (\text {within})\). The reason is visible in the raw quantities. The absolute compression gain \(C_x + C_y - C_{xy}\) is \(0.9\%\) of \(\min (C_x,C_y)\) within species and \(0.5\%\) between — and it has the wrong sign for a distance, being larger for the pairs that should be farther apart. With zlib and bzip2 every definition returns a negative separation, and bzip2 yields \(C_{xy} > C_x + C_y\) outright.

The failure is not in the normalisation. At \(200\) kb the compressor’s model is saturated and the concatenation gains nothing to normalise. Rescaling zero is zero.

639.16.5 Replacing the compressor

The compression distance is an approximation to a conditional description length. Computing that quantity directly removes the compressor and its window entirely: build an order-\(K\) Markov model from \(x\), encode \(y\) under it, and measure the excess over \(y\)’s own entropy,

\[ d_K(x,y) = \tfrac {1}{2}\Big [ \big (H_K(y\,|\,x) - H_K(y\,|\,y)\big ) + \big (H_K(x\,|\,y) - H_K(x\,|\,x)\big )\Big ], \]
in bits per base.
\[ \begin {array}{lrrrl} K & \text {within} & \text {between} & \text {sep.} & \text {separates} \\ \hline 4 & 0.1508 & 0.3015 & +1.73 & \text {yes} \\ 6 & 0.6099 & 0.6649 & +0.43 & \text {no} \\ 8 & 1.0557 & 0.9559 & -0.91 & \text {no} \\ \end {array} \]
At \(K=4\) — \(256\) contexts against \(2\times 10^{5}\) bases, roughly \(780\) observations per context — the between-species excess is exactly twice the within-species excess and the separation is complete. At \(K=6\) there are \(49\) observations per context and the signal has halved; at \(K=8\) there are three, the model is memorising, and the ordering inverts.

The estimator has an optimum in \(K\), and the optimum is where the contexts are adequately sampled. This is the same trade-off as the term-count \(L\) in §700.1: increasing model capacity improves the fit and destroys the discrimination.

639.16.6 Comparison and permutation test
\[ \begin {array}{lrrrrl} \text {metric} & \text {within} & \text {between} & \text {ratio} & \text {sep.} & \text {separates} \\ \hline \text {GC content alone} & 0.0207 & 0.1364 & 6.60 & +1.97 & \text {yes} \\ \text {6-mer Jensen--Shannon} & 0.1480 & 0.2562 & 1.73 & +1.72 & \text {yes} \\ \text {cross-entropy excess, } K{=}4 & 0.1508 & 0.3015 & 2.00 & +1.73 & \text {yes} \\ \text {compression, best of 18} & 0.9931 & 0.9961 & 1.003 & +1.45 & \text {no} \\ \end {array} \]

Permuting the species labels over all \(24\) assignments:

\[ \begin {array}{lrrl} \text {metric} & \text {observed} & \text {max over labellings} & \text {rank} \\ \hline \text {GC content alone} & +1.968 & +1.968 & 6/24 \\ \text {6-mer Jensen--Shannon} & +1.720 & +1.720 & 6/24 \\ \text {cross-entropy excess, } K{=}6 & +0.434 & +1.511 & 12/24 \\ \end {array} \]
With four runs in a \(3{:}1\) split, six labellings are equivalent by symmetry, so rank \(6/24\) is the best attainable. GC content and the \(6\)-mer divergence both attain it; the cross-entropy excess at \(K=6\) does not, consistent with the \(K\)-dependence above.
639.16.7 The minimum sufficient description
\[ \begin {array}{lrrrrr} \text {run} & \mathrm {GC} & \text {median } Q & \text {mean } Q & \text {median length} & \text {reads} \\ \hline \text {DRR088098} & 0.3405 & 9 & 10.06 & 2332 & 1057 \\ \text {DRR088146} & 0.3095 & 11 & 12.27 & 1918 & 1343 \\ \text {DRR088013} & 0.3316 & 16 & 17.08 & 395 & 4260 \\ \text {DRR138538} & 0.4605 & 19 & 19.98 & 599 & 3426 \\ \end {array} \]
\[ \begin {array}{lrrl} \text {features (standardised)} & \text {within} & \text {between} & \text {separates} \\ \hline \{\mathrm {GC}\} & 0.352 & 2.266 & \text {yes} \\ \{\text {median } Q\} & 1.178 & 1.767 & \text {no} \\ \{\mathrm {GC},\ \text {median } Q\} & 1.274 & 2.944 & \text {yes} \\ \{\mathrm {GC},\ \text {median length}\} & 1.645 & 2.715 & \text {no} \\ \{\mathrm {GC},\ \text {median } Q,\ \text {median length}\} & 2.024 & 3.275 & \text {no} \\ \end {array} \]
One number separates the species. Adding read length destroys the separation, because read length tracks the library preparation: DRR088013 and DRR088098 are the same species with median lengths of \(395\) and \(2332\), a factor of six.
\[ \begin {array}{ll} \text {the string is incompressible to } 6\% & 1.942 \to 1.878\ \text {bits/base at order }7 \\ \text {the alphabet is one of several} & |\Sigma | \in \{2,3,4,16,64\},\ \text {same record} \\ \text {local statistics are reproducible} & \text {order-5 Markov, GC to } 0.12\ \text {pp} \\ \text {not reproducible} & 0.37\ \text {bits/base of long-range repetition} \\ \text {compression distances fail} & 18\ \text {configurations, none separates} \\ \text {a direct model succeeds at one } K & K{=}4\ \text {yes},\ K{=}6\ \text {no},\ K{=}8\ \text {inverts} \\ \text {one number suffices} & \mathrm {GC},\ \text {separation} +1.97 \\ \text {more features are worse} & \text {read length carries preparation} \\ \end {array} \]

The sequence is one representation of a record that admits several, and it is not the representation carrying most of what distinguishes these runs: a single composition fraction does that, and does it better than the string. Every distance that does work has a parameter — \(K\), or the choice of feature — whose value determines whether it works, and no quantity in the data selects that value.

639.17 The Residual Is a Choice of Null

an earlier section found that an order-5 Markov chain reproduces the base composition and low-order entropy of the reads but not their compressibility, and reported the difference

\[ g = C(\text {null}) - C(\text {real}) \]
as \(0.37\) bits per base of structure present in the record and absent from the model. This subsection examines \(g\).
639.17.1 Under recoding and compressor

With the order-5 null held fixed, at \(4\times 10^{5}\) bases:

\[ \begin {array}{lrrr} \text {transform} & \text {real} & \text {null} & g \\ \hline \text {identity }\mathrm {ACGT} & 1.7059 & 2.0721 & 0.3662 \\ \text {complement} & 1.7065 & 2.0713 & 0.3648 \\ \text {reverse} & 1.7052 & 2.0755 & 0.3703 \\ \text {random relabelling} & 1.7055 & 2.0702 & 0.3647 \\ \mathrm {XOR}\ \text {with own shift} & 1.7906 & 2.1380 & 0.3474 \\ \hline \text {2-bit packed} & 1.7344 & 1.9406 & 0.2062 \\ \text {purine/pyrimidine } \mathrm {R/Y} & 1.0315 & 1.0985 & 0.0670 \\ \text {strong/weak } \mathrm {S/W} & 1.0130 & 1.0438 & 0.0308 \\ \end {array} \]
\(g\) is stable at \(0.365 \pm 0.002\) under bijections and falls by a factor of five to twelve under alphabet folding. Across xz -9e, bzip2 and an order-8 arithmetic coder it is \(0.366\), \(0.365\), \(0.303\); under zlib, \(0.235\).

\(g\) is therefore not an artefact of the letter names or of one algorithm. It is specific to the four-letter encoding.

639.17.2 Under change of null

The comparison is between the reads and a generative model, and the model was chosen. Varying it within the Markov family and by block shuffling:

\[ \begin {array}{lrr} \text {null} & \text {bits/base} & g \\ \hline \text {Markov order 1} & 2.1358 & +0.4299 \\ \text {shuffled} & 2.1347 & +0.4288 \\ \text {i.i.d.} & 2.1336 & +0.4277 \\ \text {Markov order 5} & 2.0760 & +0.3701 \\ \text {Markov order 7} & 1.9502 & +0.2443 \\ \text {block shuffle, } 1000 & 1.7151 & +0.0092 \\ \text {block shuffle, } 10\,000 & 1.7097 & +0.0038 \\ \text {Markov order 9} & 1.6753 & -0.0306 \\ \text {Markov order 11} & 1.4268 & -0.2791 \\ \end {array} \]
Every entry reproduces the base composition; they differ in what else they carry. Past order 8 the model has \(4^{9}\) contexts against \(4\times 10^{5}\) bases and is memorising.
639.17.3 Five mechanisms that copy nothing

A null that inserts repeated substrings would be circular: it posits repetition to explain repetition. The following five generate no copies. Each corresponds to a standard account of genomic sequence, and each is evaluated on four statistics rather than compressibility alone.

\[ \begin {array}{lrrrrr} \text {null} & \mathrm {GC}\% & \texttt {xz} & g & \text {longest rep.} & \text {6-mer JS} \\ \hline \text {real reads} & 34.05 & 1.7059 & - & 53 & - \\ \hline \text {shuffled} & 34.1 & 2.1429 & +0.437 & 17 & 0.0640 \\ \text {i.i.d.} & 34.2 & 2.1336 & +0.428 & 17 & 0.0538 \\ \text {Markov order 5} & 34.0 & 2.0709 & +0.365 & 19 & 0.0095 \\ \text {Markov order 9} & 34.0 & 1.6747 & -0.031 & 48 & 0.0098 \\ \text {Markov order 11} & 33.7 & 1.4244 & -0.282 & 109 & 0.0091 \\ \text {block shuffle } 10^{3} & 34.1 & 1.7136 & +0.008 & 53 & 0.0078 \\ \text {block shuffle } 10^{4} & 34.1 & 1.7069 & +0.001 & 77 & 0.0098 \\ \text {hetero, } \alpha {=}0.15 & 49.9 & 1.8107 & +0.105 & 400 & 0.2958 \\ \text {HMM, 2 states} & 99.3 & 1.1445 & -0.561 & 36 & 0.9610 \\ \text {HMM, 8 states} & 38.6 & 1.2682 & -0.438 & 400 & 0.4873 \\ 1/f^{1.0}\ \text {noise} & 33.7 & 1.4654 & -0.241 & 400 & 0.5950 \\ 1/f^{2.0}\ \text {noise} & 33.7 & 0.0813 & -1.625 & 400 & 0.9840 \\ \text {var-order, } K{\le }8,\ \min 20 & 33.1 & 1.8419 & +0.136 & 32 & 0.0133 \\ \textbf {var-order, } K{\le }12,\ \min 20 & \mathbf {32.0} & \mathbf {1.6477} & \mathbf {-0.058} & \mathbf {48} & \mathbf {0.0201} \\ \text {var-order, } K{\le }16,\ \min 5 & 32.2 & 1.4839 & -0.222 & 70 & 0.0157 \\ \end {array} \]

The block shuffle is not a generative model at all: it cuts the real reads into blocks and permutes them. At \(10^{3}\) it reproduces the composition to \(0.05\) percentage points, the compressibility to \(0.008\) bits, the longest repeated substring exactly, and the \(6\)-mer divergence to \(0.008\) — lower than the order-5 chain. Whatever \(g\) measures is destroyed by permuting the sequence at scales below \(10^{3}\) and is untouched by permuting it above.

Three of the five families fail on statistics other than \(g\). Block heterogeneity and both hidden-Markov settings drive the GC fraction to \(49\)–\(76\%\) against the observed \(34\%\), and their \(6\)-mer divergence is \(0.17\)–\(0.80\) against \(0.0095\) for the plain order-5 chain. The \(1/f\) family holds the composition exactly by construction but its divergence rises to \(0.99\) at \(\beta = 2\), where the sequence has collapsed to a few long constant runs. Segmenting an order-5 chain at real read lengths changes nothing: \(g = 0.365\), indistinguishable from the unsegmented chain.

The variable-order family does not fail. At \(K \le 12\) with a minimum context count of \(20\), the generated string matches the reads on all four:

\[ \begin {array}{lrrrr} & \mathrm {GC}\% & \texttt {xz} & \text {longest rep.} & \text {6-mer JS} \\ \hline \text {real} & 34.05 & 1.7059 & 53 & - \\ \text {variable-order } K{\le }12 & 31.93 & 1.6519 & 57 & 0.0198 \\ \end {array} \]
Composition to \(2.1\) percentage points, compressibility to \(0.054\) bits, the longest repeated substring to four characters, and a \(6\)-mer divergence twice that of the order-5 chain but an order of magnitude below every other family here. The model contains no copying mechanism: it is a Markov chain whose order at each position is the largest for which the context has been observed at least twenty times.
\[ \begin {array}{ll} g\ \text {under bijective recoding} & 0.365 \pm 0.002 \\ g\ \text {under alphabet folding} & 0.031\ \text {to}\ 0.208 \\ g\ \text {under change of compressor} & 0.235\ \text {to}\ 0.366 \\ g\ \text {under change of null} & -1.663\ \text {to}\ +0.430 \\ \text {nulls with } |g| < 0.06 & \text {block shuffle } 10^{3};\ \text {order-9}; \ \text {variable-order } K{\le }12 \\ \end {array} \]

The range of \(g\) over the nulls tested is \(2.09\) bits per base, against an alphabet capacity of \(2\). The reads are more structured than an order-1 chain by \(0.43\) bits, less structured than a \(1/f^{2}\) process by \(1.66\), and indistinguishable from a variable-order chain to \(0.054\).

Three of the five copy-free families are excluded by composition or by \(k\)-mer divergence, and that exclusion is a real constraint: not every generative story fits. What is not available is a criterion selecting among those that do. The quantity \(0.37\) names a difference between the reads and one member of the Markov family, and a different member of the same family — with no additional mechanism, only a rule for choosing the context length — reduces it to \(-0.054\).

pict

Figure 837: The residual \(g = C(\text {null}) - C(\text {real})\) for the same \(4\times 10^{5}\) bases of DRR088098 against twenty-one generative models. (a) \(g\) spans \(2.06\) bits per base, from \(-1.625\) (\(1/f^{2}\) noise) to \(+0.437\) (a plain shuffle), exceeding the \(2\)-bit capacity of the alphabet. The value \(0.365\) reported earlier is the order-5 Markov entry, and the shaded band \(|g| < 0.06\) is occupied by four models from three unrelated families. (b) A small \(|g|\) is not sufficient. The two-state hidden-Markov model reaches \(g = -0.561\) with a GC fraction of \(99.3\%\) against the observed \(34.1\%\); the \(1/f\) family holds the composition by construction but fails elsewhere. (c) Six models on four statistics simultaneously, each normalised to its plotted range, with the real reads as the dashed reference. Only the variable-order chain tracks all four. (d) Within the Markov family alone, \(g\) falls monotonically from \(+0.428\) at order 1 to \(-0.281\) at order 11 and changes sign between orders 7 and 9, where \(4^{K}\) approaches the sequence length and the model begins to memorise. (e) The null matching every statistic contains no copying mechanism: a Markov chain whose order at each position is the largest context observed at least twenty times, giving \(g = -0.058\), GC within \(2.1\) percentage points, and the longest repeated substring within five characters.
\begin{equation} \boxed { \text {Physical DNA} \xrightarrow {\text {sampling}} \text {Current} \xrightarrow {\text {quantization}} \text {ADC} \xrightarrow {\text {segmentation}} \text {Events} \xrightarrow {\text {basecalling}} \text {Letters} } \tag{24451}\end{equation}

639.18 The Constraints Are Also Products of the Pipeline

§639.17 found that \(g\) depends on the null, and that three of five copy-free model families were excluded — not by \(g\), but by base composition and \(k\)-mer divergence. That exclusion was presented as a real constraint: not every generative story fits. This subsection examines the constraints.

639.18.1 The composition depends on the quality cutoff

The GC fraction that excluded the hidden-Markov and heterogeneous families is not a property of the organism. It is a property of the retained reads:

\[ \begin {array}{rrrrrr} Q\ \text {cutoff} & \text {reads} & \mathrm {GC}\% & \texttt {xz} & \text {longest rep.} & H_0 \\ \hline 0 & 1057 & 34.05 & 1.7059 & 53 & 1.9252 \\ 7 & 1056 & 34.05 & 1.7059 & 53 & 1.9252 \\ 9 & 778 & 34.05 & 1.7059 & 53 & 1.9252 \\ 10 & 519 & 33.68 & 1.6778 & 54 & 1.9216 \\ 11 & 256 & 31.83 & 1.5352 & 65 & 1.9023 \\ 12 & 67 & 29.96 & 1.4780 & 82 & 1.8807 \\ \end {array} \]
Every quantity used as a constraint moves with the cutoff. Composition falls by \(4.1\) percentage points, compressibility by \(0.23\) bits per base, and the longest repeated substring rises from \(53\) to \(82\). The published GC content of P. falciparum is \(19.4\%\); none of these values is close to it.

The constraint that excluded a model family is therefore itself a function of a threshold chosen elsewhere in the pipeline.

639.18.2 A model excluded by composition can be tuned to satisfy it

The hidden-Markov family was excluded because its states, drawn from a symmetric Dirichlet, produced GC fractions of \(38.6\) and \(99.3\%\). Constraining the state distributions to a target GC while leaving the mechanism unchanged:

\[ \begin {array}{lrrrrl} \text {null} & \mathrm {GC}\% & g & \text {longest rep.} & \text {6-mer JS} & \mathrm {GC}\ \text {passes} \\ \hline \multicolumn {6}{l}{\text {at } Q\ \text {cutoff } 0\ \text {(real: GC } 34.05,\ \texttt {xz}\ 1.7059,\ \text {rep } 53)} \\ \text {Markov order 5} & 33.97 & +0.366 & 19 & 0.0091 & \text {yes} \\ \text {HMM 8, untuned} & 43.80 & -0.214 & 79 & 0.5291 & \text {no} \\ \text {HMM 8, GC-tuned} & 34.01 & +0.210 & 29 & 0.2037 & \text {yes} \\ \text {HMM 4, GC-tuned} & 34.03 & +0.186 & 27 & 0.2471 & \text {yes} \\ \hline \multicolumn {6}{l}{\text {at } Q\ \text {cutoff } 10\ \text {(real: GC } 33.68,\ \texttt {xz}\ 1.6778,\ \text {rep } 54)} \\ \text {Markov order 5} & 33.68 & +0.394 & 19 & 0.0098 & \text {yes} \\ \text {HMM 8, untuned} & 39.56 & -0.709 & 400 & 0.7360 & \text {no} \\ \text {HMM 8, GC-tuned} & 33.75 & +0.326 & 20 & 0.1300 & \text {yes} \\ \end {array} \]
The mechanism is identical; only the state distributions were reparametrised. The family that failed the composition test now passes it, and does so at both cutoffs.

It still fails the \(6\)-mer divergence, at \(0.13\)–\(0.25\) against \(0.009\) for the Markov chain. That is a second constraint, and it is a real one. But the demonstration is that failing a constraint is a statement about a parametrisation, not about a mechanism.

639.18.3 Which statistics are constraints is not determined

Eight statistics were computed for five candidate nulls at \(Q\) cutoff \(0\):

\[ \begin {array}{lrrrrrrrr} & \mathrm {GC}\% & \texttt {xz} & \text {rep} & \text {6-mer JS} & \text {3-mer JS} & \text {10-mer JS} & \text {AT skew} & \text {CpG ratio} \\ \hline \text {real reads} & 34.05 & 1.7059 & 53 & 0 & 0 & 0 & -0.934 & 0.896 \\ \text {Markov order 5} & 34.04 & 2.0709 & 19 & 0.0095 & 0.0000 & 0.7994 & -0.976 & 0.895 \\ \text {Markov order 9} & 33.95 & 1.6780 & 43 & 0.0097 & 0.0000 & 0.4776 & -0.791 & 0.894 \\ \text {block shuffle } 10^{3} & 34.05 & 1.7147 & 58 & 0.0076 & 0.0000 & 0.0039 & -0.934 & 0.897 \\ \text {HMM 8, GC-tuned} & 33.96 & 1.7874 & 26 & 0.2940 & 0.1128 & 0.8923 & -12.70 & 0.382 \\ \text {HMM 2, GC-tuned} & 34.08 & 1.8565 & 25 & 0.3489 & 0.1921 & 0.9035 & -45.41 & 0.847 \\ \end {array} \]
Applying them cumulatively as acceptance criteria, with tolerances of \(2\) percentage points on GC, \(0.08\) bits on xz, \(15\) characters on the longest repeat, and the corresponding scales on the divergences:
\[ \begin {array}{lccccc} \text {constraint set} & \text {ord.\ 5} & \text {ord.\ 9} & \text {block shuf.} & \text {HMM 8} & \text {HMM 2} \\ \hline \mathrm {GC}\ \text {only} & \checkmark & \checkmark & \checkmark & \checkmark & \checkmark \\ +\ \texttt {xz} & \times & \checkmark & \checkmark & \times & \times \\ +\ \text {longest repeat} & \times & \checkmark & \checkmark & \times & \times \\ +\ \text {6-mer JS} & \times & \checkmark & \checkmark & \times & \times \\ +\ \text {3-mer, 10-mer JS} & \times & \times & \checkmark & \times & \times \\ +\ \text {AT skew, CpG ratio} & \times & \times & \checkmark & \times & \times \\ \end {array} \]
Under one constraint every candidate passes. Under four, two pass. Under eight, one. The surviving candidate is the block shuffle — which is not a generative model but the real reads cut into \(10^{3}\)-base blocks and permuted.

That it survives every test is not a discovery about it. It is composed of the reads, so it inherits every statistic computed at scales below the block length; the \(10\)-mer divergence of \(0.0039\) against \(0.79\) for the order-5 chain is the same fact stated twice.

\[ \begin {array}{ll} \text {GC across } Q\ \text {cutoffs } 0\text {--}12 & 34.05 \to 29.96\ \%\ (4.1\ \text {pp}) \\ \texttt {xz}\ \text {across the same} & 1.7059 \to 1.4780\ \text {bits/base} \\ \text {longest repeat across the same} & 53 \to 82 \\ \text {HMM after GC reparametrisation} & \text {fails} \to \text {passes, both cutoffs} \\ \text {candidates passing 1 constraint} & 5\ \text {of}\ 5 \\ \text {candidates passing 8} & 1\ \text {of}\ 5,\ \text {and it is the data itself} \\ \end {array} \]

The constraints that excluded three model families in §639.17 are statistics of the retained reads. Each moves with the quality cutoff; one of the exclusions is removed by reparametrising the excluded model without altering its mechanism; and the number of surviving candidates is set by how many statistics are declared to be constraints, which nothing in the reads determines.

What survives all eight is a permutation of the reads. A null that is constructed from the data passes every test computed on the data, and the tests therefore do not distinguish a model of the record from a rearrangement of it.

639.19 The Cutoff

The quality threshold of §639.18, the \(\sigma \) threshold §701of , the term count \(L\) of §700.1, the context order \(K\) discussed earlier and the cluster count \(k\) of an earlier section are the same object. This subsection names it.

639.19.1 The pattern

In each case a model is fitted to a record, the model has a capacity parameter, the fit improves monotonically with that parameter, and the value used is fixed from outside the data:

\[ \begin {array}{llll} \text {section} & \text {parameter} & \text {effect of increasing it} & \text {fixed by} \\ \hline \S 639.9 & \text {detection } \sigma & \text {events } 22\,206 \to 0 & \text {convention} \\ \S 639.9 & \text {segmentation} & \text {bases } 7 \to 12\,104 & \text {base-caller default} \\ \S 700.1 & \text {term count } L & \text {residual } 157 \to 0.01\ \text {ppm} & \text {spectroscopic analysis} \\ an earlier section & \text {context } K & \text {separation } +1.73 \to -0.91 & \text {analyst} \\ \S 639.17 & \text {Markov order} & g:\ +0.43 \to -0.28 & \text {analyst} \\ an earlier section & \text {clusters } k & \text {purity } 0.94 \to 0.73 & \text {taxonomy} \\ \S 639.18 & Q\ \text {cutoff} & \mathrm {GC}\ 34.1 \to 30.0\% & \text {pipeline default} \\ \end {array} \]
None of these is an error. Each is required: without a threshold there is no count, without a term count no level system, without a cluster count no taxonomy. What is absent in every case is a criterion in the data selecting the value.
639.19.2 The same structure in effective field theory

Physics states this explicitly. An effective field theory is defined only relative to a cutoff \(\Lambda \) separating the degrees of freedom retained from those integrated out. The Lagrangian is an expansion

\[ \mathcal {L}_{\rm eff} = \sum _{i} \frac {c_i(\Lambda )}{\Lambda ^{d_i - 4}}\,\mathcal {O}_i , \]
in which the coefficients depend on \(\Lambda \) in such a way that observables below the cutoff do not. The independence is the content of the renormalisation group: \(\Lambda \) is not measurable, and the theory is constructed so that it cannot be.

Two features carry over exactly.

The choice of \(\Lambda \) determines what counts as a degree of freedom. Above it, structure is not resolved but absorbed into the coefficients; below it, structure is explicit. This is the segmentation threshold of §701: above the jump threshold a current excursion is an event, below it, part of the baseline.

And the number of operators retained is set by the accuracy sought, not by the data. Truncating at order \(n\) in \(1/\Lambda \) leaves a residual of order \((E/\Lambda )^{n+1}\); increasing \(n\) improves the fit and adds parameters. This is the term count \(L\), the Markov order, and the cluster number \(k\).

639.19.3 Where the analogy is exact and where it is not

It is exact in the structure: a scale is chosen, everything above it is summarised into parameters, and the parameters are fitted to what remains.

It is not exact in one respect, and the difference is the point. In an effective field theory the requirement that observables be independent of \(\Lambda \) is imposed and checked — the running of the couplings is computed, and a residual dependence on \(\Lambda \) in a physical prediction is a defect to be removed. The corresponding check is not performed for the cutoffs tabulated above. No pipeline reports the redshift as a function of the arc-line selection, the base composition as a function of the quality cutoff, or the event rate as a function of the detection threshold. Each is reported at one value.

The measurements of this work are that check, performed after the fact. Where it has been carried out, the dependence is not small: the composition moves \(4.1\) percentage points, the count moves four orders of magnitude, the sign of the homogenisation trend depends on a parameter within its declared admissible range.

639.19.4 What follows

The cutoff is not eliminable. There is no description of a record that does not first decide what in it counts as a unit, and that decision is prior to counting. The alternative to choosing a cutoff is not measuring without one; it is not measuring.

What is eliminable is the omission. A reported quantity can carry the value of the parameter at which it was computed and the derivative of the quantity with respect to that parameter. Where the derivative is small the reported value is robust; where it is large — \(\partial (\text {GC})/\partial Q \approx -0.6\) pp per unit \(Q\), \(\partial (\log \text {count})/\partial \sigma \approx -2.3\) per \(\sigma \) — the value is a coordinate, and the coordinate should be given.

The narrative that a record has a composition, a length, a count, a sequence or a spectrum is the narrative of a fixed point of a family of descriptions. The family is real and its members are computed. Which member is reported is a choice, and this work has measured how much that choice is worth.

639.20 The Unit

§639.19 treated the cutoff as a parameter of a model fitted to a record. This subsection concerns the step before the model: the point at which a continuous record becomes a countable one.

639.20.1 Counting requires a partition

A record is a function on an index set — current against time, charge against detector position, voltage against sample number. To count is to assign a finite integer to it, which requires a map

\[ \pi :\ \mathcal {R} \longrightarrow \{1,\dots ,n\} \]
partitioning the record. The integer is \(|\pi |\). Nothing in \(\mathcal {R}\) supplies \(\pi \): a function on an interval admits partitions of every finite cardinality, and the number of parts is a property of the partition.

The nanopore record of §701 is \(98\,848\) values. Under \(\pi \) defined by a \(0.5\sigma \) threshold it has \(22\,206\) parts; under \(3\sigma \), seven; under \(4\sigma \), none. Under segmentation at a jump of \(3\) codes with a minimum dwell of \(5\) samples it has \(139\) parts; at a jump of \(20\), \(7067\). The record is the same function throughout.

639.20.2 The unit is one part

Once \(\pi \) is fixed a unit exists, and every subsequent quantity is a count of parts or a ratio of counts:

\[ \begin {array}{lll} \text {record} & \text {partition} & \text {unit} \\ \hline \text {ionic current} & \text {dwell segmentation} & \text {one }k\text {-mer occupancy} \\ \text {ADC series} & \text {threshold crossing} & \text {one event} \\ \text {CCD charge} & \text {pixel boundaries} & \text {one pixel} \\ \text {interference pattern} & \text {fringe counting} & \text {one fringe} \\ \text {spectrum} & \text {line identification} & \text {one transition} \\ \text {caesium oscillation} & 9\,192\,631\,770\ \text {cycles} & \text {one second} \\ {}^{86}\mathrm {Kr}\ \text {radiation} & 1\,650\,763.73\ \text {wavelengths} & \text {one metre (1960--83)} \\ \end {array} \]
The last two rows are the SI definitions of §701.5. They have the form of the first five: a continuous phenomenon, a stipulated number of parts, a unit that is one part. The difference is that the stipulation is published as a definition rather than left in a configuration file.
639.20.3 The family of partitions is not ordered

It is natural to suppose that partitions form a lattice — that lowering a threshold refines, that refinement preserves parts, and that the family is therefore ordered even if no member is canonical. On the record examined here that supposition fails at both points.

Detection has two parameters, not one. Varying the amplitude threshold and the minimum separation together:

\[ \begin {array}{rrrrrrrr} \text {threshold} & d{=}1 & d{=}2 & d{=}5 & d{=}10 & d{=}20 & d{=}50 & d{=}100 \\ \hline 0.5\sigma & 22\,206 & 22\,206 & 11\,423 & 6414 & 3449 & 1418 & 715 \\ 1.0\sigma & 11\,703 & 11\,703 & 6459 & 4096 & 2514 & 1212 & 642 \\ 1.5\sigma & 4874 & 4874 & 2850 & 1966 & 1496 & 954 & 570 \\ 2.0\sigma & 1225 & 1225 & 772 & 614 & 534 & 452 & 353 \\ 3.0\sigma & 7 & 7 & 4 & 2 & 1 & 1 & 1 \\ \end {array} \]
The count is monotone along each axis separately and the level sets cross: \(715\) events at \((0.5\sigma , d{=}100)\) and \(772\) at \((2.0\sigma , d{=}5)\). There is no ordering of the pairs induced by the count. “Raising the threshold” names motion along one axis of a two-dimensional family.

Replacing the amplitude criterion by topographic prominence, which is the other standard peak definition, gives a different sequence entirely:

\[ \begin {array}{rrr} \text {level} & \text {by height} & \text {by prominence} \\ \hline 0.5 & 22\,206 & 6171 \\ 1.0 & 11\,703 & 2731 \\ 1.5 & 4874 & 1330 \\ 2.0 & 1225 & 478 \\ 3.0 & 7 & 1 \\ \end {array} \]
A factor of three to four at every level, from two definitions of the same word.

And refinement destroys parts. Lowering the jump threshold in segmentation should only add boundaries, since the boundary set is \(\{i : |\Delta _i| > \tau \}\) and this grows as \(\tau \) falls. With a minimum dwell in force it does not:

\[ \begin {array}{rrrl} \text {jump} & \text {min dwell} & \text {segments} & \text {contains previous boundaries} \\ \hline 20 & 5 & 7067 & - \\ 12 & 5 & 4618 & \text {no; } 4732\ \text {lost} \\ 8 & 5 & 2203 & \text {no; } 3141\ \text {lost} \\ 5 & 5 & 691 & \text {no; } 1705\ \text {lost} \\ 3 & 5 & 139 & \text {no; } 574\ \text {lost} \\ \end {array} \]
Adding boundaries shortens the segments between them, and segments below the minimum dwell are discarded together with their boundaries. The family is not a refinement order; it is not a partial order at all.
639.20.4 Invariance is invariance under a specified group

The second consolation — that some statistics are constant over a range of \(\pi \) — requires the same scrutiny.

§639.18 reported the GC fraction as unchanged at \(34.05\%\) for quality cutoffs \(0\) through \(9\). That measurement took the first \(4\times 10^{5}\) bases of the retained reads. Taking all retained bases instead:

\[ \begin {array}{rrrr} Q\ \text {cutoff} & \text {reads} & \mathrm {GC}\ \text {(first } 400\text {k)} & \mathrm {GC}\ \text {(all kept)} \\ \hline 0 & 1057 & 34.05 & 36.37 \\ 7 & 1056 & 34.05 & 36.37 \\ 8 & 1031 & 34.05 & 36.30 \\ 9 & 778 & 34.05 & 35.02 \\ 10 & 519 & 33.68 & 33.73 \\ 11 & 256 & 31.83 & 31.86 \\ 12 & 67 & 29.96 & 29.96 \\ \end {array} \]
The invariance was an artefact of the truncation. Reads are stored in file order, not quality order, so the first \(4\times 10^{5}\) bases survive every cutoff up to the point where the leading reads themselves are removed. The plateau was a property of where the data were cut, not of the cutoff.

The same applies to the compression residual. §639.17 reported \(g\) as stable at \(0.365 \pm 0.002\) under bijections. Those bijections were relabellings of \(\Sigma \). Other bijections of the string exist:

\[ \begin {array}{lrrr} \text {bijection} & \text {real} & \text {null} & g \\ \hline \text {identity} & 1.7059 & 2.0721 & +0.366 \\ \text {complement} & 1.7065 & 2.0713 & +0.365 \\ \text {block permutation, } 10^{3} & 1.7173 & 2.0699 & +0.353 \\ \text {block permutation, } 10^{2} & 1.7781 & 2.0755 & +0.297 \\ \text {sort 3-mers} & 0.0102 & 0.0103 & +0.0001 \\ \text {interleave halves} & 2.1116 & 2.1103 & -0.0013 \\ \end {array} \]
Sorting the \(3\)-mers is a bijection on the multiset of \(3\)-mers and it takes both strings to \(0.01\) bits per base, annihilating \(g\). Interleaving the two halves is a bijection on positions and it reverses the sign.

The statement “\(g\) is invariant under bijections” is false as written. What holds is that \(g\) is invariant under the group generated by permutations of \(\Sigma \), which has order \(24\), and is not invariant under the symmetric group on positions, which has order \((4\times 10^{5})!\). The first is a subgroup of measure zero in the second.

639.20.5 The group is also a choice

An invariance claim has the form: \(F\) is constant on the orbits of \(G\) acting on \(\mathcal {R}\). Both \(F\) and \(G\) are supplied by the analyst.

Fixing \(G\) as the relabellings of \(\Sigma \) makes \(g\) invariant. Fixing \(G\) as block permutations at scale \(10^{3}\) leaves \(g\) nearly invariant and destroys nothing else — which is why the block shuffle passed all eight constraints in §639.18. Fixing \(G\) as position permutations makes almost nothing invariant except the composition. Each choice defines a different set of quantities as physical, and the record does not select among them.

This is the same structure as the earlier cases and not a different one. A partition is a choice of what counts as one thing; a group is a choice of what counts as the same thing; a null is a choice of what counts as no structure. Each is prior to the measurement and none is recoverable from it.

\[ \boxed { \begin {aligned} &\text {a record is a function; a count requires a partition } \pi \\ &\text {one nanopore record: } 7,\ 139,\ 409,\ 7067,\ 22\,206,\ 98\,848 \\ &\text {the family of } \pi \text { is two-dimensional and level sets cross} \\ &\text {refinement discards parts: } 4732\ \text {boundaries lost at one step} \\ &\text {peak by height vs by prominence: factor } 3\text {--}4 \\ &\text {the GC plateau was truncation, not invariance} \\ &g\ \text {invariant under } S_4\ \text {on } \Sigma ,\ \text {not under } S_n\ \text {on positions} \\ \end {aligned}} \]

To read a record is to impose a partition, a group and a null upon it, and to report a number computed after all three. The number is a fact about the quadruple. Three of its members are supplied by the reader, and the earlier claim in this work that the family of partitions is at least ordered, and that some statistics are at least invariant, does not survive the measurements above.