578 Unbuilding a Nanopore Read

A nanopore read is delivered as a string of letters with a quality value attached to each. What the instrument records is an integer sampled from an analogue-to-digital converter while an ionic current passes through a pore. This subsection starts from that integer and removes, one layer at a time, every step that turns it into a sequence. Each layer is perturbed on the same data, and what changes is reported.

All measurements use one public run, recorded with kit sqk-rna004 on flow cell FLO-PRO004RA. The pod5 file PBE52540_skip_6ae95bff_c6284b71_0.pod5 contains \(733\) reads from \(500\) channels. Retraining uses twelve further pod5 files from the same release (\(18{,}444\) reads).

578.0.1 The current, with no letters

[0] The unit. The stored value is an ADC integer. The conversion to picoamperes is

\[ I\,[\mathrm {pA}] = (\mathrm {ADC} + o_c)\,s_c , \]
with an offset \(o_c\) and a scale \(s_c\) declared for each channel \(c\) in the file’s calibration record. In this run the scale is the same constant for every channel, \(s_c = 0.146207\) pA per ADC unit, and the offset ranges from \(-301\) to \(-220\). The median stored integer, \(792\), therefore becomes
\[ 71.79 \;\text {--}\; 83.63~\mathrm {pA} \]
depending on the channel: a spread of \(11.84\) pA (coefficient of variation \(0.029\)) for one recorded number. The current is not measured in amperes. It is measured in integers, and the ampere is attached per channel by a table.

[1] One molecule. Where a read begins and ends is decided by the device, and the reason is recorded:

end_reason reads fraction
signal_positive 638 0.870
unblock_mux_change 94 0.128
signal_negative 1 0.001

One read in eight ends because the device reversed the voltage or switched pores, not because a molecule finished. The length of a read is measured in seconds; the median is \(8.62\) s at \(4000\) Hz. Converting seconds to bases requires a translocation speed, and the speed is declared per chemistry:

declared speed median length (“bases”)
RNA002, \(70\) b/s \(603\)
RNA004, \(130\) b/s \(1121\)
DNA, \(400\) b/s \(3448\)
DNA, \(450\) b/s \(3879\)

The same molecule has a length that varies by a factor of \(6.4\) with a constant taken from the kit documentation.

[2] The unit event. Before there is a letter there is an event: a stretch of current treated as one level. Events were located by a two-window change-point test with window \(w\) and threshold \(\theta \) on \(200\) reads normalised by median and MAD. Events per thousand samples:

\(w \,/\, \theta \) 1 2 3 4 6
3 227.4 152.6 89.1 53.1 21.1
5 135.4 87.1 47.4 27.0 11.5
8 85.0 56.8 33.0 20.5 10.8
12 57.4 41.0 26.2 18.1 11.1
20 35.2 27.6 20.1 15.6 11.0

The count ranges from \(10.8\) to \(227.4\), a factor of \(21.1\). How many things happened in a second of current is set by two parameters, and no value of them is privileged by the signal.

[3] Kinds. Without letters, reads can still be grouped. Each of \(582\) reads was reduced to the transition histogram of its signal quantised into \(Q\) levels, and the reads were clustered by cosine distance with cut-off \(d\). Number of resulting “kinds of molecule”:

\(Q \,/\, d\) 0.05 0.1 0.2 0.3 0.4
2 4 3 1 1 1
3 19 7 3 1 1
4 32 11 5 3 2
5 53 22 8 3 2
6 82 35 11 4 4
8 123 62 16 9 5
10 146 84 24 10 6
12 173 106 37 14 9
16 231 138 59 24 13

The same \(582\) reads contain between \(1\) and \(231\) kinds. The row \(Q=4\) — four levels, the number of canonical bases — is not distinguished: it gives \(32\), \(11\), \(5\), \(3\) or \(2\) kinds according to \(d\), and sits between its neighbours like every other row.

[4] Same as what. Which reads count as the same depends on how the current is represented before it is compared. With \(Q=8\) and \(d=0.2\) fixed, the groupings were computed under four normalisations and five downsampling factors, and compared by adjusted Rand index with the median/MAD grouping at downsampling \(10\):

representation ds \(=1\) ds \(=2\) ds \(=5\) ds \(=10\) ds \(=20\)
median/MAD 0.753 0.830 0.849 1.000 0.855
mean/SD 0.395 0.500 0.445 0.442 0.417
pA 0.117 0.126 0.109 0.100 0.077
raw ADC 0.091 0.102 0.106 0.101 0.089

The number of groups moves with it, from \(9\) (median/MAD, ds \(=1\)) to \(33\) (raw ADC, ds \(=5\) and ds \(=20\)). Expressed in picoamperes or in raw integers, the reads fall into groups that agree with the normalised grouping at an ARI of \(0.08\)–\(0.13\). Which molecules are “the same” is mostly decided by the choice of representation.

[5] Amount. The share of reads in the largest group is what an expression estimate reports. Across all \(65\) configurations of [3] and [4] it ranges from \(0.108\) (\(Q=16\), \(d=0.05\)) to \(1.000\) (\(Q=2\), \(d=0.4\)), a factor of \(9.2\). At one end the most abundant kind is a tenth of the sample; at the other it is all of it.

578.0.2 The letters

[B1] Same current, different models. The same \(733\) reads were basecalled by six released RNA004 models:

model reads median length mean \(Q\) A C G T
fast v5.0.0 725 528 13.4 0.272 0.235 0.249 0.244
fast v5.2.0 742 680 16.1 0.339 0.197 0.258 0.206
hac v5.0.0 729 565 16.6 0.276 0.234 0.243 0.247
hac v5.2.0 741 686 19.7 0.333 0.196 0.259 0.213
sup v5.0.0 736 626 22.0 0.308 0.221 0.237 0.234
sup v5.2.0 740 716 25.2 0.353 0.185 0.262 0.199

The kit is sold for RNA; the fourth letter in every output file is T.

Of the \(720\) reads returned by all six models, the number given the identical string by all six is

\[ 0 . \]
Pairwise median per-read similarity ranges from \(0.851\) (fast v5.0.0 against sup v5.2.0) to \(0.935\). The composition of the sample moves with the model: the fraction of A rises from \(0.272\) to \(0.353\), and C falls from \(0.235\) to \(0.185\). The number of reads that “pass” a quality cut also depends on the model as much as on the cut:

model \(Q\ge 7\) \(Q\ge 9\) \(Q\ge 10\) \(Q\ge 12\)
fast v5.0.0 483 466 462 453
fast v5.2.0 659 626 619 597
hac v5.0.0 485 481 473 465
hac v5.2.0 670 646 637 622
sup v5.0.0 508 479 474 470
sup v5.2.0 667 657 652 643

At \(Q\ge 7\) the usable sample is \(483\) or \(670\) reads from one file, according to which model was loaded.

[B2] Trimming. Running the hac v5.2.0 model with trimming disabled removes no letters from any of \(741\) reads. In this RNA004 run the boundaries of a read are not adjusted by trimming; they were fixed upstream, by the device’s end_reason of [1].

[B3] Nonsense in, letters out. The raw signal of every read was replaced, and the result basecalled with the same hac v5.2.0 model:

signal reads median length mean \(Q\) sim. A C G T
original 741 686 19.7 1.000 0.333 0.196 0.259 0.213
reversed 741 593 9.6 0.477 0.436 0.203 0.186 0.175
sample-shuffled 764 576 12.2 0.412 0.426 0.000 0.453 0.120
block-shuffled 757 965 8.6 0.471 0.324 0.227 0.231 0.218
Gaussian 739 599 13.0 0.408 0.530 0.000 0.401 0.069
inverted 737 477 12.3 0.431 0.547 0.084 0.295 0.073
constant 733 478 14.8 0.379 0.151 0.000 0.591 0.258

A signal held at a single constant value for its whole length yields \(733\) reads with a median length of \(478\) letters and a mean quality of \(14.8\) — above every quality threshold in [B1]. Shuffling the samples of every read produces more reads (\(764\)) than the original (\(741\)). Similarity to the original call falls to \(0.38\)–\(0.48\), close to the \(0.44\) that unrelated label strings reach in the training experiment below: the output is unrelated to the molecule and still arrives as letters with quality values. The letters and their qualities are what the model emits, whatever it is given.

[B4] How many letters. Loading the sup v5.2.0 model together with two modification models, 2OmeG and m6A_DRACH, enlarges the alphabet from four letters to six. Whether a given position carries the fifth or sixth letter is then a probability compared to a cut:

\(p\ge 0.5\) \(0.6\) \(0.7\) \(0.8\) \(0.9\) \(0.95\) \(0.99\)
G modified (2\('\)-O-methyl) 0.0179 0.0120 0.0086 0.0058 0.0035 0.0017 0.0005
A modified (m6A) 0.0026 0.0024 0.0023 0.0022 0.0021 0.0020 0.0017

The reported 2\('\)-O-methylguanosine fraction changes by a factor of \(36\) between the lowest and highest cut. The size of the alphabet is set by which model files are loaded, and the frequency of each extra letter by a threshold.

578.0.3 Retraining: the alphabet is chosen

The basecaller is a network trained to emit letters, and it can be trained to emit any. A small CTC basecaller (two convolutional layers, a three-layer bidirectional GRU) was trained from scratch on the twelve training files. Of \(18{,}444\) signals, \(18{,}101\) carried letters and move tables; \(491\) split reads were skipped. The signals were cut into \(197{,}674\) chunks of \(4000\) samples, of which \(176{,}382\) were used for training and \(3000\), from reads never seen in training, for evaluation. Each run used \(3000\) steps. Accuracy is the median normalised edit similarity between output and label on held-out chunks, reported against the similarity of randomly paired labels (chance) and as the excess over chance, \((s - c)/(1 - c)\).

Orientation. The same labels were attached to the current in both directions and trained briefly (\(500\) steps). With the labels reversed relative to the signal, the network emits nothing at all on held-out data: similarity \(0.000\). With the other orientation it emits letters (similarity \(0.451\) at \(500\) steps). Even the direction in which the current is to be read is supplied by the labels.

[T1] Named alphabets. Labels taken from the sup v5.2.0 calls and renamed:

labels \(K\) held-out chance excess
canonical ACGU 4 0.785 0.442 \(+0.614\)
permuted (A\(\to \)C, C\(\to \)G, G\(\to \)U, U\(\to \)A) 4 0.767 0.442 \(+0.583\)
binary R/Y 2 0.810 0.634 \(+0.480\)
base pairs as 16 letters 16 0.412 0.177 \(+0.285\)
shuffled ACGU (control) 4 0.000 0.442 \(-0.792\)

The permuted alphabet is learned as well as the canonical one (\(+0.583\) against \(+0.614\)): a network that writes C wherever the reference says A is as good a basecaller as one that writes A. Two letters and sixteen are learned too. With the labels shuffled between chunks the network emits nothing at all: the held-out output is the empty string.

Hangul alphabet — , , , for A, C, G, U — was not trained separately, because the label tensors are identical to the canonical ones. The output layer receives the indices \(1,\dots ,4\); the glyph attached to an index never reaches the network.

[T2] Any number of letters. For alphabets of size \(K \ne 4\), each position was labelled by its five-base context, and the \(3125\) possible contexts were assigned to \(K\) symbols in order of frequency, so that every symbol is used. The symbols were drawn from Latin, Greek, Hangul and CJK characters.

\(K\) held-out chance excess \(K\) held-out chance excess
2 0.000 0.658 \(-1.925\) 23 0.371 0.149 \(+0.261\)
3 0.000 0.537 \(-1.161\) 27 0.492 0.133 \(+0.414\)
5 0.000 0.402 \(-0.672\) 31 0.495 0.120 \(+0.426\)
6 0.000 0.359 \(-0.560\) 37 0.451 0.106 \(+0.386\)
7 0.060 0.324 \(-0.391\) 48 0.504 0.090 \(+0.455\)
9 0.212 0.278 \(-0.091\) 64 0.508 0.074 \(+0.469\)
11 0.245 0.245 \(+0.000\) 100 0.490 0.055 \(+0.461\)
13 0.407 0.218 \(+0.242\) 128 0.496 0.046 \(+0.471\)
15 0.373 0.198 \(+0.218\) 200 0.504 0.034 \(+0.486\)
17 0.398 0.183 \(+0.264\) 256 0.521 0.029 \(+0.507\)
19 0.446 0.168 \(+0.334\) 17, shuffled 0.000 0.183 \(-0.224\)
21 0.435 0.157 \(+0.329\)

From \(K=13\) to \(K=256\) every alphabet is learned, with excess over chance rising from \(+0.218\) to \(+0.507\); the output strings are drawn from Latin, Greek, Hangul and CJK symbols as the labels were. Below \(K=13\) the arbitrary alphabets are not learned: for \(K \le 9\) held-out similarity is at or below chance and the output collapses to one or two symbols, and at \(K=11\) it is exactly at chance.

The failure is not a matter of the number of letters. The binary R/Y alphabet of [T1] also has \(K=2\) and is learned at \(+0.480\). What differs is the partition. Assigning contexts to symbols by frequency rank modulo \(K\) ignores how their currents look, so at small \(K\) each symbol collects hundreds of contexts whose currents have nothing in common; at large \(K\) a symbol is close to a single context. Within this network and this training budget, a partition that cuts across the current is not learned and one that follows it is, whatever its size.

[T3] No basecaller, no reference. The labels of [T1] and [T2] still descend from a model trained against reference sequences. In the last experiment they were removed. Each chunk was segmented into events (\(w=6\), \(\theta =3\)), the event means were quantised into \(K\) levels at quantiles of the pooled training distribution, and the resulting symbol strings were used as labels. No basecaller and no reference sequence enters at any point.

\(K\) held-out chance excess
2 0.920 0.613 \(+0.793\)
3 0.908 0.483 \(+0.823\)
5 0.878 0.356 \(+0.811\)
7 0.855 0.290 \(+0.795\)
11 0.834 0.217 \(+0.788\)
17 0.784 0.163 \(+0.741\)
21 0.753 0.142 \(+0.712\)
32 0.694 0.108 \(+0.657\)
64 0.619 0.067 \(+0.592\)
17, shuffled 0.000 0.163 \(-0.195\)

The chunks contain a median of \(173\) events. Every alphabet from two letters to sixty-four is learned, with excess over chance between \(+0.592\) and \(+0.823\), falling slowly as \(K\) grows; the shuffled control at \(K=17\) again yields the empty string. These labels are a deterministic function of the current, so that they are learnable is expected. What the experiment shows is that a basecaller with a working alphabet of any size can be built with nothing but the current: no reference sequence, no prior basecaller, and no letters A, C, G or U anywhere in the procedure.

578.0.4 Which molecule?

The run above is filed as RNA. A second run from the same release, prepared from the same Universal Human Reference RNA, is filed as cDNA. The two labels come from the file metadata, and every recorded difference between the runs is a difference of apparatus:

run 1 run 2
filed as dRNA cDNA
kit sqk-rna004 sqk-pcb114-24
flow cell FLO-PRO004RA FLO-PRO114M
sample rate \(4000\) Hz \(5000\) Hz
median current \(77.3\) pA \(105.9\) pA
events per second \(158\) \(360\)
median dwell \(4.25\) ms \(2.20\) ms

\(565\) reads from each run were pooled and the labels withheld. Under six representations, each removing more of the apparatus, two questions were asked. Told the labels, can a linear classifier separate the runs (five-fold cross-validated accuracy)? Not told, does a grouping of the current coincide with them (adjusted Rand index, for a cut into two groups and for the cut \(d=0.2\) of [3])?

representation told: accuracy not told: ARI, 2 groups ARI, \(d=0.2\) groups
raw ADC 0.845 0.047 0.049 31
pA 0.888 0.544 0.167 25
median/MAD 0.919 0.010 0.176 11
common time base 0.947 0.010 0.289 10
event means only 0.955 0.000 0.084 110
event-mean ranks only 0.913 0.011 0.515 77

Told the labels, the classifier separates the runs under every representation, at \(0.845\)–\(0.955\): the two sets of currents differ. Not told, the division of the current into two groups coincides with the labels in one representation only, picoamperes, at ARI \(0.544\) — the representation that keeps the operating current of the device. Once the absolute level is removed the agreement falls to \(0.000\)–\(0.011\). At the finer cut the groups multiply, up to \(110\), and the rank-only groups are largely pure in label (ARI \(0.515\) over \(77\) groups), but no division of the reads into two kinds appears.

Every quantity that separates the runs coincides with a quantity of the apparatus: kit, pore, sample rate, translocation speed. The source material is the same. The current cannot assign the difference to the molecule rather than to the machine, and in this analysis “RNA” and “DNA” enter as the names of kits.

pict

Figure 756: Does “RNA versus DNA” emerge from the current? \(565\) reads from a run filed as dRNA and \(565\) from a run filed as cDNA, prepared from the same source RNA. Blue: accuracy of a linear classifier told the labels. Orange: agreement (ARI) between an unlabelled two-group division of the current and the labels. Only the picoampere representation, which keeps the operating current of the device, recovers the labels without being told them.
578.0.5 What is fixed by the current

layer varied range measured
unit per-channel offset \(71.8\)–\(83.6\) pA for one integer
molecule declared speed \(603\)–\(3879\) “bases” (\(6.4\times \))
event \(w\), \(\theta \) \(10.8\)–\(227.4\) per 1000 samples (\(21\times \))
kinds \(Q\), \(d\) \(1\)–\(231\)
sameness representation ARI \(0.08\)–\(1.00\)
amount all of the above largest share \(0.108\)–\(1.000\) (\(9.2\times \))
letters model version \(0\) of \(720\) reads identical
quality model version \(483\)–\(670\) reads at \(Q\ge 7\)
nonsense input signal replaced constant current \(\to \) \(Q = 14.8\)
alphabet size model files, cut \(4\) or \(6\) letters; m-G fraction \(36\times \)
alphabet retraining learned at \(K=2\)–\(256\) when the partition follows the current
alphabet labels shuffled empty output
molecule representation ARI \(0.000\)–\(0.544\) with the kit label

The current constrains where it changes and which stretches resemble each other, under a representation, and through that, which ways of dividing it into symbols a network can learn. It does not constrain how many letters there are, what they are called, which direction they are read in, or how many reads are good enough to keep, or which kind of molecule passed through. Those are supplied: the sequence is the output of the supplier, and so is the word “RNA”.

pict

Figure 757: The current, before any letter. (a) Picoamperes assigned to the single ADC integer \(792\) by the calibration of each of \(500\) channels. (b) Median read length in “bases” under four declared translocation speeds; the reads are the same, measured in seconds. (c) Events per thousand samples as a function of change-point window \(w\) and threshold \(\theta \). (d) Number of read clusters (“kinds of molecule”) as a function of quantisation levels \(Q\) and distance cut-off \(d\). (e) Adjusted Rand index of the read grouping under four representations and five downsampling factors, against median/MAD at downsampling \(10\). (f) Share of the largest group across all \(65\) configurations.

pict

Figure 758: The letters are what the model emits. (a) Median per-read similarity between six released RNA004 models on the same current; no read receives the same string from all six. (b) Mean quality of letters emitted for the original signal and six replacements, including a constant current. (c) Letter composition of the same outputs. (d) Fraction of G and A called modified as a function of the probability cut, with two modification models loaded.

pict

Figure 759: One current, any alphabet. (a) Held-out similarity, chance and excess over chance for basecallers retrained to emit \(K\) symbols derived from five-base contexts. Below \(K=13\) the assignment of contexts to symbols cuts across the current and is not learned; above it, excess rises with \(K\) to \(+0.507\) at \(K=256\). (b) The same with labels made from the current alone, with no basecaller and no reference; the cross marks the shuffled control. (c) Named four-letter, two-letter and sixteen-letter alphabets and the shuffled control.
Data and code

Raw signal: Oxford Nanopore open data, release UHRR_HG002_2026.06, directory raw/dRNA/HG002/RNA004/. The evaluation file is HG002_RNA004_PolyA_2/PBE52540_skip_6ae95bff_c6284b71_0.pod5; the training set is twelve further files from HG002_RNA004_PolyA_1 and HG002_RNA004_PolyA_2. The second run of the comparison is raw/cDNA/UHRR/PCB114_24/UHRR_PCB114_24_PolyA_2/ PBG23477_e30d79ba_ee3197bd_387.pod5 (\(1332\) reads). Basecalling used dorado with the RNA004 models rna004_130bps_{fast,hac,sup}@v5.0.0 and @v5.2.0, and the modification models 2OmeG@v1 and m6A_DRACH@v1. Retraining used PyTorch 2.5.1 on one NVIDIA H100. All experiments are produced by a single script, unbuild_all.py, which writes signal_unbuild.json, basecall_unbuild.json and train_alphabet.json alongside the three figures.

Remark 578.1 (The only public floor below the letters). FASTQ is already ACGT; a chain that starts there starts after the naming. On Illumina the level below is BCL, but BCL is also already a letter: two bits of base with a quality value attached. The level below that — the per-cycle fluorescence intensities, the CIF files — is deleted by the default pipeline configuration, as confirmed earlier.

The intensities are not withheld; they are not retained. What the detector recorded is discarded as a routine step, and the earliest surviving record is a basecall.

Of the public data, the raw nanopore current (pod5) is the only floor at which no letter has yet been applied. A trace there is a time series in picoamperes. Everything called a read, a base, or a modification is applied to it afterwards, by a model trained on reference sequences.

pict

578.1 The Modification Letter Without the Molecule

Base-modification calls are usually read as properties of the sequenced molecule. Two controls separate the molecule from the call: a library that cannot carry modifications ([B4]), and, on that library, the probability threshold and the current itself ([B5]). In both, the molecule is held fixed or removed while the calling chain is varied.

578.2 [B4] Control: modification calls on a molecule that cannot carry modifications

Data. The PCR-cDNA library (raw/dna.pod5; SQK-PCB114.24), 1332–1333 reads. Amplification by PCR copies sequence but not modification, so the sequenced molecules carry no 5mC, 5hmC, 4mC, or 6mA: every modification call on them is produced by the model.

Construction. Dorado 1.3.0 basecalled the same POD5 with two base models (hac and sup at v5.2.0, R10.4.1 E8.2 400 bps) each combined with four modification models: 5mCG_5hmCG@v2 (CpG only), 5mC_5hmC@v2 (all C), 6mA@v1, and 4mC_5mC@v1. All eight combinations ran. For every site the model reports in the MM/ML tags, the probability of each modification was read directly, and sites were counted as “modified” at \(p\ge 0.5\) and \(p\ge 0.8\).

Results. Every model called modifications on the unmodifiable molecule (Table 1061). At \(p\ge 0.5\) the fraction of reported sites called modified ranged from 0.013 to 0.146, and at \(p\ge 0.8\) from 0.002 to 0.026. The largest rate was 5mC from sup with the all-context model: 40,615 calls, 0.146 of 277,874 sites, in 844 of 1333 reads. 6mA was called at 74,837 (hac) and 46,715 (sup) adenines, 0.091 and 0.087 of sites, in 1138 and 1008 reads. With the CpG model, 5mC was called at 0.055 (hac) and 0.094 (sup) of CpG sites, against the 70–80% typical of human genomic DNA; with the all-context model, CpG positions made up 0.131–0.227 of the calls. Changing only the base model, on the same molecules and the same modification model, changed the call rate by up to a factor of 2.8 (5mC, all-context: 0.052 hac vs 0.146 sup; 5hmC, all-context: 0.045 vs 0.015). Between 287 and 1138 of the reads (22–85%) carried at least one call.

Table 1061: Modification calls on PCR-cDNA, which carries no modification (Dorado 1.3.0, v5.2.0 models).










base mod model code sites mean \(p\) \(p\ge .5\) frac \(p\ge .8\) frac reads w/ call










hac 5mCG_5hmCG 5hmC 76,451 0.145 4381 0.057 824 0.011 600
hac 5mCG_5hmCG 5mC 76,451 0.132 4225 0.055 473 0.006 403
hac 5mC_5hmC 5hmC 195,463 0.126 8873 0.045 1718 0.009 827
hac 5mC_5hmC 5mC 195,463 0.150 10,259 0.052 1790 0.009 915
hac 6mA 6mA 824,221 0.261 74,837 0.091 9625 0.012 1138
hac 4mC_5mC 4mC 315,005 0.163 11,361 0.036 2005 0.006 1089
hac 4mC_5mC 5mC 315,005 0.080 5048 0.016 1167 0.004 511
sup 5mCG_5hmCG 5hmC 86,890 0.094 1965 0.023 379 0.004 414
sup 5mCG_5hmCG 5mC 86,890 0.145 8150 0.094 699 0.008 293
sup 5mC_5hmC 5hmC 277,874 0.080 4141 0.015 831 0.003 633
sup 5mC_5hmC 5mC 277,874 0.274 40,615 0.146 7116 0.026 844
sup 6mA 6mA 536,218 0.211 46,715 0.087 7329 0.014 1008
sup 4mC_5mC 4mC 262,207 0.137 5230 0.020 934 0.004 883
sup 4mC_5mC 5mC 262,207 0.082 3407 0.013 486 0.002 287










pict

Figure 760: Distribution of model probabilities of modification at reported sites on PCR-cDNA (log scale), for each base model, modification model, and modification code; dotted line, \(p=0.5\).

578.3 [B5] The modification letter without the molecule: threshold and signal

Data. The PCR-cDNA library of [B4] (raw/dna.pod5, SQK-PCB114.24, FLO-PRO114M, 5 kHz; 1332 reads), which carries no modification. The SAM files of [B4] for the threshold test; for the signal test, Dorado 1.3.0 with the [email protected] base model and the 5mC_5hmC@v2 and 6mA@v1 modification models, given by path. Altered signals were written with the pod5 Python library 0.3.23, since files written by 0.3.47 use a schema (channel as uint32) that Dorado 1.3.0 and 2.1.1 could not open.

1. Threshold. On the same molecules and the same model probabilities, moving the threshold from \(p\ge 0.95\) to \(p\ge 0.05\) moved the fraction of sites called modified from 0.0003–0.0036 to 0.444–0.984, depending on model (Table 1062; Fig. 761a). The largest range was 6mA with hac, from 0.0028 to 0.9841; 5mC with sup and the all-context model went from 0.0036 to 0.9310. The threshold, which the molecule does not supply, sets any rate within these bounds.

2. Signals that are not a molecule. Each read’s current was replaced by: itself, its time reversal, a random permutation of its own samples, Gaussian noise with the read’s mean and standard deviation, its reflection about the read median, and a 1.5-fold time stretch; each altered file was basecalled with the same models. Every altered signal was returned as reads of letters: 1330–1332 reads of mean length 2544–4281, against 3129 for the original, with mean quality 2.6–8.4 against 16.5. On the original current, modification was called at 0.038 (5mC), 0.061 (5hmC), and 0.091 (6mA) of reported sites. On Gaussian noise, 6mA was called at 0.162 of 1,344,876 adenines, in 1317 of 1332 reads, the highest 6mA rate of any condition; 5mC and 5hmC were called at 0.000–0.001 of 12,811 sites. On the permuted samples 6mA was called at 0.142 in 1304 reads. On the reflected current 5mC and 5hmC were called at 0.129 and 0.135, in 1313 and 1320 reads, and 6mA at 0.113. On the stretched current 6mA was called at 0.139, with the highest rate at \(p\ge 0.8\) of any condition (0.042). On the time-reversed current the rates were 0.070 (5mC), 0.095 (5hmC), and 0.080 (6mA) (Table 1062; Fig. 761b). Currents that correspond to no molecule were assigned letters, quality scores, and modifications at rates equal to or above those assigned to the molecule.

Table 1062: Modification calls (\(p\ge 0.5\); \(p\ge 0.8\) in parentheses) on PCR-cDNA current and on currents that are not a molecule (Dorado 1.3.0, [email protected]).
threshold \(p\ge 0.95\to p\ge 0.05\) on the [B4] calls: modified fraction 0.0003–0.0036 \(\to \) 0.444–0.984







signal reads length qscore 5mC 5hmC 6mA







original 1332 3129 16.5 0.038 (0.006) 0.061 (0.008) 0.091 (0.010)
time reversed 1332 3244 4.3 0.070 (0.011) 0.095 (0.018) 0.080 (0.007)
permuted within read 1330 3033 2.6 0.023 (0.003) 0.014 (0.001) 0.142 (0.002)
Gaussian noise 1332 3035 3.0 0.000 (0.000) 0.001 (0.000) 0.162 (0.006)
reflected about median 1332 2544 4.1 0.129 (0.030) 0.135 (0.029) 0.113 (0.018)
stretched \(\times 1.5\) 1332 4281 8.4 0.058 (0.011) 0.057 (0.012) 0.139 (0.042)














pict

Figure 761: (a) Fraction of sites called modified as a function of the probability threshold, for every base and modification model of [B4], on PCR-cDNA that carries no modification (log scale). (b) Fraction called modified at \(p\ge 0.5\) on the original current (blue) and on currents that are not a molecule (orange): time reversal, permutation within the read, Gaussian noise, reflection about the median, and 1.5-fold stretching.

578.4 Unbuilding a Second Read: the Run Filed as cDNA

Every experiment of Section 578 was repeated, with the same script and no change of parameters, on the second run of the comparison there: a run filed as cDNA, recorded with kit sqk-pcb114-24 on flow cell FLO-PRO114M at \(5000\) Hz. The evaluation file contains \(1332\) reads from \(112\) channels. Retraining uses two further pod5 files from the same directory (\(36{,}892\) reads). Basecalling uses the three released models dna_r10.4.1_e8.2_400bps_{fast,hac,sup}@v5.2.0; no modification model was available for this chemistry. Throughout, the first run is called run 1 and this one run 2.

578.4.1 The current, with no letters

[0] The unit. The scale is again one constant for every channel, \(s_c = 0.187070\) pA per ADC unit, and the offset ranges from \(-305\) to \(-230\). The stored integer \(800\) becomes

\[ 92.60 \;\text {--}\; 106.63~\mathrm {pA} \]
according to the channel: a spread of \(14.03\) pA (coefficient of variation \(0.033\)). The scale differs from run 1 (\(0.146207\)), so the same integer is a different current on the two devices before any molecule is considered.

[1] One molecule.

end_reason reads fraction
signal_positive 1232 0.925
unblock_mux_change 68 0.051
mux_change 29 0.022
signal_negative 2 0.002
analysis_config_change 1 0.001

One read in thirteen ends for a reason of the device. The median read lasts \(4.73\) s at \(5000\) Hz, and its length in “bases” is again set by a declared speed:

declared speed median length (“bases”)
\(70\) b/s \(331\)
\(130\) b/s \(615\)
\(400\) b/s \(1891\)
\(450\) b/s \(2128\)

A factor of \(6.4\), as in run 1: the ratio is that of the declared constants and does not depend on the molecule.

[2] The unit event. Events per thousand samples:

\(w \,/\, \theta \) 1 2 3 4 6
3 224.5 168.8 119.6 89.0 53.7
5 135.6 105.3 79.4 63.8 46.2
8 87.0 72.8 59.7 51.0 40.0
12 59.0 52.3 45.5 40.5 32.9
20 35.9 33.2 30.2 27.7 23.2

The count ranges from \(23.2\) to \(224.5\), a factor of \(9.7\). The lower edge sits higher than in run 1 (\(10.8\)): at strict thresholds this current changes more often, but the number of events is still set by \(w\) and \(\theta \).

[3] Kinds. \(1000\) reads, clustered as in run 1:

\(Q \,/\, d\) 0.05 0.1 0.2 0.3 0.4
2 2 1 1 1 1
3 8 4 1 1 1
4 18 8 3 1 1
5 38 15 5 2 1
6 60 19 7 3 1
8 148 41 15 8 5
10 343 78 18 9 5
12 599 132 28 13 9
16 841 412 57 20 11

Between \(1\) and \(841\) kinds. The row \(Q=4\) gives \(18\), \(8\), \(3\), \(1\) or \(1\).

[4] Same as what. ARI against the median/MAD grouping at downsampling \(10\) (\(Q=8\), \(d=0.2\)):

representation ds \(=1\) ds \(=2\) ds \(=5\) ds \(=10\) ds \(=20\)
median/MAD 0.581 0.664 0.819 1.000 0.678
mean/SD 0.163 0.186 0.536 0.484 0.470
pA 0.318 0.241 0.218 0.184 0.164
raw ADC 0.250 0.184 0.185 0.185 0.157

The number of groups ranges from \(8\) to \(24\). Picoamperes and raw integers agree with the normalised grouping at ARI \(0.157\)–\(0.318\).

[5] Amount. Across the \(65\) configurations the share of the largest group ranges from \(0.017\) (\(Q=16\), \(d=0.05\)) to \(1.000\) (\(Q=4\)–\(6\), \(d=0.4\)), a factor of \(58.8\) — six times the range of run 1. The most abundant kind is a sixtieth of the sample or all of it.

578.4.2 The letters

[B1] Same current, different models.

model reads median length mean \(Q\) A C G T
fast v5.2.0 1332 1481 15.4 0.215 0.210 0.301 0.275
hac v5.2.0 1332 1460 23.8 0.303 0.175 0.269 0.252
sup v5.2.0 1333 1473 32.2 0.310 0.145 0.276 0.269

Of the \(1331\) reads returned by all three models, the number given the identical string by all three is

\[ 0 . \]
Pairwise median similarity is \(0.866\)–\(0.959\). The fraction of A moves from \(0.215\) to \(0.310\) and C from \(0.210\) to \(0.145\) with the model. The sup model returns one read more than there are reads in the file.

model \(Q\ge 7\) \(Q\ge 9\) \(Q\ge 10\) \(Q\ge 12\)
fast v5.2.0 1185 1049 976 867
hac v5.2.0 1236 1189 1162 1097
sup v5.2.0 1238 1217 1213 1190

At \(Q\ge 12\) the usable sample is \(867\) or \(1190\) reads.

[B2] Trimming. Here trimming acts. Disabling it lengthens \(88.7\%\) of reads, by a median of \(200\) letters, \(4.8\%\) of all letters. In run 1 it changed nothing. Where the molecule begins is decided by the device in one kit and by the basecaller’s trimming step in the other.

[B3] Nonsense in, letters out.

signal reads med. length mean \(Q\) sim. A C G T
original 1332 1460 23.8 1.000 0.303 0.175 0.269 0.252
reversed 1332 1546 4.8 0.475 0.342 0.143 0.249 0.266
sample-shuffled 1331 889 2.6 0.418 0.368 0.030 0.382 0.220
block-shuffled 1332 1872 5.7 0.495 0.314 0.193 0.236 0.257
Gaussian 1332 914 2.9 0.423 0.341 0.027 0.371 0.261
inverted 1332 1390 4.4 0.475 0.268 0.216 0.257 0.259
constant 176 8 8.2 0.004 0.000 0.090 0.760 0.151

This model behaves differently from the RNA004 models. Every replaced signal receives a mean quality between \(2.6\) and \(5.7\), below every cut of [B1], and a constant current yields only \(176\) reads of \(8\) letters. The quality value separates the replacements from the original here. The letters do not: five of the six replacements still return \(1331\)–\(1332\) reads with medians of \(889\)–\(1872\) letters, and the block-shuffled signal produces longer reads than the molecule did. Whether nonsense is flagged depends on the model, as in run 1 it was not.

[B4] How many letters. No modification model was released for this chemistry in the version used, so the alphabet stays at four. In run 1 it could be four or six; here the choice does not exist, because the file that would supply it does not.

578.4.3 Retraining

The same network was trained from scratch on the two training files. Of \(36{,}892\) signals, \(36{,}891\) carried letters and move tables; \(2\) split reads were skipped. The signals were cut into \(220{,}003\) chunks, of which \(197{,}990\) were used for training and \(3000\), from unseen reads, for evaluation; \(3000\) steps per run, as before.

Orientation. With the labels reversed relative to the signal the held-out output is empty (similarity \(0.000\)); with the other orientation it is \(0.610\) after \(500\) steps. Again only one direction is learnable, and which one is supplied by the labels.

[T1] Named alphabets.

labels \(K\) held-out chance excess
canonical ACGT 4 0.746 0.449 \(+0.538\)
permuted (A\(\to \)C, C\(\to \)G, G\(\to \)T, T\(\to \)A) 4 0.744 0.449 \(+0.535\)
binary R/Y 2 0.770 0.631 \(+0.375\)
base pairs as 16 letters 16 0.394 0.198 \(+0.244\)
shuffled ACGT (control) 4 0.000 0.449 \(-0.816\)

Canonical and permuted are again indistinguishable (\(+0.538\) against \(+0.535\)), two and sixteen letters are learned, and shuffled labels give the empty string. The Hangul alphabet is the canonical one with the glyphs replaced, as in run 1.

[T2] Any number of letters. The training set contains \(1656\) distinct five-base contexts.

\(K\) held-out chance excess \(K\) held-out chance excess
2 0.628 0.653 \(-0.074\) 23 0.372 0.168 \(+0.246\)
3 0.000 0.543 \(-1.186\) 27 0.376 0.152 \(+0.264\)
5 0.000 0.415 \(-0.711\) 31 0.378 0.141 \(+0.276\)
6 0.013 0.371 \(-0.569\) 37 0.377 0.126 \(+0.286\)
7 0.167 0.342 \(-0.265\) 48 0.379 0.108 \(+0.304\)
9 0.249 0.292 \(-0.061\) 64 0.377 0.092 \(+0.314\)
11 0.246 0.263 \(-0.023\) 100 0.383 0.072 \(+0.335\)
13 0.344 0.236 \(+0.141\) 128 0.378 0.062 \(+0.337\)
15 0.348 0.218 \(+0.166\) 200 0.381 0.049 \(+0.349\)
17 0.355 0.201 \(+0.193\) 256 0.381 0.042 \(+0.353\)
19 0.359 0.189 \(+0.210\) 17, shuffled 0.000 0.201 \(-0.252\)
21 0.366 0.178 \(+0.229\)

The boundary falls at the same place as in run 1. Up to \(K=11\) no alphabet is learned; from \(K=13\) to \(K=256\) every one is, with excess rising from \(+0.141\) to \(+0.353\). Two different pores, kits and sample rates give the same threshold, which belongs to the assignment of contexts to symbols rather than to the molecule.

[T3] No basecaller, no reference.

\(K\) held-out chance excess
2 0.883 0.639 \(+0.677\)
3 0.887 0.517 \(+0.767\)
5 0.907 0.381 \(+0.850\)
7 0.890 0.311 \(+0.840\)
11 0.879 0.236 \(+0.841\)
17 0.859 0.180 \(+0.828\)
21 0.838 0.158 \(+0.808\)
32 0.792 0.122 \(+0.763\)
64 0.691 0.079 \(+0.664\)
17, shuffled 0.000 0.180 \(-0.220\)

The chunks contain a median of \(285\) events (run 1: \(173\)). Every alphabet from two to sixty-four symbols is learned, at \(+0.664\) to \(+0.850\), higher than any alphabet derived from a basecaller in either run. The shuffled control is empty.

What the letters look like. Figure 762 shows the first held-out chunk of each run. Unlike the chunk of run 1, its label has no long run of one symbol, and no alphabet writes one at its start — except the canonical network, which opens with nine G where the label has GGAAGG. The permuted network makes the same kind of error in its own letters (TTTTCTTTT for TTCCTTGTG). In [T3] output and label differ in a handful of positions at every \(K\), from A/B at \(K=2\) to Greek and Hangul at \(K=64\). Of the failing alphabets of [T2], \(K=2\) writes a string two-thirds the length of its label, \(K=3\) writes nothing, and \(K=7\) writes thirteen symbols for thirty-six.

pict

Figure 762: Run 2. Label (black) and network output (blue) for the first held-out chunk of each retrained basecaller. [T1] named alphabets of the same calls; [T2] five-base contexts assigned to \(K\) symbols; [T3] event levels quantised into \(K\) symbols with no basecaller and no reference. “fails” marks alphabets learned at or below chance; “control” marks shuffled labels.
578.4.4 The two runs side by side

layer run 1 (filed as dRNA) run 2 (filed as cDNA)
unit \(71.8\)–\(83.6\) pA per integer \(92.6\)–\(106.6\) pA per integer
molecule \(603\)–\(3879\) “bases” (\(6.4\times \)) \(331\)–\(2128\) “bases” (\(6.4\times \))
event \(10.8\)–\(227.4\) (\(21\times \)) \(23.2\)–\(224.5\) (\(9.7\times \))
kinds \(1\)–\(231\) \(1\)–\(841\)
sameness ARI \(0.08\)–\(1.00\) ARI \(0.16\)–\(1.00\)
amount \(0.108\)–\(1.000\) (\(9.2\times \)) \(0.017\)–\(1.000\) (\(58.8\times \))
letters \(0/720\) identical, 6 models \(0/1331\) identical, 3 models
quality \(483\)–\(670\) at \(Q\ge 7\) \(1185\)–\(1238\) at \(Q\ge 7\)
trimming no read changed \(88.7\%\) of reads, \(200\) letters
constant current \(733\) reads, \(Q=14.8\) \(176\) reads, \(8\) letters, \(Q=8.2\)
alphabet size \(4\) or \(6\) \(4\) (no modification model)
orientation one direction learnable one direction learnable
canonical / permuted \(+0.614\) / \(+0.583\) \(+0.538\) / \(+0.535\)
any \(K\) (contexts) from \(K=13\), up to \(+0.507\) from \(K=13\), up to \(+0.353\)
any \(K\) (current) \(+0.592\)–\(+0.823\) \(+0.664\)–\(+0.850\)
shuffled labels empty output empty output

The two runs differ in almost every number, and in the same places the apparatus differs: the scale of the integer, the sample rate, whether trimming acts, whether the model flags a constant current, whether a fifth letter can be loaded. What they share is structural. In both, the length in bases is a declared constant times seconds; the number of events, kinds and the largest share are set by parameters; no two models agree on a single read; the permuted alphabet is as good as the canonical one; contexts become learnable at the same \(K\); letters made from the current alone are learned better than letters made from a basecaller; and shuffled labels produce nothing. None of the shared properties refers to a nucleotide.

pict

Figure 763: Run 2, the current before any letter. Panels as in Figure 757: (a) picoamperes assigned to the integer \(800\) across \(112\) channels; (b) median length in “bases” under four declared speeds; (c) events per thousand samples against \(w\) and \(\theta \); (d) number of kinds against \(Q\) and \(d\); (e) ARI under four representations and five downsampling factors; (f) share of the largest group across \(65\) configurations.

pict

pict

Figure 764: Run 2, one current, any alphabet. Panels as in Figure 759. Below \(K=13\) the context alphabets are not learned; above it excess rises to \(+0.353\) at \(K=256\). Alphabets made from the current alone are learned at every \(K\) from \(2\) to \(64\).
Data and code

Raw signal: Oxford Nanopore open data, release UHRR_HG002_2026.06, directory raw/cDNA/UHRR/PCB114_24/UHRR_PCB114_24_PolyA_2/. The evaluation file is PBG23477_e30d79ba_ee3197bd_387.pod5; training used …_385.pod5 and …_386.pod5 from the same directory. Basecalling used dorado with dna_r10.4.1_e8.2_400bps_{fast,hac,sup}@v5.2.0. Retraining ran on one NVIDIA A100 (40 GB). The script is unbuild_all.py, unchanged from Section 578, run with the kit suffix _sqk-pcb114-24 on every output.