676 The Sequence Is a Function of Choices

Data. The four Sanger ABIF reads (310, 3100, 3730, A6_1-DB3). From each file we read the unprocessed channels DATA1–4, the processed channels DATA9–12, the dye order FWO_1, and, for comparison only, the shipped base calls PBAS (795–1165 letters). Nanopore: the nine reads of Section 672.6 (human genomic DNA, four direct-RNA, one converted FAST5, three POD5), first 20,000 current samples of one read per file. No basecaller output is used.

Construction. A sequence is conventionally reported as measured. Every step from the stored channels to a letter string is here treated as a choice: the source channels (raw DATA1–4 or processed DATA9–12); spectral unmixing (identity, or the inverse of a random matrix with 0–30% inter-channel crosstalk); baseline removal (none, or a moving minimum over 51, 201, or 801 scans); smoothing (none, or a Gaussian of \(\sigma =1,2,4\) scans); peak detection on the channel envelope (prominence at the 0.5, 0.7, or 0.9 quantile, minimum separation 3, 6, or 10 scans); the call at each peak (argmax of value, of per-channel rank, or of a 7-scan window integral); the channel-to-letter assignment (file order or another order); and end trimming (none, or where the top-to-second channel ratio falls below 1.2 or 1.5). Two hundred pipelines were drawn at random from this grid for each read, all applied to the same single measurement.

For nanopore, raw current was segmented into events (derivative peaks or a two-window level test), with minimum event length 3, 5, 8, or 12 samples, and each event level mapped to one of 3, 4, 5, or 7 letters by rank, giving 32 pipelines per read.

Results: Sanger. The 200 pipelines returned 192–198 distinct sequences per read. Sequence length ranged from 5–1764 (310), 2–693 (3100), 264–1149 (3730), and 374–788 (A6_1-DB3), against shipped lengths of 868, 795, 1165, and 839. Normalised edit distance to the shipped sequence ranged from 0.5184–0.9942, 0.1283–0.9975, 0.0189–0.7734, and 0.0727–0.5959, and between pipelines up to 0.6256–0.9971. The shipped sequence lay at 0.7408, 0.3434, 0.3150, and 0.1395 from the medoid pipeline, compared with median pipeline-to-medoid distances of 0.5570, 0.5000, 0.4639, and 0.2431 (Table 1182).

The choice with the largest effect on distance to the shipped sequence was the channel-to-letter assignment on 3100, 3730, and A6_1-DB3 (0.232–0.268), and peak prominence on 310 (0.088), followed by smoothing, source channels, and baseline (0.062–0.191). Using the processed rather than the raw channels lowered the mean distance to the shipped sequence on all four reads (by 0.081–0.191) and raised the mean length (by 43–393 letters). Spectral unmixing had the smallest or near-smallest effect (0.003–0.036) (Fig. 885c).

Table 1182: Two hundred pipelines applied to one measurement per read.





310 3100 3730 A6_1-DB3





shipped length 868 795 1165 839
distinct sequences (of 200) 198 193 192 192
length range 5–1764 2–693 264–1149 374–788
distance to shipped 0.518–0.994 0.128–0.998 0.019–0.773 0.073–0.596
max pipeline-to-pipeline distance 0.9946 0.9971 0.7716 0.6256
shipped to medoid 0.7408 0.3434 0.3150 0.1395
pipelines to medoid (median) 0.5570 0.5000 0.4639 0.2431
largest effect prominence letters letters letters





Results: nanopore. Without a basecaller, the 32 pipelines returned 32 distinct letter strings on eight reads and 28 on one. Length ranged from 121–391 (ont_raw) to 326–2166 (ont_RNA_3), and the normalised edit distance to the pipeline (derivative, 5, 4) reached 0.720–0.849. The three POD5 reads returned identical ranges (461–1637; 0.721).

pict

Figure 885: (a) Length of the sequence returned by 200 pipelines applied to one measurement, per read; shipped length in the legend. (b) Normalised edit distance of each pipeline output to the shipped sequence. (c) Effect of each choice (range of level means of distance to the shipped sequence). (d) Nanopore: sequence length as a function of segmentation and number of letters.

676.1 The Intensities Are a Function of Choices

Data. The four Sanger ABIF reads (310, 3100, 3730, A6_1-DB3). The stored processed channels DATA9–12 are the starting point; nothing upstream of them (spectral bins, CCD frames) is in the file.

Construction. Section 676 took the stored intensities as given and varied the steps that turn them into letters. Here the intensities themselves are regenerated, and the step from intensities to letters is held fixed. Each regeneration draws: the number of virtual filters \(c\in \{2,3,4,6,8\}\) and their composition as a random non-negative mixture of the stored channels (for \(c=4\), identity plus 0–30% crosstalk); removal of one stored channel or not; resampling of the scan axis at \(\times 0.5\), \(\times 0.75\), \(\times 1\), \(\times 1.5\), or \(\times 2\); additive per-scan noise of 0, 1, or 3% of full scale; saturation at the top 0, 1, or 5% of values; and ADC quantisation to 6, 8, 10, 12, or 16 bits. One fixed pipeline (moving-minimum baseline, Gaussian smoothing, envelope peaks at the median-prominence threshold, argmax of value) is then applied, with window lengths scaled to the sampling rate, and each filter is written as its own letter. Two hundred regenerations were drawn per read and compared with the pipeline applied to the stored channels unchanged (4 filters, 16 bits, no saturation, no noise, rate \(\times 1\)).

Results. From one stored measurement and one fixed pipeline, the 200 regenerations returned 197–200 distinct sequences per read. The number of letters in the output ranged from 2 to 8 on every read and tracked the number of virtual filters (mean 2.00, 2.96–3.00, 3.89–3.98, 5.36–5.71, and 7.03–7.72 letters for 2, 3, 4, 6, and 8 filters). Sequence length ranged from 466–906 (310), 469–998 (3100), 777–1342 (3730), and 516–836 (A6_1-DB3), against 545, 700, 1148, and 790 for the unperturbed intensities. Normalised edit distance to the unperturbed sequence ranged from 0.0009 to 0.9991 across reads, with medians 0.5949–0.6638 (Table 1183).

The number of virtual filters had the largest effect on every read (0.368–0.448 in mean distance between levels); with four filters the mean distance was 0.268–0.360, and with two, six, or eight filters 0.604–0.734. The remaining choices had effects of 0.024–0.122: channel removal 0.068–0.122, sampling rate 0.075–0.107, bit depth 0.046–0.114, noise 0.042–0.096, and saturation 0.024–0.065 (Fig. 886c). Additive noise lengthened the output on every read, from a mean of 501–972 letters at 0% to 717–1133 at 3%.

Table 1183: Two hundred regenerations of the intensities of one measurement, one fixed pipeline.





310 3100 3730 A6_1-DB3





unperturbed length 545 700 1148 790
distinct sequences (of 200) 200 200 197 200
letters in output 2–8 2–8 2–8 2–8
length range 466–906 469–998 777–1342 516–836
distance to unperturbed 0.062–0.892 0.013–0.957 0.001–0.999 0.019–0.989
median distance 0.6638 0.6248 0.6137 0.5949
effect: number of filters 0.382 0.368 0.427 0.448
largest other effect drop 0.122 bits 0.114 drop 0.102 rate 0.107





pict

Figure 886: (a) Sequence length when the intensities of one measurement are regenerated. (b) Distance to the sequence from the unperturbed intensities, same molecule and same pipeline. (c) Effect of each intensity choice. (d) Number of letters in the output against the number of virtual filters.

676.2 Before the Intensities: Template, Chemistry, Separation, and Optics

Data. No trace is used. From the four ABIF files (310, 3100, 3730, A6_1-DB3) only the run metadata are read and used as instrument presets: injection voltage and time (InVt 1200–2500 V, InSc 8–30 s), electrophoresis voltage (EPVt 8500–13,200 V), temperature (Tmpr 50–60 \(^\circ \)C), laser power (LsrP 7200–25,000), number of scans (Scan 10,200–16,961), and dye emission wavelengths (DyeW 540, 568, 595, 615 nm). The mobility files named in the metadata (DT310POP6{BD}.mob, KB_3130_POP7_BDTv3.mob, KB_3730_POP7_BDTv3.mob) are not in the file and are not used.

Forward model. Everything upstream of the stored intensities is written as an explicit forward model, so that the template is known and the called sequence can be compared with it. Template: a string of length 300, 600, or 900 over an alphabet of 2, 3, 4, or 6 letters, uniform, skewed, or built from runs of repeated letters. PCR: 15, 25, or 35 cycles at a per-base error rate of 0, \(10^{-5}\), \(10^{-4}\), or \(10^{-3}\), giving a per-position letter mixture; primer start at offset 0, 10, or 30. Cycle sequencing: termination probability set by the ddNTP:dNTP ratio (1/50, 1/100, 1/300) and a letter-specific incorporation bias (log-normal, \(\sigma =0\), 0.3, 0.6). Clean-up: unremoved-dye peaks of relative size 0, 0.5, or 2. Injection: amount scaled by InVt\(\times \)InSc times 0.5, 1, or 2, with a short-fragment bias of 0, 0.5, or 1.5. Electrophoresis: scan position from EPVt and Tmpr with speed factor 0.7, 1, or 1.3; band broadening slope 0.5, 1, or 2; dye-specific mobility offset of 0, 0.3, or 0.6 positions. Optics: laser power LsrP times 0.5, 1, or 2; Gaussian emission spectra of width 15, 25, or 35 nm centred on DyeW; 8, 20, or 40 CCD spectral bins over 500–700 nm with Poisson shot noise; virtual filters equal in number to the alphabet, or fixed at 4 or 8; ADC at 8, 12, or 16 bits. The same fixed calling pipeline as in Section 676.1 is applied, each filter written as its own letter. Three hundred parameter sets were drawn per preset.

Results. With default parameters (alphabet 4, length 600, no PCR error, filters equal to alphabet) the called sequence had length 448–490 and normalised edit distance 0.3850–0.4267 to its own template across the four presets. Over the 300 draws per preset, the distance to the template ranged from 0.0704–0.2069 to 1.0000 (medians 0.6411–0.6726), and the ratio of called to template length from 0.16–0.33 to 1.16–1.26 (Table 1184).

The number of virtual filters had the largest effect on every preset (0.291–0.339): mean distance 0.458–0.482 when the filters matched the alphabet, 0.624–0.651 with 4 filters, and 0.770–0.798 with 8. The number of CCD spectral bins came second on every preset (0.099–0.135), with 8 bins giving the largest distance. The remaining steps had effects of 0.004–0.106: alphabet size up to 0.106, band broadening 0.061–0.089, electrophoretic speed 0.036–0.078, clean-up 0.024–0.069, PCR error 0.016–0.064, ddNTP ratio 0.028–0.071, laser power 0.008–0.079, injection amount 0.011–0.062, and primer offset 0.018–0.035 (Fig. 887c).

Table 1184: Forward model from template to call, 300 draws per instrument preset.





preset 310 3100 3730 A6_1-DB3





default: distance to template 0.4267 0.3983 0.3850 0.4117
distance to template, range 0.070–1.000 0.087–1.000 0.115–1.000 0.207–1.000
distance to template, median 0.6726 0.6518 0.6411 0.6578
called / template length 0.30–1.20 0.33–1.16 0.16–1.18 0.23–1.26
effect: virtual filters 0.337 0.291 0.339 0.303
effect: CCD bins 0.107 0.099 0.135 0.129
third largest effect alphabet 0.106 broaden 0.089 laser 0.079 alphabet 0.071





pict

Figure 887: (a) Distance of the called sequence to its own known template over 300 draws of template, PCR, sequencing chemistry, clean-up, injection, electrophoresis, and optics, per instrument preset. (b) Ratio of called to template length. (c) Effect of each upstream step on the distance to the template.

676.3 The Periodic Table as a Parameter

Data. As in Section 676.2: no trace is used, and the run metadata of the four ABIF files (310, 3100, 3730, A6_1-DB3) serve as instrument presets. The template, chemistry, separation, and optics are held at their default values (alphabet 4, length 600, no PCR error, filters equal to the alphabet), and shot noise is removed, so that only the periodic table varies between runs.

Where the table enters. In the forward model the periodic table enters at two points. Mass to mobility: each letter is a nucleotide monophosphate carrying one of the four fluorophores of the 310 dye set, with approximate elemental compositions over H, C, N, O, P, and Cl; the fragment mass is the composition weighted by atomic mass, and the letter-specific mobility offset follows from the charge-to-mass ratio. Electronegativity to emission: as a stated toy model, the emission wavelength of each dye is shifted from its DyeW value by 2 nm per unit change in the summed Pauling electronegativity of its N, O, and Cl atoms. With the true table the offsets were \(1.42\), \(-2.54\), \(-0.14\), and \(1.89\) positions and the emission wavelengths 540, 568, 595, and 615 nm.

Shaking the table. Atomic masses and electronegativities were each replaced by: the true values; each element’s value scaled by \(e^{u}\), \(u\sim \mathcal {U}(-s,s)\), \(s\in \{0.05,0.2,0.5\}\); a permutation of the values among the six elements; the atomic number \(Z\) alone; or one common value for all elements. Twelve draws were made per combination, and the called sequence compared with the call obtained under the true table and with its known template.

Results. The distance to the call under the true table grew with the size of the change to the table (Table 1185). Scaling atomic masses by \(e^{\pm 0.05}\), \(e^{\pm 0.2}\), and \(e^{\pm 0.5}\) gave 0.039–0.050, 0.124–0.153, and 0.266–0.282 across presets, while changing the largest mobility offset by at most 0.02 positions. Permuting masses among elements gave 0.397–0.418 (largest offset 3.52 positions), setting all masses equal 0.407–0.425 (4.15 positions), and replacing mass by \(Z\) 0.138–0.145. Scaling electronegativities by \(e^{\pm 0.05}\), \(e^{\pm 0.2}\), and \(e^{\pm 0.5}\) gave 0.009–0.012, 0.036–0.052, and 0.117–0.142; permuting them 0.075–0.093; setting them equal 0.064–0.087; and replacing them by \(Z\), which narrowed the emission span from 75.0 to 45.6 nm, 0.441–0.449, the largest single effect.

Under the true table the called sequence lay at 0.7583–0.7733 from its template, and over all shaken tables at 0.7497–0.7950. The periodic table thus changed which sequence was called by up to 0.449 in normalised edit distance while changing its distance to the template by at most 0.0284.

Table 1185: Distance to the call under the true periodic table, mean of 12 draws, range over the four presets; shot noise removed.





mass electronegativity max offset emission span (nm) to true-table call





true true 2.54 75.0 0.0000
scale 0.05 true 2.54 75.0 0.039–0.050
scale 0.2 true 2.53 75.0 0.124–0.153
scale 0.5 true 2.52 75.0 0.266–0.282
permute true 3.52 75.0 0.397–0.418
\(Z\) only true 2.61 75.0 0.138–0.145
equal true 4.15 75.0 0.407–0.425
true scale 0.05 2.54 74.7 0.009–0.012
true scale 0.2 2.54 73.8 0.036–0.052
true scale 0.5 2.54 71.0 0.117–0.142
true permute 2.54 79.8 0.075–0.093
true equal 2.54 80.9 0.064–0.087
true \(Z\) only 2.54 45.6 0.441–0.449
permute permute 3.52 80.8 0.396–0.413
equal equal 4.15 80.9 0.388–0.413





pict

Figure 888: Normalised edit distance of the called sequence to its known template (blue) and to the call obtained under the true periodic table (orange), for each combination of shaken atomic mass and electronegativity tables, per instrument preset; shot noise removed.

676.4 Different Templates, One Called Sequence

Data. As in Sections 676.2–676.3: no trace is used; the run metadata of the ABIF files 310 and 3730 serve as instrument presets; shot noise is removed.

Construction. The direction of the forward model is reversed. A target is fixed: the sequence called from one template (alphabet 4, length 600, uniform) under the true periodic table, default chemistry, separation, and optics, and the default pipeline; it had 136 letters (310) and 145 letters (3730). Ten templates are then offered to the same forward model: the original; the original shuffled; the original reversed; two independent uniform random strings; random strings over 2 and over 6 letters; a string built from runs of repeated letters; and random strings of length 300 and 900. For each template, 100 parameter sets are drawn at random, covering the whole forward model and the pipeline: atomic number \(Z\) (true; each element shifted by up to \(\pm 1\) or \(\pm 3\); permuted among elements; scaled by \(e^{\pm 0.5}\)), atomic mass (true; scaled by \(e^{\pm 0.2}\) or \(e^{\pm 0.5}\); permuted; all equal; replaced by the shaken \(Z\) or by \(2Z\)), electronegativity (true; scaled; permuted; replaced by the shaken \(Z\)), all chemistry, injection, electrophoresis, and optics choices of Section 676.2, peak prominence (0.3, 0.5, 0.7, 0.9 quantile), smoothing (\(\times 0.5\), 1, 2), and the filter-to-letter assignment. The distance of each resulting call to the target is recorded.

Results. The original template did not come closer to its own call than foreign templates did (Table 1186). On the 310 preset its best distance to the target was 0.5548; five of nine foreign templates came closer, the reversed template at 0.4777, the uniform random string A and the six-letter string at 0.5221, and the length-900 and length-300 strings at 0.5124 and 0.5147. On the 3730 preset its best was 0.5227; five foreign templates came closer, the two-letter string at 0.4690, the shuffled template at 0.4938, the reversed template at 0.5000, the length-300 string at 0.5103, and random string A at 0.5172. Median distances over the 100 draws were 0.7408–0.8541 for all templates, the original included (0.7647 and 0.7776). No template, the original included, reached a distance below 0.30 within 100 draws.

The parameter sets that came closest to the target for foreign templates used altered periodic tables in most cases, including permuted atomic numbers, atomic numbers shifted by \(\pm 1\) or \(\pm 3\), masses replaced by \(Z\) or \(2Z\), and electronegativities replaced by \(Z\).

Table 1186: Best and median distance to one target call over 100 random parameter sets per template.







preset 310
preset 3730
template alphabet length best median best median







original 4 600 0.5548 0.7647 0.5227 0.7776
shuffled 4 600 0.5368 0.7612 0.4938 0.7734
reversed 4 600 0.4777 0.7546 0.5000 0.7499
random A 4 600 0.5221 0.7574 0.5172 0.7724
random B 4 600 0.5588 0.7714 0.5310 0.7902
alphabet 2 2 600 0.5590 0.8243 0.4690 0.8541
alphabet 6 6 600 0.5221 0.7408 0.5241 0.7621
runs 4 600 0.6103 0.7994 0.5979 0.7793
length 300 4 300 0.5147 0.7655 0.5103 0.7655
length 900 4 900 0.5124 0.7720 0.5632 0.7851







676.5 The Dye and Light Layer

Data. As in Sections 676.2–676.4: no trace is used; the run metadata of the ABIF files 310 and 3730 serve as instrument presets; shot noise is removed. The template (4 letters, length 600, uniform), sequencing chemistry, injection, and electrophoresis are held at default values, so that only the layer between fragment and intensity varies.

Construction. The layer at which a fragment becomes light, and light becomes channels, is written in full and every part is drawn at random. Light: excitation at 488, 505, or 532 nm with line width 1 or 10 nm. Mathematics of the spectrum: emission modelled as a Gaussian in wavelength, a Gaussian in photon energy with the Jacobian to wavelength, a Lorentzian, a skewed profile, or a two-peak vibronic profile. Superposition: linear sum, saturating response, or inner-filter quenching. Dyes: 1, 2, 4, or 8 dyes, with 8 dyes used as two-dye combinatorial codes; emission spacing 5–40 nm; Stokes shift 10, 25, or 50 nm; per-dye quantum yield scaled by \(e^{u}\), \(|u|\le 0,0.5,1\); photobleaching rate 0, 0.5, or 2; solvent shift \(-15\), 0, or \(+15\) nm; and energy transfer to the adjacent dye of 0, 20, or 50%. Labelling: dye on the terminator, dye on the primer, or no letter-specific label. Division of light: 8, 20, or 40 CCD spectral bins; 1, 2, 4, or 8 filters of width 5, 15, or 40 nm placed evenly or at random; detector quantum-efficiency curve flat, sloped, or random. The fixed calling pipeline of Section 676.2 is applied. Because the number and meaning of output letters change with the dyes, both the call and the template are relabelled by order of first appearance before comparison, and with fewer than four distinguishable dyes the template is first merged into the classes the dyes can separate. Three hundred layers were drawn per preset.

Results. With default values (4 dyes on terminators, Gaussian spectra, linear superposition, 4 filters) the fixed pipeline called 108 (310) and 114 (3730) letters from a 600-letter template, at a distance of 0.8200 and 0.8100 from it. Over the 296 and 294 valid draws, the distance to the template ranged from 0.3433 to 0.9917 (310) and 0.6767 to 0.9933 (3730), with medians 0.8375 and 0.8317; the called length was 0.12–0.66 and 0.13–0.32 of the template length; and the output contained 1 to 7 and 1 to 6 distinct letters (Fig. 889a,b).

On both presets the number of dyes had the largest effect (0.060 and 0.055), a single dye giving the largest mean distance (0.875 and 0.857), followed by the labelling scheme (0.048 and 0.039), with unlabelled fragments farthest (0.865 and 0.851), and the superposition rule (0.042 and 0.027), with saturating response farthest (0.863 and 0.844). The remaining parts had effects of 0.001–0.034: number of filters 0.034 and 0.006, energy transfer 0.022 and 0.014, spectral shape 0.017 and 0.018, CCD bins 0.019 and 0.008, emission spacing 0.013 and 0.011, and Stokes shift, quantum yield, photobleaching, solvent shift, laser wavelength and width, filter width and placement, and detector curve 0.001–0.012 (Table 1187, Fig. 889c). All effects were measured against a default distance of 0.81–0.82, at which the fixed pipeline resolved fewer than one fragment in five.

Table 1187: Effect of each part of the dye and light layer (range of level means of distance to template).




part 310 3730 level with largest mean distance




number of dyes 0.060 0.055 1 dye
labelling 0.048 0.039 none
superposition 0.042 0.027 saturating
number of filters 0.034 0.006 8 (310)
energy transfer 0.022 0.014 50% (310), none (3730)
spectral mathematics 0.017 0.018 vibronic (310), Gaussian in wavelength (3730)
CCD bins 0.019 0.008 40 (310), 20 (3730)
emission spacing 0.013 0.011 20 nm (310), 40 nm (3730)
all other parts 0.004–0.011 0.001–0.012 —




default distance 0.8200 0.8100
distance range 0.343–0.992 0.677–0.993
letters in output 1–7 1–6




pict

Figure 889: (a) Distance of the call to its template (canonical labels) over 300 random dye and light layers per preset. (b) Number of letters in the output against the number of dyes carrying letter information. (c) Effect of each part of the layer: light, spectral mathematics, superposition, dyes, dye chemistry, energy transfer, labelling, and division of light.