633 Molecular Biology Without an Alphabet

The previous subsection showed that relabelling \(\{A,C,G,T\}\) leaves alignment and assembly untouched. This one removes the letters entirely. Every operation below is computed on the continuous four-vector the instrument actually produces, and no symbol is formed at any stage.

633.0.1 One kernel and one involution

For two positions represented as probability vectors \(p,q\) on four channels, define

\begin{equation} \kappa (p,q) \;=\; \sum _{i} p_i q_i , \qquad \mathrm {score}(p,q) \;=\; 2\kappa (p,q) - 1 . \tag{24444}\end{equation}
When \(p\) and \(q\) are one-hot, \(\kappa \) is the indicator \(\mathbb {1}[p=q]\) and the score is \(+1\) for a match and \(-1\) for a mismatch — the standard substitution scheme. The alphabet is therefore a degenerate case of the kernel, not a prerequisite for it. Verified numerically on a \(220\)-position pair carrying \(26\) substitutions:

Needleman–Wunsch over a four-letter alphabet \(169.0000\)
Needleman–Wunsch over the kernel, no alphabet \(169.0000\)

Complementation is a linear map on the channel axis: the permutation matrix \(\Sigma \) exchanging channels \(1\!\leftrightarrow \!4\) and \(2\!\leftrightarrow \!3\).

Property Value
\(\Sigma ^2 = I\) true
\(\mathrm {diag}(\Sigma ) = 0\) (no fixed point) true
\(\det \Sigma \) \(+1\)
eigenvalues \((-1,-1,+1,+1)\)
\(\mathrm {rc}(\mathrm {rc}(X)) = X\) on continuous data true

Two eigenvalues \(+1\) and two \(-1\) is the exact spectrum of a fixed-point-free involution on four coordinates, and \(\det = +1\) because \((14)(23)\) is an even permutation. Reverse-complementation acts on the raw signal; it never needs a letter.

633.0.2 Alignment on released traces

Applied to the three ABI traces, first \(260\) peak positions, scored per position so the numbers are comparable:

File peakedness self rev. compl. shuffled
310.ab1 \(0.6748\) \(0.350\) \(-0.416\) \(-0.459\)
3100.ab1 \(0.8626\) \(0.725\) \(-0.307\) \(-0.223\)
3730.ab1 \(0.9386\) \(0.877\) \(-0.236\) \(-0.192\)

Peakedness is \(\overline {\kappa (p,p)}\); a one-hot vector would give \(1.000\). The self-score per position is bounded above by \(2\,\overline {\kappa (p,p)}-1\), and in each case attains it. The ordering \(0.675 < 0.863 < 0.939\) follows the instrument generation: the newer the capillary sequencer, the closer its processed trace is to a one-hot vector — which is to say, the closer the signal already is to the alphabet before any letter is written.

633.0.3 Variant calling

Using the scale-free distance \(d = 1 - \kappa (p,q)\,/\sqrt {\kappa (p,p)\kappa (q,q)}\), so that identical vectors give exactly zero:

threshold called TP FP FN precision recall
\(10^{-9}\) \(28\) \(28\) \(0\) \(0\) \(1.000\) \(1.000\)
\(0.05\) \(25\) \(25\) \(0\) \(3\) \(1.000\) \(0.893\)
\(0.20\) \(24\) \(24\) \(0\) \(4\) \(1.000\) \(0.857\)
\(0.50\) \(19\) \(19\) \(0\) \(9\) \(1.000\) \(0.679\)

The maximum distance at a non-variant position is \(0.00\times 10^{0}\) — exactly zero, not approximately. Precision is \(1.000\) at every threshold; only recall trades. A variant is a distance above a cut, and the cut is the only declaration in the procedure.

633.0.4 De novo assembly

Sixteen fragments of \(150\) positions were cut from a \(1000\)-position signal at step \(55\), shuffled, and reassembled by maximising \(\sum \mathrm {score}\) over suffix–prefix overlaps. No \(k\)-mers, no hashing, no symbols.

True adjacencies, mean overlap score \(30.56\)
minimum \(19.37\)
Non-adjacent pairs, mean \(-10.49\)
maximum \(18.67\)
Separated (\(\min _{\text {true}} > \max _{\text {false}}\)) yes
Overlap lengths recovered exactly \(15/15\)
Adjacent pairs correct \(15/15\)
Exact reconstruction of the order yes
Rank correlation with truth \(+1.0000\)

The recovered overlap lengths are the true ones at every junction — \(98\), \(89\), \(101\), \(90\), \(98\), \(86\), \(98\), \(100\), \(87\), \(103\), \(89\), \(99\), \(100\), \(85\), \(96\). The two score distributions do not touch.

633.0.5 Phylogeny

Six leaves were evolved along a known topology with three cherries, rendered at \(10\%\) per-position error, and trees built by neighbour joining from two distance matrices: the kernel distance above, and the ordinary \(p\)-distance after discretising by argmax.

continuous (no letters) discretised (letters)
true cherries recovered \(3/3\) \(3/3\)

The two distance matrices correlate at \(r = +0.999998\), and the Robinson–Foulds distance between the resulting trees is \(2\) — a single split near the root, with every true cherry recovered by both. Introducing an alphabet changed neither the topology that matters nor the distances it was built from.

633.0.6 What the pipeline actually requires

Operation Expressed in the kernel
alignment \(\arg \max \) over paths of \(\sum \mathrm {score}\)
complementation \(X \mapsto \mathrm {reverse}(X\Sigma )\)
variant calling \(1 - \kappa /\sqrt {\kappa _{pp}\kappa _{qq}}\) above a cut
assembly greedy on suffix–prefix \(\sum \mathrm {score}\)
phylogeny \(D = \) mean of that distance, then neighbour joining

Five operations, one kernel, one involution. Setting the vectors to one-hot recovers the four-letter case exactly. Nothing in the list requires a symbol to exist, and the one thing that is irreducible — \(\Sigma \), with \(\Sigma ^2 = I\) and no fixed point — is a property of the pairing, not of the names \(A\), \(C\), \(G\) and \(T\).

The letters are removable. What they were carrying was two bits and a negation, and the pipeline below them never consulted the names at all.

Data and source availability

Two kinds of input are used in §633, and they are kept separate throughout.

Measured

Three ABI .ab1 traces from the Biopython test corpus, one per instrument generation. The vendor-processed channels DATA9–12 are read at the peak positions given in PLOC1 and normalised so each row sums to one, giving a continuous four-vector per position. No base call is formed at any stage; the released PBAS1 string is not read.

File positions used peakedness \(\overline {\kappa (p,p)}\) self-score / position
310.ab1 \(260\) \(0.6748\) \(0.350\)
3100.ab1 \(260\) \(0.8626\) \(0.725\)
3730.ab1 \(260\) \(0.9386\) \(0.877\)
Synthetic

The kernel identity, variant calling, assembly and phylogeny require a known ground truth, so each is generated with a fixed seed (numpy.random.default_rng(7)).

Panel Construction Ground truth
kernel identity \(220\) positions, \(12\%\) substitution rate \(26\) substitutions
variant calling \(400\) positions, Dirichlet\((0.25)\) \(28\) variant sites
assembly \(1000\) positions; \(16\) fragments, fragment order, and
length \(150\), step \(55\), shuffled \(15\) overlap lengths
phylogeny \(6\) leaves, \(800\) sites, three cherries, the three cherries
\(10\%\) per-position rendering error

Substitutions are drawn as \((x + u) \bmod 4\) with \(u \in \{1,2,3\}\), so every declared substitution changes the underlying value. The rendering step maps a value \(v\) to the vector \((1-e)\,\mathbf {e}_v + \tfrac {e}{3}(\mathbf {1} - \mathbf {e}_v)\) with \(e = 0.10\), multiplied by uniform jitter on \([0.85, 1.15]\) and renormalised — an idealised model of what a detector delivers, used only where a known answer is needed to score the alphabet-free procedure against.

The ABIF parser is written against the format specification and reads the tag directory directly. The only primitives used downstream are \(\kappa (p,q) = \sum _i p_i q_i\) and the permutation matrix \(\Sigma \).

pict

Figure 829: Molecular biology computed without an alphabet. (a) The kernel \(\kappa (p,q)=\sum _i p_iq_i\) evaluated on one-hot vectors is the identity matrix — exactly the classical match/mismatch scheme. Needleman–Wunsch over a four-letter alphabet and over the kernel return the same score to four decimal places on a \(220\)-position pair carrying \(26\) substitutions. (b) Complementation as the permutation matrix \(\Sigma \) acting on the channel axis: an involution with no fixed point, two eigenvalues \(+1\) and two \(-1\), and \(\det =+1\) because \((14)(23)\) is even. It acts on the raw signal and never needs a letter. (c) The three released ABI traces, first \(260\) peak positions, scored per position. Self-alignment attains its upper bound \(2\overline {\kappa (p,p)}-1\) in each case; shuffled controls are negative. Peakedness orders by instrument generation, so the newer capillary sequencer delivers a signal already closer to one-hot before any letter is written. (d) Variant calling as a scale-free distance. Every non-variant position returns exactly zero, so precision is \(1.000\) at every threshold and only recall trades. (e) De novo assembly by continuous suffix–prefix overlap, with no \(k\)-mers and no hashing. The score distributions for true adjacencies and non-adjacent pairs do not touch. Inset: the recovered overlap length equals the true length at all fifteen junctions, and the fragment order is reconstructed exactly. (f) Distance matrices for six leaves under a known topology, computed with and without letters. They correlate at \(r=+0.999998\) and both neighbour-joining trees recover all three true cherries; the topologies differ by a single split near the root. Introducing an alphabet changed nothing that the tree depends on.

633.1 Changing Mathematics

The previous subsection removed the alphabet but kept the mathematics. It still assumed real-valued vectors on a simplex, a bilinear similarity, a total order on positions, an Archimedean metric, and classical logic. This subsection replaces each of those in turn. None of the replacements is an approximation to the standard pipeline; the standard pipeline is one point in the space they span, reached by five independent choices that the data does not make.

633.1.1 Alignment is a matrix product

The Needleman–Wunsch recursion \(D_{ij} = \max (D_{i-1,j-1}+s_{ij},\, D_{i-1,j}+g,\, D_{i,j-1}+g)\) is the path-sum over the edit graph in the tropical semiring \((\mathbb {R}\cup \{-\infty \},\max ,+)\), where \(\max \) plays the role of addition and \(+\) that of multiplication. Computing the same quantity two ways — once by the textbook recursion, once by repeated tropical relaxation of the weighted adjacency matrix with no recursion at all:

Needleman–Wunsch, textbook recursion \(-4.0000\)
\((\max ,+)\) matrix product over the edit DAG \(-4.0000\)

Alignment is not an algorithm that happens to work. It is linear algebra over a semiring whose addition has no inverse. Calling it “dynamic programming” names the implementation, not the object.

633.1.2 \(\mathbb {Q}_p\) instead of \(\mathbb {R}\)

Encode a sequence over four symbols as a \(p\)-adic integer, \(p=5\). The \(p\)-adic absolute value \(|x-y|_p = p^{-v}\), where \(v\) is the index of the first disagreement, is an ultrametric: it satisfies the strong triangle inequality \(d(x,z) \le \max \bigl (d(x,y), d(y,z)\bigr )\).

On eight taxa evolved along a known topology:

Metric strong triangle violated four-point condition violated
\(p\)-distance over \(\mathbb {R}\) \(108/336\) \(62/70\)
\(p\)-adic \(|\cdot |_5\) \(0/336\) \(0/70\)

The four-point condition is the exact criterion for a distance to be realisable on a tree. Under the standard \(p\)-distance it fails in \(62\) of \(70\) quadruples — \(89\%\) — and phylogeny proceeds anyway by fitting a tree to a distance that provably is not one. Under \(|\cdot |_5\) it never fails, because every ultrametric embeds exactly into a rooted tree.

This is not a discovery about the data; the \(p\)-adic metric is ultrametric by construction. It is a statement about what the standard choice costs. A molecular clock is exactly the assumption of ultrametricity, and it is imposed on a metric that does not have it, rather than adopted as the geometry.

The price is real and should be stated: in \(\mathbb {Q}_p\) only the position of the first disagreement matters. Two sequences agreeing on a long prefix are close however they differ afterwards. That is a different biology, not a better approximation to the same one.

633.1.3 Density matrices: what the unmixing step actually does

Take the four channel intensities at each sample, form amplitudes \(\psi = \sqrt {I}\), and build the channel density matrix \(\rho = \overline {\psi \psi ^{\dagger }}\), normalised to unit trace. The classical kernel of §633 is \(\mathrm {Tr}(\rho \sigma )\) restricted to diagonal \(\rho \). Computed on the three ABI files, before and after the vendor processing:

File stage \(\mathrm {Tr}(\rho ^2)\) off-diagonal \(S_{\mathrm {vN}}\) \(\max |\mathrm {corr}|\)
310.ab1 raw \(0.9985\) \(0.8595\) \(0.0099\) \(0.9288\)
processed \(0.3617\) \(0.3332\) \(1.7248\) \(0.0780\)
3100.ab1 raw \(0.4525\) \(0.4464\) \(1.5103\) \(0.2437\)
processed \(0.3473\) \(0.3078\) \(1.7573\) \(0.2537\)
3730.ab1 raw \(0.3771\) \(0.3109\) \(1.6869\) \(0.2367\)
processed \(0.2904\) \(0.1496\) \(1.8877\) \(0.2889\)

Purity ranges from \(0.25\) (maximally mixed) to \(1\) (pure); von Neumann entropy from \(0\) to \(2\) bits. The raw 310 state has purity \(0.9985\) and entropy \(0.0099\) bits: it is almost exactly rank one. The four channels are not four measurements but one, which is why that file yields no \(C\) and no \(G\) before processing and why its inter-channel correlation is \(0.9288\).

After processing the same state has purity \(0.3617\) and entropy \(1.7248\) bits. The operation that separates the channels is entropy-increasing, and it is entropy-increasing in every file tested:

File \(S_{\mathrm {vN}}\) raw processed change
310.ab1 \(0.0099\) \(1.7248\) \(+1.7149\)
3100.ab1 \(1.5103\) \(1.7573\) \(+0.2470\)
3730.ab1 \(1.6869\) \(1.8877\) \(+0.2008\)

In the classical description this step is called removing crosstalk. In the density-matrix description it is the declaration of a basis and the discarding of everything off it, and the off-diagonal norm falls accordingly. The claim here is formal, not physical: the amplitudes are constructed as \(\sqrt {I}\) rather than measured, and no phase is recorded anywhere in the file. What is exact is the accounting — the standard pipeline reduces a nearly pure channel state to a nearly mixed one, and the kernel of §633 is valid only after that reduction has been performed.

633.1.4 Dropping the total order

A sequence is a chain: positions carry a total order, and a read is aligned to one string. Replacing the chain by a partial order — a variation graph — on nine nodes admits eight distinct source-to-sink paths where a chain admits one, and a read is aligned to the graph rather than to a designated member of it.

Distinct paths through a \(9\)-node variation graph \(8\)
Distinct paths through a chain of the same length \(1\)

Reference bias — the systematic preference for the allele present in the reference — is a consequence of aligning to a chain. It is a property of the order chosen for the positions, not of the molecules.

633.1.5 Dropping excluded middle

Classical variant calling places one cut and asserts a value at every site. A three-valued scheme places two cuts and declines to assert between them. On \(300\) sites carrying \(24\) true differences:

sites of which correct
asserted variant \(16\) \(16\)
asserted non-variant \(278\) \(276\)
declined \(6\) —
errors among assertions \(2\)

The classical procedure would have made all six of the declined calls as well. Dropping excluded middle does not lose information; it stops the procedure from manufacturing it at sites where the measurement does not distinguish the alternatives.

633.1.6 Five independent choices

System Replaces Consequence
tropical semiring “dynamic programming” alignment is a matrix product
\(\mathbb {Q}_p\) \(\mathbb {R}\), Archimedean metric trees fit exactly, \(0/70\)
density matrix simplex, declared basis unmixing raises \(S_{\mathrm {vN}}\)
poset total order on positions no reference bias
three-valued logic excluded middle no forced call

Each replacement is independent of the others, and each returns the standard pipeline as a special case: diagonal \(\rho \), a chain rather than a poset, one cut rather than two, \(\mathbb {R}\) rather than \(\mathbb {Q}_p\), and the recursion rather than the product. The standard pipeline is a point, not a ground. Nothing in the detector output selects it, and the five choices were made at different times by different people for reasons of tractability that the files do not record.

pict

Figure 830: Five independent replacements of the mathematics, each returning the standard pipeline as a special case. (a) The Needleman–Wunsch score obtained without recursion, by repeated tropical relaxation \(v \leftarrow v \otimes W\) of the weighted adjacency matrix of the edit graph in \((\mathbb {R}\cup \{-\infty \},\max ,+)\). The fixed point equals the textbook recursion exactly. Alignment is linear algebra over a semiring whose addition has no inverse. (b) The four-point condition on all \(70\) quadruples of eight taxa: a distance is realisable on a tree precisely when the two largest quadruple sums are equal, that is, when the point lies on the diagonal. The standard \(p\)-distance violates this in \(62\) of \(70\) cases; the \(p\)-adic absolute value \(|\cdot |_5\) in none, because every ultrametric embeds exactly into a rooted tree. A molecular clock is the assumption of ultrametricity, imposed on a metric that does not possess it. (c) Channel density matrices before and after the vendor processing, as purity against von Neumann entropy. Open markers are raw, filled are processed, arrows join the two. Entropy increases in every file. The raw 310 state has purity \(0.9985\) and entropy \(0.0099\) bits — almost exactly rank one, which is why that file yields no \(C\) and no \(G\) before processing. (d) The modulus of that density matrix for 310.ab1. The step that separates the channels is the declaration of a basis and the removal of everything off it. (e) Positions as a partial order rather than a chain. Nine nodes admit eight source-to-sink paths; a chain admits one. Reference bias follows from aligning to a chain, not from the molecules. (f) Variant calling with two cuts instead of one. Six sites fall between them and no assertion is made. The classical procedure makes those calls as well, and excluded middle is what requires it to.