An aligner does not read symbols. It reads a real matrix \(S\), where \(S_{ij}\) is the value of placing position \(i\) of one object against position \(j\) of another, and returns the highest-scoring path. Symbols, an alphabet and a match/mismatch rule are one way of generating \(S\). This subsection replaces them with the continuous signal the instrument recorded, and finds that the outcome is set by the choice of \(S\) rather than by the objects.
Each position of a read is the four-channel intensity vector at a peak, normalised to sum to one: a point in a continuum, not a member of a set. No call is made and no symbol is assigned.
| file | positions | vector dimension |
| 310 | \(868\) | \(4\) |
| 3100 | \(794\) | \(4\) |
| 3730 | \(1164\) | \(4\) |
| A6_1-DB3 | \(838\) | \(4\) |
The vector dimension is the number of virtual filters the instrument wrote to disk. The spectral bins behind them are not in the file (§634).
A scoring matrix generated from \(k\) symbols has rank at most \(k\). Computing the rank of both constructions on the same positions:
| pair | rank, symbolic | rank, continuous | eff. rank, sym | eff. rank, cont |
| 310 / 3100 | \(4\) | \(4\) | \(3.981\) | \(3.717\) |
| 310 / 3730 | \(4\) | \(4\) | \(3.915\) | \(3.738\) |
| 310 / A6_1 | \(4\) | \(4\) | \(3.976\) | \(3.748\) |
| 3100 / 3730 | \(4\) | \(4\) | \(3.921\) | \(3.897\) |
| 3100 / A6_1 | \(4\) | \(4\) | \(3.982\) | \(3.935\) |
| 3730 / A6_1 | \(4\) | \(4\) | \(3.916\) | \(3.951\) |
Both are four. Neither bound is chemical and neither requires an alphabet: both follow from the number of channels stored. The cardinality of the alphabet and the rank of the comparison are the same number, and it is an instrument setting.
Holding the positions and the vectors fixed and varying only the function used to compare them:
| similarity | rank | effective rank |
| rank-1 part of the quantised matrix | \(1\) | \(1.000\) |
| inner product | \(4\) | \(3.717\) |
| quantised to four symbols | \(4\) | \(3.981\) |
| squared | \(10\) | \(4.437\) |
| sign | \(13\) | \(1.681\) |
| cubed | \(20\) | \(4.857\) |
| \(\exp (-d^2/2\sigma ^2)\), \(\sigma = 1.0\) | \(54\) | \(2.158\) |
| \(\exp (-d^2/2\sigma ^2)\), \(\sigma = 0.3\) | \(183\) | \(6.549\) |
| \(\exp (-d^2/2\sigma ^2)\), \(\sigma = 0.1\) | \(\mathbf {295}\) | \(10.896\) |
The same data admits ranks from one to \(295\). Four is one entry in this list.
Aligning one pair of reads, \(700 \times 700\) positions, under each:
| similarity | aligned | gaps | path length |
| constant | \(700\) | \(0\) | \(700\) |
| sign | \(697\) | \(6\) | \(703\) |
| \(\exp \), \(\sigma =1.0\) | \(684\) | \(32\) | \(716\) |
| inner product | \(601\) | \(198\) | \(799\) |
| squared | \(575\) | \(250\) | \(825\) |
| cubed | \(553\) | \(294\) | \(847\) |
| rank-1 part | \(540\) | \(320\) | \(860\) |
| random | \(539\) | \(322\) | \(861\) |
| quantised to four symbols | \(521\) | \(358\) | \(879\) |
| \(\exp \), \(\sigma =0.3\) | \(512\) | \(376\) | \(888\) |
| \(\exp \), \(\sigma =0.1\) | \(396\) | \(608\) | \(1004\) |
Everything from all \(700\) positions aligned to \(396\) of them, on one pair of reads. Quantising to four symbols aligns \(521\); a random matrix aligns \(539\).
Overlap of each path with the one obtained from the inner product:
| similarity | shared positions | Jaccard |
| inner product | \(601\) | \(1.0000\) |
| squared | \(416\) | \(0.5474\) |
| cubed | \(157\) | \(0.1575\) |
| quantised to four symbols | \(102\) | \(0.1000\) |
| rank-1 part | \(65\) | \(0.0604\) |
| \(\exp \), \(\sigma =0.3\) | \(50\) | \(0.0470\) |
| \(\exp \), \(\sigma =1.0\) | \(50\) | \(0.0405\) |
| sign | \(31\) | \(0.0245\) |
| random | \(16\) | \(0.0142\) |
| \(\exp \), \(\sigma =0.1\) | \(8\) | \(0.0081\) |
| constant | \(5\) | \(0.0039\) |
The quantised alignment shares one tenth of its aligned positions with the continuous one, which is closer to the agreement a random matrix achieves than to identity.
Along the continuous path the cost is a real number per aligned position. Its histogram over \(601\) positions, in thirty bins:
| minimum | \(0.0000\) |
| median | \(0.8239\) |
| maximum | \(1.0000\) |
| empty bins | \(\mathbf {0 \text { of } 30}\) |
There is no gap in the distribution. “Same” and “different” are not two populations; they are two sides of a line drawn on one, exactly as for the contact distances of §658.
The number of differences is therefore a quantile:
| threshold | called different | fraction |
| \(0.0003\) | \(6\) | \(0.0100\) |
| \(0.0120\) | \(30\) | \(0.0499\) |
| \(0.0231\) | \(60\) | \(0.0998\) |
| \(0.2794\) | \(150\) | \(0.2496\) |
| \(0.8239\) | \(300\) | \(0.4992\) |
| \(0.9756\) | \(450\) | \(0.7488\) |
| \(0.9977\) | \(540\) | \(0.8985\) |
Any count between zero and all of them is one threshold away, and the threshold is not supplied by the measurement.
| classical | status here | measured |
| a symbol at a position | a vector in a continuum | dimension \(4\), an instrument setting |
| an alphabet of size four | \(\operatorname {rank}(S) \le 4\) | rank ranges \(1\) to \(295\) |
| match / mismatch | a real number | \(0\) empty bins of \(30\) |
| a variant | a quantile of that number | any count attainable |
| the alignment | the argmax path of a chosen \(S\) | aligned \(396\) to \(700\) |
| “the” alignment | one of many | Jaccard \(0.0039\) to \(1.0\) |
Every alignment reported above is the exact optimum of its own objective. None approximates another and none is in error. What varies is not the accuracy of a computation but which computation was requested, and that is an argument supplied before the data is read.
Eight similarities against eight gap penalties, on \(500 \times 500\) positions:
| similarity | rank | aligned, min | aligned, max | fraction range | mean cost range |
| sign | \(13\) | \(499\) | \(500\) | \(0.998\)–\(1.000\) | \(0.339\)–\(0.342\) |
| \(\exp \), \(\sigma =1.0\) | \(51\) | \(467\) | \(497\) | \(0.934\)–\(0.994\) | \(0.392\)–\(0.543\) |
| inner product | \(4\) | \(382\) | \(484\) | \(0.764\)–\(0.968\) | \(0.481\)–\(0.742\) |
| squared | \(10\) | \(337\) | \(478\) | \(0.674\)–\(0.956\) | \(0.505\)–\(0.819\) |
| cubed | \(20\) | \(322\) | \(476\) | \(0.644\)–\(0.952\) | \(0.506\)–\(0.840\) |
| quantised to four symbols | \(4\) | \(283\) | \(488\) | \(0.566\)–\(0.976\) | \(0.436\)–\(0.897\) |
| \(\exp \), \(\sigma =0.3\) | \(137\) | \(294\) | \(465\) | \(0.588\)–\(0.930\) | \(0.536\)–\(0.874\) |
| \(\exp \), \(\sigma =0.1\) | \(210\) | \(245\) | \(422\) | \(0.490\)–\(0.844\) | \(0.566\)–\(0.812\) |
| all | \(4\)–\(210\) | \(245\) | \(500\) | \(\mathbf {0.490}\)–\(\mathbf {1.000}\) | \(\mathbf {0.339}\)–\(\mathbf {0.897}\) |
The two extremes, on the same two reads:
| aligned | gaps | fraction | |
| sign, gap \(-1.50\) | \(500 / 500\) | \(0\) | \(1.0000\) |
| \(\exp \) with \(\sigma =0.1\), gap \(-0.02\) | \(245 / 500\) | \(510\) | \(0.4900\) |
One objective aligns every position with no gap at all. Another leaves more than half unaligned and opens \(510\) gaps. Neither is approximate.
The quantised row is worth noting separately: it returns \(283\) aligned positions for every gap penalty from \(-0.02\) to \(-0.40\), then jumps. A \(\pm 1\) matrix is insensitive to the gap penalty over a range and then steps, so the classical objective does not vary continuously with its own parameter.
Reversing the order: a target is stated, and a member of the family attaining it is retrieved.
| requested fraction | similarity | gap | achieved | error |
| \(0.20\) | \(\exp \), \(\sigma =0.1\) | \(-0.02\) | \(0.4900\) | \(0.2900\) |
| \(0.35\) | \(\exp \), \(\sigma =0.1\) | \(-0.02\) | \(0.4900\) | \(0.1400\) |
| \(0.50\) | \(\exp \), \(\sigma =0.1\) | \(-0.05\) | \(0.4980\) | \(\mathbf {0.0020}\) |
| \(0.65\) | cubed | \(-0.05\) | \(0.6460\) | \(\mathbf {0.0040}\) |
| \(0.80\) | squared | \(-0.40\) | \(0.8060\) | \(\mathbf {0.0060}\) |
| \(0.90\) | cubed | \(-1.50\) | \(0.8960\) | \(\mathbf {0.0040}\) |
| \(0.95\) | inner product | \(-1.50\) | \(0.9500\) | \(\mathbf {0.0000}\) |
| \(1.00\) | sign | \(-1.50\) | \(1.0000\) | \(\mathbf {0.0000}\) |
Every target inside the attainable interval \([0.49, 1.00]\) is met to within \(0.006\); the two that fail lie below the floor of the family searched, and a wider family would reach them.
The same for the mean cost along the path:
| requested mean cost | similarity | gap | achieved | error |
| \(0.30\) | sign | \(-1.50\) | \(0.3386\) | \(0.0386\) |
| \(0.45\) | quantised | \(-3.00\) | \(0.4358\) | \(0.0142\) |
| \(0.60\) | cubed | \(-1.50\) | \(0.5867\) | \(0.0133\) |
| \(0.75\) | squared | \(-0.10\) | \(0.7512\) | \(0.0012\) |
| \(0.85\) | cubed | \(-0.02\) | \(0.8399\) | \(0.0101\) |
| \(0.95\) | quantised | \(-0.02\) | \(0.8972\) | \(0.0528\) |
Along one path the cost takes \(426\) values, distributed over thirty bins with none empty. Requesting a count and solving for the threshold:
| requested count | threshold | achieved |
| \(0\) | \(0.0000\) | \(0\) |
| \(25\) | \(0.0113\) | \(25\) |
| \(50\) | \(0.0230\) | \(50\) |
| \(100\) | \(0.2344\) | \(100\) |
| \(200\) | \(0.7963\) | \(200\) |
| \(300\) | \(0.9623\) | \(300\) |
| \(400\) | \(0.9996\) | \(400\) |
| \(426\) | \(1.0000\) | \(425\) |
Seven of eight are exact and the eighth is off by one at the boundary. Any number of differences from none to all of them is available, and obtaining it requires solving for a quantile rather than measuring anything.
| quantity | range over the objective, same two reads |
| rank of the comparison | \(1\) to \(295\) |
| positions aligned | \(245\) to \(500\) of \(500\) |
| gaps opened | \(0\) to \(510\) |
| mean cost along the path | \(0.339\) to \(0.897\) |
| path overlap with the continuous one | \(0.0039\) to \(1.0000\) |
| differences called | \(0\) to \(425\) of \(426\) |
| empty bins in the cost distribution | \(0\) of \(30\) |
A difference between two reads is not a property of either. It is the value of a threshold applied to a path selected by an objective, and all three are supplied before the comparison begins. Every result above is the exact optimum of its own objective; none is an approximation of another; and the interval they span contains both perfect agreement and near-complete disagreement.
Positions are peak locations recorded in the file; the state at a position is the four-channel intensity vector there, offset to non-negative and normalised to unit sum. Similarities: inner product of unit-normalised vectors and its sign, square and cube; radial basis \(\exp (-d^2/2\sigma ^2)\) at three bandwidths; and the \(\pm 1\) matrix obtained by taking the argmax channel at each position. Alignment is global dynamic programming with a linear gap penalty expressed as a multiple of the mean absolute entry of the scoring matrix, so that the penalty is comparable across similarities. Paths are compared as sets of aligned position pairs. Data: reads 310, 3100, 3730 and A6_1-DB3.