The previous subsection took the read — a string over \(\{\mathrm {A},\mathrm {C},\mathrm {G},\mathrm {T}\}\) — as its starting point. This one goes below it. The data are nanopore raw current from the ONT open data release: \(8{,}000\) reads, \(11\)-bit ADC at \(2{,}048\) levels, \(4\) kHz sampling.
What the instrument records is an ADC code. Picoamperes are produced from it by
Across \(300\) reads there are \(58\) distinct \((\texttt {offset}, \texttt {range})\) pairs: range is constant at \(748.58\) and offset varies from \(-241\) to \(-260\). The current in picoamperes is therefore the integer code shifted by a per-channel table entry.
A base call requires a segmentation of the current into intervals. Eight procedures applied to the same \(120\) reads:
The count per read spans \(3{,}536\) to \(217{,}216\), a factor of \(61\). Nothing in the current selects one of these. The nucleotide sequence obtained downstream has a different length under each.
Given events, an alphabet of size \(K\) requires \(K-1\) boundaries. Four rules, each standard:
Quantile cutting attains \(H/\log _2 K = 1\) exactly, which is a property of the rule rather than of the signal: it is defined to equalise the classes. Uniform width leaves a class holding \(2.3\%\) of events at \(K=8\). The reconstruction error orders the rules differently again, with \(k\)-means lowest.
At \(K=4\) no rule is best on all three criteria at once.
Varying \(K\) under quantile cutting, over \(8.5\) million events:
Entropy rises monotonically as \(\log _2 K\); reconstruction error falls monotonically from \(0.571\) to \(0.059\). Neither has a stationary point, an elbow, or any other feature at \(K=4\). The distinct \(6\)-mer count rises by four orders of magnitude and saturates only above \(K=32\), where it approaches the number of positions available.
The signal does not select four. Four is the number of nucleotide species in the chemical model.
Reads were quantised at each \(K\) and aligned to a reference built from other reads quantised the same way:
Alignment succeeds at every \(K\), and the edit distance falls monotonically as \(K\) decreases — because with fewer symbols the chance agreement rate is \(1/K\). A binary alphabet gives the best fit of all. Goodness of alignment is therefore not a criterion by which an alphabet can be chosen; it rewards coarseness.
Holding \(K=4\) and replacing the reference:
A reference of independent uniform symbols admits every read at \(\mathrm {ED}/\mathrm {len} = 0.4532\), against \(0.4009\) for the real one. The gap between them, \(0.05\), is the whole of what the real reference contributes. Block-shuffling it in \(500\)-symbol units costs \(0.005\).
That reads align to a reference is not evidence about the reference. The quantity that carries information is the difference between the real reference and a random one, and that difference is \(12\%\) of the total.
Cross-aligning reads and references quantised under different rules at \(K=4\):
Two rows have their minimum on the diagonal and two do not: quantile-cut reads fit the quantile reference best, but \(k\)-means-cut reads fit the sd-spaced reference marginally better than their own, and the whole matrix spans only \(0.369\)–\(0.468\).
The matching of rule to rule is therefore weak — which is the stronger result. Where alphabet size produced a clear diagonal, the placement of the boundaries does not: the alignment cannot tell which cut rule produced the reads. A quantity that is invisible to the alignment is nonetheless fixed before the alignment is performed, and fixes what the reported sequence is.
Repeating the \(K=4\) alignment on events segmented from the ADC integers directly, without converting to picoamperes:
The per-channel calibration — two constants per channel, \(58\) distinct pairs across \(300\) reads — changes the alignment by \(0.0006\). It is applied to every read before base calling and is invisible in the result at this level.
Below the read there is a current, and below the current an integer. The four letters are imposed at a step whose parameters — where the intervals begin, where the boundaries fall, how many there are — are set by convention and are not recoverable from the data they produce.
Nanopore raw current from batch0.fast5, ONT open data release gm24385_2020.11, PromethION R9.4.1 flow cell PAG07162, SQK-LSK109, GM24385 (HG002) genomic DNA: \(8{,}000\) reads, \(11\)-bit ADC at \(2{,}048\) levels, \(4\) kHz, per-channel offset and range stored in the file. Signal read with h5py and the VBZ plugin; segmentation, quantisation and semi-global alignment implemented in CuPy on an NVIDIA GPU, \(400\) reads and \(8.5\) million events analysed.
The four standard cut rules of the previous table place their boundaries in similar positions and are correspondingly hard to tell apart. Separating them — quantile, uniform width, and four rules displaced toward low or high current or compressed and expanded about the mean — gives boundaries and class occupancies that genuinely differ:
Cross-aligning reads and references quantised under each:
Five of six rows attain their minimum on the diagonal; the diagonal spans \(0.279\)–\(0.402\) and the off-diagonal \(0.317\)–\(0.694\). The exception is the uniform-width row, whose minimum falls on the wide reference — the two rules whose boundaries are closest, \(58.6/77.9/97.2\) against \(51.3/74.4/97.5\).
Reads therefore align best to a reference cut the same way they were. What "the sequence aligns to the reference" reports is that the two were produced under the same convention.
Holding the cut rule at quantile and replacing the reference by surrogates that retain progressively more of its sequential structure:
Three things separate here.
A surrogate matching only the symbol frequencies already admits every read at \(0.4696\), against \(0.4009\) for the real reference. The entire advantage of the real reference over a memoryless random string is \(0.069\), or \(15\%\) of the edit distance.
Raising the Markov order from \(0\) to \(5\) recovers \(0.015\) of that \(0.069\) and then stops: orders \(1\), \(2\), \(3\) and \(5\) lie within \(0.002\) of one another. The local sequential statistics of the reference contribute almost nothing beyond the base composition.
Reversing the real reference costs \(0.005\). The reference read backwards is almost as good a reference as the reference.
What remains — the \(0.054\) that no surrogate reproduces — is the fact that the reference was built from reads of the same molecule. Including the reads themselves in the reference drops the distance to \(0.374\) with \(\min \mathrm {ED} = 0\), which is the self-match and not a measurement.
The alignment recovers the convention under which the reads were encoded and recovers almost nothing else. It cannot select the alphabet size, since it prefers the smallest; it distinguishes cut rules only because reads and reference were cut identically; and it accepts a reference of independent symbols at \(85\%\) of the quality of the real one.
The preceding subsections varied parameters within one mathematical treatment: the current is discretised into symbols, and two sequences are compared by edit distance. That treatment is not given by the signal. It is the mathematical counterpart of the chemical model — a discrete alphabet because there are four nucleotide species, an edit distance because insertion and deletion are the errors that model predicts.
Ten treatments were applied to the same \(4.3\) million events from the same \(200\) reads. Each takes the current as a different kind of object and measures proximity by a different metric.
Distances in different metrics are not comparable. They become comparable against a null: for each treatment, the query is matched both to the real reference and to thirty references obtained by permuting it, which destroys sequential order while preserving the value distribution exactly. Two scale-free statistics follow:
The standard treatment — four symbols and edit distance — ranks last of the ten. Four treatments separate the real reference from its permutation without error; the standard treatment fails to do so in \(9.7\%\) of comparisons.
Among the four perfect separators, three discard information the discretisation keeps. The derivative discards the absolute current level entirely and still attains \(\mathrm {AUC} = 1.000\) at \(z = 26.1\). The log-scaled series replaces addition by multiplication as the operation under which differences are measured and attains \(z = 29.4\). The complex representation \(x + i\dot x\), in which the algebra of the object is \(\mathbb {C}\) rather than a four-element set, gives \(z = 35.3\).
Two entries fix what the permutation null does and does not remove.
The value-distribution treatment compares only the quantile function, discarding sequential order completely. Since the permutation preserves the distribution of the whole reference exactly, a perfect match would be expected; instead the real reference wins in \(93.3\%\) of comparisons at \(z = 48.0\), the largest \(z\) of the ten. The explanation is local: a \(600\)-event window of the real reference has a distribution resembling the query’s, because adjacent events come from adjacent regions of one molecule, whereas a window of the permuted reference has the global distribution. What is detected is that the reference is locally inhomogeneous, not that it is the right sequence.
The rank sequence retains order and discards values, and attains \(\mathrm {AUC} = 0.994\) at \(z = 5.49\) — the second-smallest \(z\). Order alone is nearly sufficient and barely exceeds the null.
The two together bracket the standard treatment, which keeps a coarsened version of both and ranks below each.
The four-letter alphabet and the edit distance are the mathematical form of the hypothesis that DNA is a linear polymer of four monomers read with insertions and deletions. That hypothesis is not confirmed by the data processed under it; the processing presupposes it. Nine other mathematics extract more from the same current, and none of them yields a genome.
The four-letter encoding is defended on practical grounds: sequences must be stored, indexed, searched against databases, aligned, and reported, and all of that machinery takes strings. The defence is testable. Each of those operations was reimplemented on the real-valued event series, with no symbols at any stage, and compared against the standard treatment on the same \(300\) reads and \(6{,}341{,}806\) events.
Sixty queries of \(600\) events were cut from a \(40{,}000\)-event reference and perturbed with Gaussian noise at \(0.30\sigma \), so that the correct placement of each is known by construction.
Both place every query exactly, and agree with each other on every query. The real-valued method is faster by a factor of \(1.7\) and requires no discretisation step.
Three perturbations of width five events were inserted into each query and recovered by residual from the aligned reference, or by symbol mismatch after edit-distance alignment:
At an amplitude of \(3.5\sigma \) the real-valued residual recovers all \(180\) planted changes with no false positives. The symbol method recovers \(154\) and emits \(1{,}853\) false positives — a precision of \(0.077\), because the quantisation noise of the query against the reference produces symbol mismatches wherever an event lies near a cut boundary.
Sweeping the amplitude:
The real-valued residual saturates at \(1.000\) from \(1.5\sigma \) upward. The symbolic recall is flat near \(0.86\) across the whole range and does not improve with amplitude, because a change that moves an event within its quantisation bin produces no mismatch regardless of how large it is. At \(0.5\sigma \) the symbolic method scores higher, but at a precision of \(0.077\) that figure is an artefact of emitting an order of magnitude more calls than there are changes.
A three-bit signal representation costs \(1.71\) MB against \(1.49\) MB for the two-bit alphabet, a \(15\%\) overhead, and carries eight levels rather than four. Storage does not select the alphabet; it prices the number of levels, and the price is linear.
Locality-sensitive hashing of \(64\)-event windows onto \(16\)-bit signatures retrieves the originating read for every probe, using \(0.7\) MB against \(17.7\) MB and building in a ninth of the time. The \(12\)-mer dictionary retrieves the correct read in a quarter of probes, because at \(4^{12}\) possible keys most \(12\)-mers occur once and carry no grouping.
A variant record in the standard format is
chr17 41197274 . C A . PASS AF=0.51;DP=44
and the same event in the real-valued representation is
ref=R7f3a offset=35157 width=6 delta=[+35.4,+44.0,+30.3,+55.9,+36.7,+21.1] pA/event residual_z=3.0 support=12/44
Both carry a reference identifier, an offset, a magnitude, and a support count. The first writes the magnitude as a pair of symbols; the second writes it as a vector of reals. Nothing in transmission, storage, or lookup distinguishes them: both are byte strings with a coordinate.
The alphabet wins on one line, storage, by \(15\%\). It loses on indexing by a factor of \(25\) in size and \(4\) in retrieval, and on change detection by a factor of \(13\) in precision. The practical argument for the four-letter encoding is not supported by the practice.