572 Beneath the Current

The preceding subsection took a current trace as the primitive. It is not one. A nanopore instrument records integers; the picoampere values distributed in the file are computed from them by two numbers stored alongside. This subsection varies those numbers, the reference against which a potential is stated, the amplifier bandwidth, the sampling rate and the bit depth, and reports what each determines.

Data. Ten current traces from the reference POD5 test data (nanoporetech/pod5-file-format), \(1.24\times 10^{5}\) samples each, sampled at \(4000\) Hz. The recorded values are integers in \([-4, 635]\).

572.0.1 The unit is two numbers in the header

The file states

\[ I\,[\mathrm {pA}] = (\mathrm {ADC} + \texttt {offset}) \times \texttt {scale}, \]
with \(\texttt {scale} = 0.175500\) and \(\texttt {offset} = 21.0\) for the first read. Neither is measured during the run; both are calibration metadata, and the offset differs between reads of the same file:
\[ \begin {array}{lrr} \text {read} & \texttt {scale} & \texttt {offset} \\ \hline 0 & 0.175500 & 21.0 \\ 1 & 0.175500 & 4.0 \\ 3 & 0.175500 & 2.0 \\ 4 & 0.175500 & 23.0 \\ \end {array} \]
Across the ten reads the scale is identical to six figures and the offset spans \(2.0\) to \(37.0\) counts, a range of \(35\) counts or \(6.1\) pA. The same pore, the same experiment, the same minute: the zero of the current axis moves by \(6\) pA between reads.

Applying different calibrations to the identical integer array:

\[ \begin {array}{lrrr} \text {treatment} & \text {range [pA]} & \text {mean} & \text {sd} \\ \hline \text {as distributed} & 2.98\text {--}115.13 & 62.79 & 11.570 \\ \texttt {offset}+100 & 20.53\text {--}132.68 & 80.34 & 11.570 \\ \texttt {offset}=0 & -0.70\text {--}111.44 & 59.10 & 11.570 \\ \texttt {scale}=1 & -4.00\text {--}635.00 & 336.77 & 65.927 \\ \text {another read's calibration} & 1.76\text {--}113.90 & 61.56 & 11.570 \\ \end {array} \]

The event count is \(6061\) in every row and \(\Lambda (1) = 0.9035\) in every row. Neither offset nor scale changes the structure, because the event definition is itself median-referenced. What they change is the number reported as a current. A statement of the form “the open-pore current is \(62.8\) pA” is a statement about two header fields.

572.0.2 There is no absolute potential

Only differences of potential are measurable. A working-electrode potential is quoted against a reference whose own value is assigned. Converting a single applied potential of \(0.180\) V:

\[ \begin {array}{lr} \text {vs SHE (defined as } 0.000) & +0.1800\ \mathrm {V} \\ \text {vs Hg/HgO} & +0.0820 \\ \text {vs Ag/AgCl (sat.)} & -0.0170 \\ \text {vs Ag/AgCl (3M)} & -0.0300 \\ \text {vs SCE} & -0.0610 \\ \text {vs Cu/CuSO}_4 & -0.1360 \\ \end {array} \]
a span of \(0.316\) V, with the sign reversing across the set. The standard hydrogen electrode is \(0.000\) by definition, and the other values are measured against a cell constructed to realise that definition.
572.0.3 The bandwidth produces the events

Low-pass filtering the trace before segmentation, within the Nyquist limit of \(2000\) Hz:

\[ \begin {array}{rrrr} \text {cutoff [Hz]} & \text {events} & \text {sd [pA]} & \text {corr.\ length} \\ \hline 50 & 1611 & 6.252 & 33 \\ 100 & 3064 & 8.367 & 17 \\ 200 & 4655 & 10.069 & 11 \\ 400 & 5644 & 10.895 & 9 \\ 800 & 5772 & 11.283 & 9 \\ 1600 & 6003 & 11.502 & 8 \\ \text {none} & 6061 & 11.570 & 8 \\ \end {array} \]
The number of events spans \(1611\) to \(6061\), a factor of \(3.8\). Whether a translocation occurred, and how many, is a function of the filter corner.
572.0.4 The sampling rate produces them too
\[ \begin {array}{rrrrr} \text {decimation} & \text {effective rate} & n & \text {events} & \Lambda (1) \\ \hline 1 & 4000 & 123\,627 & 6061 & 0.9035 \\ 2 & 2000 & 61\,814 & 4358 & 0.8085 \\ 4 & 1000 & 30\,907 & 2453 & 0.6304 \\ 8 & 500 & 15\,454 & 910 & 0.3510 \\ 16 & 250 & 7727 & 290 & 0.0718 \\ 32 & 125 & 3864 & 132 & 0.0074 \\ \end {array} \]
The standard deviation is unchanged at \(11.5\) pA throughout; the event count falls by a factor of \(46\) and \(\Lambda (1)\) from \(0.90\) to \(0.007\). The rate is an instrument setting.
572.0.5 The record is already quantised

The trace is not a continuous current sampled finely. It is an integer array taking \(422\) distinct values over \(1.24\times 10^{5}\) samples. Requantising:

\[ \begin {array}{rrrrr} \text {bits} & \text {levels} & \text {distinct values} & \text {events} & \Lambda (1) \\ \hline 16 & 65\,536 & 422 & 6061 & 0.9035 \\ 12 & 4096 & 422 & 6061 & 0.9035 \\ 10 & 1024 & 422 & 6061 & 0.9035 \\ 8 & 256 & 185 & 6045 & 0.9033 \\ 6 & 64 & 56 & 5922 & 0.9019 \\ 4 & 16 & 16 & 7204 & 0.8745 \\ 2 & 4 & 4 & 5458 & 0.8048 \\ \end {array} \]

Reducing from \(16\) to \(10\) bits changes nothing at all, because the record occupies only \(422\) levels to begin with. It survives \(6\) bits with a \(2.3\%\) loss of events. At \(4\) bits the event count rises by \(19\%\): coarse quantisation creates sign crossings that the finer record does not contain.

The measurement is discrete before any analysis touches it. Every statement about a continuous ionic current describes an integer array of \(422\) values.

572.0.6 Where the noise floor is placed

The Johnson noise of the headstage is \(\sqrt {4k_BTB/R}\), requiring an assumed feedback resistance and bandwidth:

\[ \begin {array}{rrrr} R\,[\Omega ] & B\,[\mathrm {Hz}] & \text {noise [pA rms]} & \text {SNR} \\ \hline 10^{8} & 2000 & 0.574 & 20.2 \\ 10^{9} & 2000 & 0.181 & 63.8 \\ 10^{9} & 200 & 0.057 & 201.7 \\ 10^{10} & 200 & 0.018 & 637.7 \\ \end {array} \]
against an observed standard deviation of \(11.570\) pA. The signal-to-noise ratio of the same trace is \(20\) or \(638\) according to values that are not in the file.
572.0.7 A system that uses none of them

Take the integer array as the primitive and define

\[ \Delta _i := \mathrm {ADC}_{i+1} - \mathrm {ADC}_i , \]
integers in \([-290, 359]\) with median absolute value \(12\).
\[ \begin {array}{lll} \text {transformation of ADC} & \Delta \text { invariant} & \max |\Delta \Delta | \\ \hline \texttt {offset} +1000 & \text {yes} & 0 \\ \texttt {offset} -500 & \text {yes} & 0 \\ \texttt {offset} \text { arbitrary} & \text {yes} & 0 \\ \texttt {scale} \times 2 & \text {no} & 359 \\ \end {array} \]

\(\Delta \) is exactly invariant under every offset, so the choice of reference electrode does not enter it. Normalising by the median absolute value removes the scale, leaving a dimensionless array with \(\Lambda (1) = -0.0106\), \(\Lambda (5) = -0.0437\).

No picoampere, no reference electrode, no zero of potential is used. What remains is the second-order statistics of an integer sequence.

572.0.8 Summary
\[ \begin {array}{lll} \text {quantity} & \text {fixed by} & \text {range} \\ \hline \text {current [pA]} & \text {two header fields} & \text {mean } 59\text {--}337 \\ \text {zero of current} & \texttt {offset}, \text {varying between reads} & 6.1\ \mathrm {pA} \\ \text {potential} & \text {choice of reference} & 0.316\ \mathrm {V} \\ \text {events} & \text {filter cutoff} & 1611\text {--}6061 \\ \text {events} & \text {sampling rate} & 132\text {--}6061 \\ \text {events} & \text {bit depth} & 5458\text {--}7204 \\ \text {SNR} & \text {assumed } R, B & 20\text {--}638 \\ \end {array} \]

The array of \(1.24\times 10^{5}\) integers is the same throughout. Every quantity that would be reported — the open-pore current, the applied potential, the number of translocations, the signal-to-noise ratio — is fixed by a choice recorded outside the data or not recorded at all.

Beneath the sequence lies a current; beneath the current lies an integer array; and beneath that lies no further archive.

PIC

572.1 The Detector Frame

Every quantity in the preceding subsection — \(|F|^2\), the reflection index, the lattice — stands above a single object: an array of integers. This subsection works on that array directly.

Data. A PILATUS 6M-F frame from a deposited diffraction dataset, \(2527\times 2463\) signed 32-bit integers, of which \(8.46\%\) are negative and mark inter-module gaps in the detector rather than any property of the sample. Counts run from \(0\) to \(30\,820\).

572.1.1 What is in the file

The file contains counts and a detector geometry. It contains no reflection, no index, no space group, no cell. Those appear only after a lattice has been posited and pixels assigned to it, which is the operation that the lattice is then said to be the result of.

572.1.2 How many reflections there are

Subtracting a \(31\)-pixel median background and thresholding at multiples of the residual standard deviation:

\[ \begin {array}{lrrr} \text {threshold} & \text {signal px} & \% \text { of valid} & \text {blobs} \\ \hline 1\sigma & 6347 & 0.111 & 557 \\ 2\sigma & 3422 & 0.060 & 371 \\ 3\sigma & 2367 & 0.042 & 284 \\ 5\sigma & 1503 & 0.026 & 207 \\ 8\sigma & 962 & 0.017 & 157 \\ 12\sigma & 631 & 0.011 & 123 \\ 20\sigma & 369 & 0.006 & 94 \\ \end {array} \]
The count of reflections varies by a factor of \(5.9\) over thresholds each defensible. Merging adjacent blobs with a dilation radius \(r\) changes the median blob size from \(6\) to \(360\) pixels between \(r=0\) and \(r=8\) while leaving the blob count near \(264\): whether a spot is one reflection or several is set by the same choice.
572.1.3 Four searches for the lattice

Taking the \(284\) peak centres at \(3\sigma \) and locating periodicity by four independent methods:

\[ \begin {array}{ll} \text {Fourier of the peak map} & 122 \text { strong frequencies, minimum spacing } 53.5\ \text {px} \\ \text {difference-vector histogram} & \text {maxima at } 2,\,28,\,40,\,43,\,47,\,52,\,59,\,65\ \text {px} \\ \text {1-D projection} & \text {strongest at } 173^{\circ },\ \text {period index } 38 \\ \text {integer spacings} & \text {modal } y \text { gaps } 3,4,5;\ x \text { gaps } 3,4,5 \\ \end {array} \]
No two agree. The lattice that indexing reports is the one its search procedure selects.
572.1.4 Changing the metric

Distances between peak centres, under eight definitions:

\[ \begin {array}{lrrrr} \text {metric} & \text {median} & \text {peaks} & \text {1st} & \text {2nd/1st} \\ \hline \text {Euclidean} & 485.7 & 12 & 40.42 & 1.483 \\ L^1 & 610.5 & 11 & 62.07 & 1.387 \\ L^{\infty } & 434.0 & 13 & 29.47 & 1.966 \\ L^{0.5} & 1093.4 & 13 & 51.04 & 5.706 \\ L^4 & 448.8 & 11 & 39.17 & 1.485 \\ \log & 6.19 & 1 & 6.44 & - \\ 2\text {-adic} & 0.500 & 4 & 0.061 & 1.984 \\ \text {angular} & 0.159 & 3 & 0.011 & 7.999 \\ \end {array} \]

The ratio of the second characteristic distance to the first — the quantity that would be reported as an axial ratio — runs from \(1.387\) to \(7.999\). The logarithmic metric returns a single characteristic distance and no ratio at all. The \(2\)-adic metric, in which nearness means divisibility by a high power of two rather than smallness, returns four.

None of these is the geometry of the crystal. All are ways of counting what is in the frame.

572.1.5 Changing the transform

Projecting the peak centres onto one axis and locating periods by six methods, ordered by what each presupposes:

\[ \begin {array}{llrl} \text {method} & \text {uses} & n & \text {first periods} \\ \hline \text {FFT} & \text {complex exponentials over } \mathbb {R} & 75 & 6,13,18,20,27 \\ \text {autocorrelation} & \text {multiplication} & 37 & 14,36,38,42,53 \\ \text {Walsh--Hadamard} & \pm 1,\ \text {no multiplication} & 110 & 5,7,13,18,24 \\ \text {sign autocorrelation} & \text {sign only} & 0 & - \\ \text {rank autocorrelation} & \text {order only} & 25 & 14,18,38,42,56 \\ \text {compression} & \text {no arithmetic} & 15 & 21,28,36,42,57 \\ \end {array} \]

The intersection of the leading twenty periods from FFT, autocorrelation and Walsh–Hadamard is empty.

Two entries deserve separate comment. The sign-only autocorrelation, which retains the direction of each deviation and discards its size, finds no period whatever: the periodicity of this signal resides in the magnitudes, not in the pattern of above-and-below. The compression method, which performs no arithmetic at all and detects only that a shifted copy compresses better alongside the original, finds fifteen — sharing \(36\) and \(42\) with the autocorrelation and \(42\) with the rank version.

The Fourier transform resolves a signal into periodic functions. That it returns periods is a property of the basis.

572.1.6 Discarding the continuum

Reducing the peak coordinates modulo \(m\) and measuring the entropy of the resulting residue distribution against its maximum:

\[ \begin {array}{rrrrr} m & \text {cells occupied} & \text {of } m^2 & H\ [\text {bit}] & H/H_{\max } \\ \hline 2 & 4 & 4 & 1.985 & 0.992 \\ 3 & 9 & 9 & 3.160 & 0.997 \\ 5 & 25 & 25 & 4.595 & 0.989 \\ 7 & 49 & 49 & 5.491 & 0.978 \\ 13 & 139 & 169 & 6.956 & 0.940 \\ 32 & 253 & 1024 & 7.926 & 0.793 \\ 64 & 277 & 4096 & 8.100 & 0.675 \\ \end {array} \]

Under the small moduli the residues are almost uniform: at \(m \le 7\) the occupancy is complete and the entropy within \(2\%\) of maximal. Structure first appears at \(m = 32\) and is pronounced at \(m = 64\).

No real number, no metric and no transform is used here. The description is of a distribution over \((\mathbb {Z}/m\mathbb {Z})^2\), and it locates the scale at which the arrangement ceases to be uniform.

572.1.7 Discarding number

Sorting the peaks by one coordinate and reading the other as a permutation: local inversions number \(6270\) of \(13\,916\) possible, a rate of \(0.451\); monotone runs number \(127\) against \(142\) expected for a random permutation.

Neither value nor position is used — only order. The arrangement is distinguishable from random by a combinatorial statistic alone.

572.1.8 Summary
\[ \begin {array}{ll} \text {in the file} & 2527 \times 2463 \text { integers, and a detector geometry} \\ \text {supplied} & \text {background model, threshold, merge radius, search} \\ & \text {method, metric, transform, number system} \\ \end {array} \]

Each supplied element has a range. The reflection count spans a factor of \(5.9\); the axial ratio spans \(1.387\) to \(7.999\); the period sets from three standard transforms do not intersect. Above these choices sit \(|F|^2\), the electron density, the atomic coordinates and the structure. Below them sits an array of integers, which does not change when any of the choices does.

PIC

572.2 Two Replacement Formats

The preceding subsections show that the alphabet, the pairing rule and the bond count are verdicts rather than measurements. They were nonetheless carried out using FASTA and PDB files, in which those verdicts are already recorded: FASTA is a string over four characters, and a PDB file contains residue names, element symbols and CONECT records. Reading either imports the classification one is trying to examine.

This subsection defines two binary formats that do not, writes them from raw measurement, and checks what survives.

572.2.1 .xi — replacing FASTA
.xi   binary, little-endian
  magic   4B   'XI01'
  scale   f8   self-scale sigma, computed from the trace
  origin  f8   self-origin mu
  n       u4   number of atoms
  atoms   n x (f4 M, u2 L)

The scale is the interquartile range of the current trace and the origin its median; both are computed from the trace and stored so that the file is self-describing. Atoms are the intervals between sign changes of the scaled trace, and each is recorded as signed area \(M\) and duration \(L\). There is no header string, no alphabet and no direction marker.

Written from ten POD5 traces:

\[ \begin {array}{lrrrr} \text {file} & \text {atoms} & \text {bytes} & \text {gzip} & \text {vs raw float32} \\ \hline \texttt {t00} & 8435 & 50\,634 & 29\,620 & 9.8\times \\ \texttt {t02} & 24\,707 & 148\,266 & 76\,972 & 9.1\times \\ \texttt {t04} & 29\,107 & 174\,666 & 97\,602 & 11.6\times \\ \texttt {t07} & 642 & 3876 & 2738 & 10.2\times \\ \end {array} \]
Round trip on t00 returns \(\sigma = 18.0765\), \(\mu = 62.4781\), \(8435\) atoms.
572.2.2 .om — replacing PDB
.om   binary, little-endian
  magic   4B   'OM01'
  n       u4   number of sites
  cell    6 x f4   bounding box, measured from the sites
  sites   n x (f4 x, f4 y, f4 z, f4 w)

\(w\) is a scattering weight. Bonds are not stored: a bond is a verdict about a distance, and storing it would fix in the file the choice this work is examining. Residue names, chain identifiers, occupancies, B-factors, CONECT records and SEQRES are all absent.

\[ \begin {array}{lrrrr} \text {source} & \text {sites} & \texttt {.om}\ \text {bytes} & \text {PDB bytes} & \text {ratio} \\ \hline \text {1BNA} & 566 & 9088 & 76\,464 & 8.41 \\ \text {4TNA} & 1656 & 26\,528 & 208\,170 & 7.85 \\ \text {1UBQ} & 660 & 10\,592 & 78\,570 & 7.42 \\ \end {array} \]
Round trip on 1BNA returns \(566\) sites, box \(25.9\times 28.4\times 42.5\) Å, \(w \in [6,15]\).
572.2.3 What was discarded

From the 1BNA PDB file, .om drops five residue names (DC\(\times 8\), DG\(\times 8\), DA\(\times 4\), DT\(\times 4\), HOH\(\times 80\)) and four element symbols (O, C, N, P, retained only as \(Z\)), together with chain identifiers, residue numbers, occupancies, B-factors and CONECT records.

It also drops SEQRES, which is where the four-character alphabet enters a structure file.

From FASTA, .xi drops the four characters, the header string and the \(5'\!\to \!3'\) direction marker.

572.2.4 What is recoverable from the new formats

Conjugate balance. The analogue of Chargaff’s first rule is \(\Sigma M / \Sigma |M| \approx 0\), computed within a single file:

\[ \begin {array}{lrr} \text {file} & \Sigma M/\Sigma |M| & \#^{+}/\#^{-} \\ \hline \texttt {t00} & +0.0331 & 1.189 \\ \texttt {t01} & -0.0412 & 1.223 \\ \texttt {t02} & -0.0923 & 1.142 \\ \texttt {t04} & -0.0159 & 1.140 \\ \texttt {t05} & +0.0319 & 1.160 \\ \end {array} \]
The balance holds to within \(10\%\) in every file. It is a property of one trace, obtained without assuming two strands: Chargaff’s rule, in this formulation, does not require a partner.

The counts \(\#^{+}/\#^{-}\) sit near \(1.16\) rather than \(1.00\) — the conjugate-positive atoms are fewer but individually larger. Balance in mass and balance in count are different statements, and the four-character formulation conflates them by construction.

Contacts. The analogue of bond count, computed from .om as pairs within a distance window:

\[ \begin {array}{lrrr} & [1.2,1.7] & [2.6,3.2] & [3.0,3.6] \\ \hline \text {1BNA} & 0.96 & 0.77 & 1.39 \\ \text {4TNA} & 1.11 & 0.87 & 1.57 \\ \text {1UBQ} & 0.92 & 0.89 & 1.21 \\ \end {array} \]
per site. The nucleic acid structures and the protein are not separated by these figures: 1UBQ, which has no base pairs, returns \(0.89\) contacts per site in the window conventionally read as hydrogen bonding, against \(0.77\) for 1BNA.

Helicity. Fitting a principal axis and unwrapping the azimuthal angle along it:

\[ \begin {array}{lrr} & \text {pitch [\AA ]} & \text {axis variance} \\ \hline \text {1BNA} & 18.1 & 0.733 \\ \text {4TNA} & 3.1 & 0.697 \\ \text {1UBQ} & 9.4 & 0.491 \\ \end {array} \]
The value for 1BNA is \(18.1\) Å, not \(34\) Å. The dodecamer spans roughly half a turn, so the periodicity is not present in the coordinates and the fitted slope reports the partial rotation. The canonical figure does not follow from this structure.

Distance. Total variation between \(M\)-histograms of two .xi files ranges from \(0.079\) to \(0.177\) across the six traces compared, with no pair identical and none beyond \(0.18\).

572.2.5 Correspondence
\[ \begin {array}{ll} \textsc {fasta / pdb} & \Xi \ /\ \Omega \\ \hline \text {header, SEQRES} & \text {none} \\ \text {A C G T} & (M,L) \in \mathbb {R}\times \mathbb {N} \\ \text {complement A--T, G--C} & \sigma (M,L)=(-M,L),\ \text {fixed points} \neq \emptyset \\ \text {Chargaff } A{=}T,\ G{=}C & \Sigma M/\Sigma |M| \approx 0,\ \text {one trace} \\ \text {residue name, chain} & \text {none} \\ \text {element symbol} & w = \text {scattering weight} \\ \text {CONECT, bond order} & \text {not stored} \\ \text {2 or 3 hydrogen bonds} & \text {contacts in } [\ell ,h],\ \text {count} = f(\text {window}) \\ \text {base pair} & \text {not stored} \\ \end {array} \]

Neither format stores a verdict. What is stored is a scale and a set of values; whether two sites are bonded, whether two atoms are conjugate, and how many types there are is decided by whoever reads the file, with the threshold visible in the reading rather than buried in the writing.

The existence of the involution \(\sigma \) with a non-empty fixed-point set is the structural difference from the four-character system. A four-letter alphabet with Watson–Crick pairing has no self-conjugate element; here the fraction of fixed points runs from \(1.98\%\) to \(56.47\%\) as the tolerance is varied, and zero is one choice of tolerance among many.

PIC

[0] a living thing
      |  homogenise, extract, fractionate
      v
[2] precipitate ---------------+-------------------+
                               |                   |
                  (diffraction |                   | (sequence
                      branch)  |                   |  branch)
                               v                   v
                 film blackening / pixels    fluorescence / current
                               |                   |
                               v                   v
                 reflection position,        numerical array
                 intensity                         |
                               |                   v
                               v             basecaller
                 phases <- MODEL ASSUMED     <- REFERENCE-TRAINED
                               |                   |
                               v                   v
                 electron density              ACGT
                               |                   |
                               v                   v
                 peaks -> element -> residue    FASTA
                               |                   |
                               v                   v
                 double helix, pairing rule --> four-symbol system
                               ^                   |
                               |                   |
                               +-------------------+
                                returns as the molecular-replacement model
                               |
                               v
                             PDB
                               |
                               |  deposits COORDINATES, not phases
                               |  structure factors optional;
                               |     ~ raw images almost never
                               |  phases were never measured --
                               |     they came from a prior PDB entry
                               |
                               +-----> next structure's MR model
                                          ^
                                          |
                                          +-- CIRCULAR: the archive
                                              supplies the phases
                                              it was built from

PDB has no phases either.

The deposition is a coordinate set. Structure factors are optional; raw diffraction images are almost never included. The phases that produced those coordinates were not measured — they were supplied by molecular replacement from an earlier PDB entry, whose phases came from an earlier one still.

The archive is the phasing model for the archive.