640 Changing the Unit

§639.20 established that counting requires a partition and that the family of partitions is neither ordered nor equipped with an invariant. This subsection measures what changes when the partition changes.

The record is the nanopore read of §701: \(98\,848\) int16 samples at \(4000\) Hz, \(24.7\) seconds, \(69.5\) to \(222.8\) pA.

640.0.1 Fourteen units, fourteen counts
\[ \begin {array}{lrrr} \text {unit} & \text {count} & \text {per second} & \text {relative to samples} \\ \hline \text {ADC sample} & 98\,848 & 4000.0 & 1.00000 \\ \text {constant-value run} & 96\,412 & 3901.4 & 0.97536 \\ \text {level change, } |\Delta | \ge 1 & 96\,411 & 3901.4 & 0.97535 \\ \text {level change, } |\Delta | \ge 5 & 76\,714 & 3104.3 & 0.77608 \\ \text {decile crossing} & 48\,758 & 1973.0 & 0.49326 \\ \text {millisecond} & 24\,712 & 1000.0 & 0.25000 \\ \text {peak, height } 1\sigma & 11\,703 & 473.6 & 0.11839 \\ \text {median crossing} & 11\,013 & 445.7 & 0.11141 \\ \text {segment, jump } 20\text {, dwell } 5 & 7067 & 286.0 & 0.07149 \\ \text {peak, prominence } 1\sigma & 2731 & 110.5 & 0.02763 \\ \text {distinct ADC code} & 409 & 16.6 & 0.00414 \\ \text {integer picoampere} & 153 & 6.2 & 0.00155 \\ \text {segment, jump } 3\text {, dwell } 5 & 139 & 5.6 & 0.00141 \\ \text {peak, height } 3\sigma & 7 & 0.3 & 0.00007 \\ \end {array} \]

Fourteen thousand-fold between the largest and the smallest. Each row is a defensible answer to “how many are there in this record”, and each is the answer for a different one. The record is unchanged throughout: it is the same \(98\,848\) integers.

640.0.2 Rates are unit-relative

A count divided by a duration is a rate, and the rate inherits the arbitrariness of the count. The translocation rate of a nanopore — how many molecules pass per second — is, on this record,

\[ 0.3,\quad 5.6,\quad 110.5,\quad 286.0,\quad \text {or}\quad 473.6\ \mathrm {s^{-1}}, \]
depending on whether an event is a \(3\sigma \) peak, a coarse segment, a prominence-defined peak, a fine segment, or a \(1\sigma \) peak. The corresponding mean durations run from \(2.1\) ms to \(0.25\) ms.

The quantity usually reported — translocation rate — is not a property of the pore and the molecule. It is a property of the pore, the molecule, and the event definition, and only the first two are described in the methods.

640.0.3 Distributions change shape

The dwell-time distribution is the standard object of nanopore analysis, and its shape is read as evidence about the transport process. Computed under six segmentations of the same record:

\[ \begin {array}{lrrrrr} \text {unit} & n & \text {mean [ms]} & \mathrm {CV} & \text {skew} & \max /\text {median} \\ \hline \text {segment, jump } 20\text {, dwell } 5 & 7067 & 2.228 & 0.585 & 3.94 & 14.71 \\ \text {segment, jump } 12\text {, dwell } 5 & 4618 & 1.721 & 0.372 & 2.71 & 5.50 \\ \text {segment, jump } 8\text {, dwell } 3 & 9479 & 0.990 & 0.369 & 2.46 & 6.33 \\ \text {segment, jump } 8\text {, dwell } 10 & 90 & 2.836 & 0.157 & 1.78 & 1.73 \\ \text {segment, jump } 5\text {, dwell } 5 & 691 & 1.403 & 0.180 & 2.26 & 2.40 \\ \text {constant-value run} & 96\,412 & 0.256 & 0.158 & 6.65 & 4.00 \\ \end {array} \]
The coefficient of variation ranges from \(0.157\) to \(0.585\) and the skewness from \(1.78\) to \(6.65\). An exponential distribution has \(\mathrm {CV} = 1\) and skewness \(2\); a narrow unimodal distribution has \(\mathrm {CV} \ll 1\) and small skew.

Under one segmentation the dwell times are approximately exponential; under another they are narrow and nearly symmetric; under a third they are heavily tailed. The question “are the dwell times exponentially distributed” does not have an answer prior to the segmentation, and the answers available span the whole range that the question was posed to distinguish.

640.0.4 Scaling exponents

Counting units in a window of duration \(T\) and fitting \(n(T) \propto T^{\alpha }\) over fourteen logarithmically spaced windows from \(0.5\) to \(6000\) ms, with window positions resampled forty times:

\[ \begin {array}{lrr} \text {unit} & \alpha & \text {s.e.} \\ \hline \text {ADC sample} & 1.002 & 0.000 \\ \text {constant-value run} & 1.002 & 0.002 \\ \text {peak, height } 1\sigma & 0.992 & 0.044 \\ \text {segment, jump } 8\text {, dwell } 5 & 0.967 & 0.061 \\ \text {peak, height } 2\sigma & 0.927 & 0.084 \\ \text {peak, height } 3\sigma & \text {undefined} & - \\ \end {array} \]
Every defined exponent is consistent with \(\alpha = 1\): the largest departure, \(0.927\), is \(0.9\) standard errors below unity. The units that admit a scaling exponent all appear at a constant rate, and the record is uniform in every one of them.

This is a negative result and corrects an earlier version of this measurement. Fitting over six windows on a fixed grid gave exponents from \(0.629\) to \(1.026\) and appeared to show clustering under some units; resampling the window positions removes the effect. The apparent dependence was a property of the window grid.

The last row is not a small exponent but the absence of one. Seven \(3\sigma \) peaks occur in \(24.7\) seconds, so almost every window contains none, and \(\log n\) is undefined. The unit does not admit the question. Where the previous subsections showed that different units give different answers, this one shows that some units give no answer: the quantity “rate of \(3\sigma \) events” exists on this record, at \(0.3\ \mathrm {s}^{-1}\), but “scaling exponent of \(3\sigma \) events” does not.

640.0.5 The same in the sequence

The reads of §639.1 admit the same treatment. For \(4\times 10^{5}\) bases of DRR088098:

\[ \begin {array}{lrr} \text {unit} & \text {count} & \text {per base} \\ \hline \text {base} & 400\,000 & 1.000000 \\ \text {homopolymer run} & 284\,200 & 0.710500 \\ \text {distinct } 12\text {-mer} & 255\,194 & 0.637985 \\ \text {purine/pyrimidine switch} & 196\,352 & 0.490880 \\ \text {codon, one frame} & 133\,333 & 0.333332 \\ \text {distinct } 6\text {-mer} & 4092 & 0.010230 \\ \text {GC island, } \ge 10/20 & 2955 & 0.007387 \\ \text {read} & 1057 & 0.002642 \\ \text {distinct } 3\text {-mer} & 64 & 0.000160 \\ \text {distinct } 1\text {-mer} & 4 & 0.000010 \\ \end {array} \]
A factor of \(10^{5}\). “How many are in this sample” is \(4\) if the unit is a letter type, \(1057\) if a read, \(133\,333\) if a codon, \(400\,000\) if a base.

The distinct-\(k\)-mer rows are informative in a second way. At \(k=3\) all \(64\) occur, at \(k=6\) all but four of \(4096\), at \(k=12\) only \(255\,194\) of \(1.7\times 10^{7}\). The count as a function of \(k\) crosses over from “every possibility realised” to “almost nothing realised” between \(k=8\) and \(k=12\), and the crossover is set by the length of the sample rather than by any property of the molecule.

\[ \boxed { \begin {aligned} &\text {one record of } 98\,848\ \text {samples} \\ &\quad \text {counts: } 7 \text { to } 98\,848,\ \text {a factor of } 1.4\times 10^{4} \\ &\quad \text {rates: } 0.3 \text { to } 473.6\ \mathrm {s^{-1}} \\ &\quad \text {dwell-time } \mathrm {CV}:\ 0.157 \text { to } 0.585 \\ &\quad \text {scaling exponent } \alpha :\ 0.629 \text { to } 1.026 \\[3pt] &\text {one sample of } 4\times 10^{5}\ \text {bases} \\ &\quad \text {counts: } 4 \text { to } 4\times 10^{5},\ \text {a factor of } 10^{5} \\ \end {aligned}} \]

To count is to fix a unit, and the unit is not in the record. What is reported as the number of events, the translocation rate, the dwell-time distribution and the scaling exponent are each computed after a partition that the methods section does not state and that no measurement selects.

The claim is not that these quantities are meaningless. Each is well defined once its unit is given, and stable under repetition. The claim is that the unit is part of the quantity, and that omitting it converts a two-place relation into what reads as a one-place fact.

pict

Figure 838: The same records counted under different units. (a) The nanopore read of §701 — \(98\,848\) int16 samples at \(4000\) Hz, \(24.7\) s — under fourteen definitions of a unit, each defensible and each in use. The counts span a factor of \(14\,121\), from seven \(3\sigma \) peaks to \(98\,848\) samples. The record is identical in every row. (b) Dividing by the duration gives a translocation rate, which inherits the range: \(0.3\) to \(473.6\ \mathrm {s}^{-1}\) for the same molecule through the same pore. (c) The dwell-time distribution under five segmentations. An exponential distribution has coefficient of variation \(1\) and skewness \(2\). Segmentation at jump \(8\), dwell \(10\) gives \(\mathrm {CV} = 0.16\), skew \(1.8\) — narrow and nearly symmetric; at jump \(20\), dwell \(5\) it gives \(\mathrm {CV} = 0.58\), skew \(3.9\); constant-value runs give \(\mathrm {CV} = 0.16\) with skew \(6.7\), narrow with a heavy tail. No single-parameter family describes all three, and the choice among them is the segmentation. (d) Counts against window duration, fitted as \(n \propto T^{\alpha }\) over fourteen logarithmically spaced windows with positions resampled sixty times. Every defined exponent lies within one standard error of unity: \(1.003 \pm 0.000\) (samples), \(1.003 \pm 0.004\) (constant runs), \(0.987 \pm 0.061\) (\(1\sigma \) peaks), \(0.964 \pm 0.076\) (segments), \(0.858 \pm 0.109\) (\(2\sigma \) peaks). The record is uniform in every unit that admits the question. At \(3\sigma \) only seven events occur in \(24.7\) s; crosses mark windows containing none, the count is flat rather than growing, and the exponent does not exist. Some units do not support the quantity at all. (e) The reads of §639.1: \(4\times 10^{5}\) bases under ten units, spanning a factor of \(10^{5}\) — four if the unit is a letter type, \(400\,000\) if a base.

Data. Raw signal: read 2556, channel 199 of the Loman Lab MinION human reference run (R9.4), nanopore-human-wgs S3 archive. Sequence: ENA run DRR088098, Plasmodium falciparum on MinION, \(1057\) reads.

640.1 Below the Current

§701 took the nanopore record as \(98\,848\) int16 values and traced upward. This subsection traces downward: what the integers are integers of, and what had to be true for them to exist.

640.1.1 The file contains the whole pipeline

The fast5 for ch199_read2556 carries the raw signal in one dataset and the entire processing configuration in the rest. The instrument recorded its own settings alongside its output:

/Raw/Reads/Read_2556/Signal                        (98848,)  int16
/UniqueGlobalKey/channel_id
    digitisation   = 8192.0        range = 1506.22
    offset         = 5.0           sampling_rate = 4000.0
/UniqueGlobalKey/tracking_id
    asic_id = 84868110      asic_temp = 28.91      heatsink_temp = 34
    flow_cell_id = FAF01132 device_id = MN17024
/Analyses/EventDetection_000/Configuration/event_detection
    detector = minknow      peak_height = 0.2
    thresholds = 1.4,1.1    window_sizes = 3,6
/Analyses/Basecall_1D_000/Configuration/basecall_1d
    mode = rnn              min_mean_qscore = 6.0    remove_bad = 1
/Analyses/Basecall_1D_000/Summary/basecall_1d_template
    model_file = template_e8_450bps_180mV_5mer_nn.jsn
    num_events = 19828      sequence_length = 8714
    stay_prob  = 0.6476     step_prob = 0.3489     skip_prob = 0.0035
    mean_qscore = 5.4499
/Analyses/Basecall_1D_000/Summary
    return_status = "1D basecall failed quality filters"

Three things in this listing bear on the preceding sections.

The event detector’s thresholds are \(1.4\) and \(1.1\) with window sizes \(3\) and \(6\) — the parameters whose variation in §701 moved the segment count from \(7\) to \(12\,104\). They are recorded here at one setting.

The base caller reports \(19\,828\) events yielding \(8714\) bases, with \(\text {stay\_prob} = 0.648\): in \(65\%\) of transitions the model emitted no new base. The mapping from events to letters is not one-to-one, and the ratio is a model output.

And the read failed. min_mean_qscore is \(6.0\), the read scored \(5.45\), and the status field reads 1D basecall failed quality filters. The \(98\,848\) samples analysed throughout §701 are, by the instrument’s own criterion, not a read at all. That criterion is the number \(6.0\) in a configuration file.

640.1.2 The three constants
I_pA = (ADC + offset) * range / digitisation
     = (ADC + 5.0) * 1506.22 / 8192.0

digitisation  = 8192      2^13, an ASIC design value
range         = 1506.22   full-scale current, set by the transimpedance
                          feedback resistance and the reference voltage
offset        = 5.0       per-channel zero, set by measuring the
                          open-pore current
sampling_rate = 4000      an on-board crystal oscillator

None is derived from the signal. The third is circular in the same way as the reference antenna of §452: the zero is set so that the open pore reads zero, and the open-pore state is identified by its current.

The median current of this read is \(114\) pA. The nominal open-pore current for an R9.4 pore at \(180\) mV is about \(230\) pA, and the blocked range during translocation is \(50\)–\(120\) pA. The file records \(\texttt {median\_before} = 234.03\) — the current immediately before the read began, used as the open-pore reference.

640.1.3 What has to hold for a current to exist
ionic current I         charge carried by ions through the pore
  applied voltage       180 mV, produced by a DAC
  electrolyte           ~1 M KCl; the ion concentration sets I
  Ag/AgCl electrode     Ag + Cl- -> AgCl + e-, a consumable reaction
  membrane              synthetic polymer bilayer; thickness sets capture rate
  pore protein          CsgG variant (R9.4)
  motor protein         helicase, advancing the strand base by base
  ATP + Mg2+            sets the motor rate, hence the dwell time
  temperature           34 C; both rate and conductivity are temperature-dependent
  transimpedance amp    feedback resistance; "range" originates here
  13-bit ADC            digitisation = 8192
  crystal oscillator    sampling_rate = 4000 Hz

Twelve components. The statement “the ionic current was measured” asserts that all twelve behaved to specification, and none of the twelve is verified by the signal. Two of them — asic_temp and heatsink_temp — are recorded in the file; the rest are not.

640.1.4 Magnitudes
\[ \begin {array}{lll} \text {change} & \text {mechanism} & \text {effect} \\ \hline \text {KCl } 1\,\mathrm {M} \to 0.5\,\mathrm {M} & \text {conductivity} & I\ \text {halved} \\ \text {bias } 180 \to 120\ \mathrm {mV} & \text {ohmic} & -33\% \\ \text {temperature } 34 \to 25\,^{\circ }\mathrm {C} & \sim 2\%\ \text {per K} & -18\% \\ \text {Ag/AgCl depletion} & \text {electrode potential drift} & \text {per-hour drift} \\ \text {pore R9.4} \to \text {R10} & 5 \to 9\ \text {read positions} & k\text {-mer model replaced} \\ \text {helicase variant} & 450 \to 70\ \text {bases/s} & \text {dwell} \times 6 \\ \text {ATP exhaustion} & \text {motor stalls} & \text {dwell} \to \infty \\ \end {array} \]

The last three matter for what was measured in §701. The dwell distribution — from which read length was inferred, and which varied by a factor of \(1700\) under segmentation settings — is a function of the helicase rate and the ATP concentration. It is a property of the motor protein and the buffer, not of the strand.

The pore variant determines how many bases sit in the constriction at once. R9.4 reads five, R10 reads nine. Changing the pore does not change the molecule; it changes what a signal level is a level of, and requires a different trained model to interpret. The file names its model: template_e8_450bps_180mV_5mer_nn.jsn — five-mer, \(180\) mV, \(450\) bases per second, all three fixed in the filename.

640.1.5 The pore itself
CsgG structure
  <- model fitted to an electron density map
     <- density map = Fourier transform of diffraction intensities
        <- intensities are measured; phases are not (the phase problem)
           <- phases obtained by molecular replacement,
              i.e. from a previously determined structure
  <- model judged by R-factor
     <- R-factor computed against that same model

This is the refinement loop discussed earlier, applied to the component that makes the measurement possible. The protein through which the current flows is known by a procedure whose agreement statistic is computed against the structure it is used to determine, and whose phases are inherited from a structure determined the same way.

640.1.6 The full chain
1. 98,848 int16 values                what is stored
2. current in pA                      + digitisation, range, offset
                                        (file metadata, not derived from signal)
3. ionic flow                          + KCl, 180 mV, 34 C, Ag/AgCl
                                        (not verified by the signal)
4. pore occupancy state                + CsgG structure
                                        (crystallographic refinement)
5. k-mer signal level                  + trained model
                                        (fitted against a reference genome)
6. character string                    + thresholds 1.4/1.1, window 3/6,
                                        RNN decoding, stay_prob 0.648
7. sequence                            + assembly k, reference choice,
                                        gap penalties
8. "this organism has this genome"     + Q cutoff 6.0
                                        (this read: 5.45, rejected)

640.1.7 Statement
\[ \boxed { \begin {aligned} &\text {stored} && 98\,848\ \texttt {int16} \\ &\text {to reach a current} && 3\ \text {constants from the file} \\ &\text {to reach an ionic flow} && 12\ \text {components, none verified} \\ &\text {to reach a pore state} && \text {a crystallographic model} \\ &\text {to reach a letter} && \text {a model trained on a reference} \\ &\text {to reach a read} && \texttt {min\_mean\_qscore} = 6.0 \\ &\text {this read scored} && 5.45 \\ \end {aligned}} \]

The record analysed throughout §701 was rejected by the instrument that produced it. Every quantity computed from it — the event counts, the segment counts, the requantisation efficiency — was computed on \(24.7\) seconds of current that the pipeline classified as not a read, on the strength of a threshold recorded in the same file as the signal.

Remark 640.1 (The volt and the second in the filename). The model file is named

template_e8_450bps_180mV_5mer_nn.jsn

binding the trained parameters to a bias of \(180\) mV and a translocation rate of \(450\) bases per second. Both are quantities in SI units, and both terminate in the chain of §701.5.

The bias is produced by a digital-to-analogue converter as a fraction of a reference voltage. The volt is not independently defined in the SI: it is \(\mathrm {kg\,m^{2}\,s^{-3}\,A^{-1}}\), and since 2019 it is realised through the Josephson effect,

\[ V = \frac {n f}{K_J}, \qquad K_J = \frac {2e}{h}, \]
with \(e\) and \(h\) fixed exactly by definition. A Josephson voltage standard therefore converts a frequency into a voltage using two stipulated constants; what is measured is \(f\), and \(f\) is a count of cycles against the caesium second. The reference in a commercial DAC is not a Josephson array but a bandgap circuit calibrated, through several intermediate standards, against one.

The rate, \(450\) bases per second, is a count divided by a duration. The count is the segment count of §701 — itself a function of the thresholds \(1.4\) and \(1.1\) recorded in the same file. The duration is \(n/f_{\rm s}\) with \(f_{\rm s} = 4000\) Hz from a crystal oscillator, and the hertz is the inverse second, defined as \(9\,192\,631\,770\) caesium cycles.

So the two numbers in the filename resolve to

\[ 180\ \mathrm {mV} \;\leftarrow \; \frac {nf}{2e/h} \quad \text {and}\quad 450\ \mathrm {s^{-1}} \;\leftarrow \; \frac {\text {segments}(1.4,\,1.1)}{n / 4000}, \]
in which \(e\), \(h\) and the second are definitions, the frequency is a count of oscillations, and the numerator of the rate is a count produced by a threshold. Neither is a measurement of the pore.

The model was trained under these conditions and is valid under them. What the filename records is that the mapping from current to letters is conditional on a voltage realised from two defined constants and a rate whose numerator is set by a segmentation parameter.

Remark 640.2 (The pore is a refined model). The instrument reads through a CsgG variant. What is known of CsgG is a structure, and a structure is the output of a refinement.

Diffraction measures intensities \(|F_{hkl}|^2\). The electron density is

\[ \rho (\mathbf {r}) = \frac {1}{V}\sum _{hkl} |F_{hkl}|\, e^{i\varphi _{hkl}}\, e^{-2\pi i\,\mathbf {h}\cdot \mathbf {r}}, \]
and the phases \(\varphi _{hkl}\) do not appear in any measurement. For a protein of this size they are obtained by molecular replacement: a previously determined structure is positioned in the unit cell and its calculated phases are combined with the observed amplitudes. The map from which the model is built therefore carries the phases of an earlier model and the amplitudes of the present crystal.

The model is then judged by

\[ R = \frac {\sum _{hkl}\big |\,|F_{\rm obs}| - |F_{\rm calc}|\,\big |} {\sum _{hkl} |F_{\rm obs}|}, \]
in which \(|F_{\rm calc}|\) is computed from the model being judged. This is the structure discussed earlier: coordinates refined under an assumed model, assessed by agreement with that model. The free-\(R\) statistic withholds a few percent of reflections from the refinement to check against overfitting, which measures the model’s capacity but not the correctness of the phases it inherited.

A cryo-EM determination replaces the crystal with a particle average. The phases are then measured rather than inherited — images are real-space projections — but the average is taken over particles selected by a classification procedure, and the resolution is reported by a Fourier shell correlation between two half-maps built from the same selection, at a threshold of \(0.143\) chosen by convention.

Two further steps separate the deposited structure from the pore in the device. The deposited CsgG is wild type; the sequencing pore is a mutant with substitutions in the constriction, chosen by screening for signal quality — that is, by the criterion the structure is then used to explain. And the protein in the membrane is at \(34\,^\circ \)C in \(1\) M KCl under a \(180\) mV bias, none of which obtains in a cryogenic crystal.

The component that makes the measurement possible is therefore known through a procedure whose agreement statistic is computed against its own output, whose phases descend from a previous instance of the same procedure, and whose subject differs from the object in the device by design.