668 The Ninety-Eight Percent

The statement that human and chimpanzee genomes are \(98\%\) identical is among the most widely cited quantities in biology. This subsection measures what fixes it.

The comparison used here is the complete mitochondrial genome of Homo sapiens (NC_012920, \(16\,569\) bp) against that of Pan troglodytes (NC_001643, \(16\,554\) bp). The mitochondrial genome is used because it is short enough to align exhaustively under many parameter settings; the structure of the argument does not depend on that choice.

668.0.1 What is counted

A global alignment under standard parameters (\(+1/-1\), gap open \(-2\), gap extend \(-0.5\)) gives

\[ \begin {array}{lr} \text {aligned columns} & 17\,155 \\ \text {substitutions} & 1347 \\ \text {gap columns} & 1187 \\ \text {indel events} & 31 \\ \end {array} \]
from which several identities follow, all standard:
\[ \begin {array}{lr} \text {per aligned column } (17\,155 - 1347 - 1187)/17\,155 & 85.23\% \\ \text {substitutions only } 1 - 1347/17\,155 & 92.15\% \\ \text {per event } 1 - (1347 + 31)/17\,155 & 91.97\% \\ \end {array} \]

The gap columns number \(1187\) and the indel events \(31\). Counting substitutions per base and insertions–deletions per event — the usual convention — moves the figure by \(6.7\) percentage points. Nothing in the sequences specifies which unit to use.

668.0.2 The parameter grid

Enumerating \(252\) distinct alignments over match, mismatch, gap-open and gap-extend values in normal use, each evaluated under five denominators:

\[ \begin {array}{lrrr} \text {denominator} & \min & \max & \text {spread} \\ \hline \text {aligned columns} & 77.81 & 85.44 & 7.63 \\ \text {indel events} & 85.69 & 92.99 & 7.29 \\ \text {longer sequence} & 86.16 & 88.70 & 2.54 \\ \text {shorter sequence} & 86.24 & 88.78 & 2.54 \\ \text {ungapped columns} & 91.33 & 100.00 & 8.67 \\ \end {array} \]
Over \(1260\) settings the identity runs from \(77.81\%\) to \(100.00\%\), a spread of \(22.19\) points.

The maximum is attained at match \(+1\), mismatch \(-1\), gap open \(-0.5\), gap extend \(-0.5\), ungapped denominator:

\[ L = 18\,426, \qquad \text {gap columns} = 3729, \qquad \text {substitutions} = 0, \qquad \text {indel events} = 2636 . \]
With a gap penalty this low the aligner discharges every mismatch into a gap; no substitution remains. The ungapped denominator then excludes exactly those columns, and what is left is entirely matched. The alignment is optimal for the scoring scheme given, and the denominator is one in common use.
668.0.3 The window

The full alignment is not what is usually reported. Identity is commonly quoted over alignable regions, which requires choosing a window. Scanning:

\[ \begin {array}{rrrrrrr} W & n & \min & \text {median} & \max & =0 & =100 \\ \hline 4 & - & 0.00 & - & 100.00 & \checkmark & \checkmark \\ 50 & 16\,019 & 70.00 & 92.00 & 100.00 & 0 & 787 \\ 100 & 16\,028 & 75.00 & 91.00 & 100.00 & 0 & 147 \\ 500 & 16\,103 & 85.83 & 91.20 & 97.59 & 0 & 0 \\ 2000 & 15\,155 & 88.01 & 91.12 & 96.46 & 0 & 0 \\ 16\,000 & 1155 & 91.41 & 91.55 & 91.73 & 0 & 0 \\ \end {array} \]
At \(W = 50\) the lowest window is \(70\%\) and \(787\) windows are at \(100\%\). At \(W = 4\) both extremes occur. The lower bound is a property of the window length, not of the sequences: it rises monotonically from \(0\) at \(W=4\) to \(91.41\) at \(W = 16\,000\).
668.0.4 The correspondence

Every figure above presupposes the global alignment, which fixed which position in one genome corresponds to which in the other. Removing that presupposition — cutting both genomes into fragments and aligning arbitrary pairs:

\[ \begin {array}{rrrrr} L & \text {pairs} & \min & \text {median} & \max \\ \hline 100 & 3025 & 52.13 & 70.73 & 100.00 \\ 300 & 361 & 64.26 & 72.40 & 80.87 \\ 1000 & 36 & 69.93 & 73.06 & 75.86 \\ \end {array} \]
Fragments drawn from unrelated positions align at a median of \(70\)–\(73\%\), and \(100\)-bp fragments reach \(100\%\). Which fragment corresponds to which is not given by the sequences; it is the output of the global alignment, and that alignment is what the identity is subsequently computed from.
668.0.5 Inversion

Combining the three — parameter grid, window selection, fragment correspondence — every target value is attainable:

\[ \begin {array}{rrll} \text {target} & \text {achieved} & \text {by} & \text {where} \\ \hline 0 & 0.00 & \text {window } W{=}4 & \text {pos } 3199 \\ 25 & 25.00 & \text {window } W{=}4 & \text {pos } 2888 \\ 50 & 50.00 & \text {window } W{=}4 & \text {pos } 626 \\ 55 & 54.95 & \text {fragment } L{=}100 & \text {h}13\,800\ \text {vs p}6300 \\ 70 & 70.00 & \text {window } W{=}10 & \text {pos } 620 \\ 85 & 85.00 & \text {window } W{=}20 & \text {pos } 610 \\ 95 & 95.00 & \text {window } W{=}20 & \text {pos } 576 \\ 100 & 100.00 & \text {whole, ungapped} & \text {gap open } -0.5 \\ \end {array} \]
Every value from \(0\) to \(100\) in steps of five is reached, with residual error below \(0.05\) except at \(5\), \(10\), \(15\), \(30\), \(35\) and \(45\), where the granularity of short windows leaves gaps of a few points.
668.0.6 Where the bound comes from
\[ \begin {array}{lrrr} \text {admitted} & \min & \max & \text {spread} \\ \hline \text {whole-genome parameter grid} & 77.81 & 100.00 & 22.19 \\ \text {windows } W \geq 500 & 85.83 & 97.59 & 11.76 \\ \text {windows } W \geq 50 & 70.00 & 100.00 & 30.00 \\ \text {windows, any } W & 0.00 & 100.00 & 100.00 \\ \text {fragment re-pairing} & 52.13 & 100.00 & 47.87 \\ \text {all combined} & 0.00 & 100.00 & 100.00 \\ \end {array} \]

Each restriction is defensible and each is a convention:

\[ \begin {array}{ll} \text {use the whole genome} & \text {removes window selection} \\ \text {use windows of at least } 500 & \text {removes short-window extremes} \\ \text {use the global alignment} & \text {removes fragment re-pairing} \\ \text {exclude gaps from the denominator} & \text {fixes the denominator} \\ \text {count indels as events} & \text {fixes the unit} \\ \text {mask repeats} & \text {removes low-identity regions} \\ \end {array} \]
None follows from the sequences. Each answers the question of what shall count as a comparison, and that question is prior to the comparison.

With the first three fixed, \(22.19\) points remain. With the denominator also fixed to ungapped columns, \(8.67\) points remain across \(252\) alignments, and this does not narrow further when the match and mismatch scores are fixed as well: the residual is entirely due to the gap penalty.

668.0.7 The sequences are themselves products

NC_012920 is the revised Cambridge Reference Sequence. The original Anderson sequence of \(1981\) was re-sequenced and corrected at eleven positions in \(1999\); position \(3107\) carries a placeholder retained to preserve the historical numbering. It is a reference, and other human mitochondrial sequences are reported as differences from it.

Four stages therefore precede the distance: base calling, assembly, selection of a reference, and revision of that reference. Each carries the thresholds of §701 and §639.1.

\[ \begin {array}{ll} \text {observed} & 1347 \text { substitutions and } 1187 \text { gap columns in one alignment} \\[4pt] \text {fixed by convention} & \text {unit: base or event} \Rightarrow 6.7 \text { points} \\ & \text {denominator} \Rightarrow 77.81\text {--}100.00 \\ & \text {window length} \Rightarrow \text {lower bound } 0 \text { to } 91.41 \\ & \text {correspondence} \Rightarrow \text {median } 70\text {--}73\% \text { for arbitrary pairs} \\[4pt] \text {consequence} & \text {every value in } [0,100] \text { is attainable under standard practice} \\ \end {array} \]

The figure \(98\%\) is not a measurement of two genomes. It is the value that results when the whole genome is aligned globally, gaps are excluded from the denominator, indels are counted as events, repeats are masked, and only alignable regions are retained. Each of those five decisions has a reason. None of the reasons is in the sequences.

PIC

Figure 867: Human (NC_012920) against chimpanzee (NC_001643) mitochondrial genome. All panels derive from a single global alignment of length \(17\,155\) with \(15\,968\) comparable positions, whose overall identity is \(91.56\%\). (a) Identity as a function of window size. At \(W = 16\,000\) the values span \(91.41\)–\(91.73\%\), a range of \(0.31\) percentage points; at \(W = 4\) they span \(0\)–\(100\%\). The median rises from \(90\%\) at \(W=10\) to \(100\%\) at \(W \leq 8\) and settles at \(91.5\%\) for \(W \geq 200\). The dotted line marks the \(50\) bp window in conventional use, whose minimum of \(70.00\%\) is a property of that window size and not of the sequences. (b) Distributions at six window sizes. The standard deviation falls monotonically from \(14.00\) percentage points at \(W=4\) to \(0.09\) at \(W=16\,000\). At \(W=4\), \(11\,251\) of \(15\,975\) windows are at exactly \(100\%\) and two are at exactly \(0\%\). (c) Identity between arbitrarily paired fragments, in which no positional correspondence is assumed and each pair is aligned independently. At \(L=100\), \(99.0\%\) of the \(3025\) pairs fall below the whole-alignment value; at \(L=300\) and \(L=1000\), all of them do. The median at \(L=1000\) is \(73.06\%\) against \(91.56\%\) for the aligned genome. (d) Inverting the procedure: for each target from \(0\) to \(100\%\) in steps of \(5\), the closest achievable value using a whole-genome parameter setting, a window, or a fragment pair. Thirteen of \(21\) targets are met exactly; the median absolute error is \(0.00\) and the maximum \(10.0\) percentage points, the latter occurring only below \(15\%\) where the \(W=4\) grid is coarse. Nineteen of the \(21\) are reached by a window. (e) The range available under each constraint. Fixing the whole genome and varying only the alignment parameters gives \(77.81\)–\(100\%\); admitting windows of \(500\) bp and above gives \(85.83\)–\(97.59\%\); admitting all window sizes gives \(0\)–\(100\%\); re-choosing the correspondence between fragments gives \(52.13\)–\(100\%\). Each relaxation is standard practice. (f) The same alignment profiled at three window sizes. The position of the minimum moves with the window — \(16\,221\) at \(W=50\), \(15\,840\) at \(W=500\), \(12\,070\) at \(W=5000\) — and the fraction of the genome below \(85\%\) identity is \(9.1\%\), \(0\%\) and \(0\%\) respectively.

The “genome comparison” functor is not a function.

Consider the claimed map:

\[ F: (\text {sequence pair}) \to [0,100]\% \]
\(F\) is not a function. Given the same input (human, chimpanzee):
\[ F_1(\text {H, C}) = 100\%, \qquad F_2(\text {H, C}) = 77.81\% \]
Same input, different output — \(F\) fails to be a function.

The reason: \(F\) depends on hidden parameters (alignment settings, window size, denominator choice, etc.) that are not part of the declared input. The true map is:

\[ \tilde {F}: (\text {sequence pair},\ \text {parameters}) \to [0,100]\% \]
The parameters are not in the data. They are observer choices.
\[ {\footnotesize \boxed {F \text { is not a function} \;\Longrightarrow \; F(\text {H,C}) = x\% \text { carries no determinate meaning without specifying parameters.}}} \]

668.1 Assembly

§639.1 traced the chain from ionic current to a string of characters. The chain does not end there. Reads are shorter than genomes, so the genome is assembled, and the assembly is the output of an algorithm with parameters.

668.1.1 The test case

Bacteriophage \(\lambda \) (NC_001416, \(48\,502\) bp) provides a case in which the correct answer is known independently. Four thousand reads were simulated from it at mean length \(800\) bp, giving \(65.8\times \) coverage, with a \(5\%\) per-base error rate in the proportions characteristic of nanopore data: \(60\%\) substitutions, \(20\%\) deletions, \(20\%\) insertions, and half the reads reverse complemented.

A de Bruijn assembler was implemented directly: \(k\)-mers are counted in canonical form, those below a coverage threshold discarded, a graph built on \((k-1)\)-mers, tips optionally trimmed, bubbles optionally popped, and maximal non-branching paths emitted as contigs. Four parameters were varied:

\[ k \in \{21,25,31,37,41,51,63,77\}, \quad \texttt {min\_cov} \in \{1,2,3,4,5,8\}, \quad \text {tips} \in \{\text {on},\text {off}\}, \quad \text {bubbles} \in \{\text {on},\text {off}\} \]
giving \(144\) settings, of which \(128\) produced contigs.
668.1.2 The range
\[ \begin {array}{lrr} \text {statistic} & \text {range} & \text {ratio} \\ \hline \mathrm {N}50 & 24 \ \text {to}\ 47\,896\ \mathrm {bp} & 1996 \\ \text {number of contigs} & 2 \ \text {to}\ 165\,944 & 82\,972 \\ \text {assembly size} & 472 \ \text {to}\ 8\,625\,444\ \mathrm {bp} & 18\,274 \\ \text {size relative to truth} & 0.01\times \ \text {to}\ 177.8\times & \\ k\text {-mer accuracy} & 0.002 \ \text {to}\ 1.000 & \\ \end {array} \]
against a genome of \(48\,502\) bp. Every setting is within the range of values used in published assemblies.
668.1.3 Any target is reachable

Selecting, for each target, the setting whose output is closest:

\[ \begin {array}{lrrrrrrrr} \text {target} & \text {achieved} & k & \texttt {mc} & \text {tip} & \text {bub} & \text {contigs} & \mathrm {N}50 & \times \,\text {truth} \\ \hline \mathrm {N}50 = 500 & 460 & 77 & 1 & \text {N} & \text {N} & 29\,211 & 460 & 161.3 \\ \mathrm {N}50 = 2000 & 2177 & 37 & 5 & \text {N} & \text {N} & 164 & 2177 & 2.09 \\ \mathrm {N}50 = 10\,000 & 10\,509 & 31 & 5 & \text {Y} & \text {N} & 19 & 10\,509 & 1.90 \\ \mathrm {N}50 = 48\,502 & 47\,896 & 21 & 8 & \text {N} & \text {N} & 26 & 47\,896 & 1.99 \\ \text {1 contig} & 2 & 21 & 8 & \text {Y} & \text {N} & 2 & 47\,765 & 1.97 \\ \text {10 contigs} & 10 & 25 & 8 & \text {Y} & \text {N} & 10 & 17\,922 & 1.93 \\ \text {100 contigs} & 96 & 31 & 5 & \text {N} & \text {N} & 96 & 7073 & 2.04 \\ \text {1000 contigs} & 1002 & 25 & 4 & \text {N} & \text {N} & 1002 & 272 & 2.50 \\ \text {10\,000 contigs} & 10\,257 & 21 & 3 & \text {N} & \text {N} & 10\,257 & 30 & 6.47 \\ \text {size} = \text {genome} & 45\,214 & 21 & 3 & \text {Y} & \text {N} & 1196 & 37 & 0.93 \\ \text {size} = 2\times & 96\,631 & 21 & 8 & \text {N} & \text {N} & 26 & 47\,896 & 1.99 \\ \text {size} = 10\times & 541\,420 & 51 & 2 & \text {N} & \text {N} & 8181 & 63 & 11.2 \\ \text {accuracy} = 1.000 & 1.000 & 21 & 8 & \text {N} & \text {N} & 26 & 47\,896 & 1.99 \\ \text {accuracy} = 0.500 & 0.495 & 77 & 1 & \text {N} & \text {N} & 29\,211 & 460 & 161.3 \\ \end {array} \]

Every target from a single contig to ten thousand, from \(\mathrm {N}50 = 460\) to \(47\,896\), from a tenth of the genome to \(178\) times it, is reached from the same reads. No new algorithm was needed; the standard parameters suffice.

668.1.4 The statistics disagree about which assembly is best
\[ \begin {array}{llrrrrr} \text {criterion maximised} & k & \texttt {mc} & \text {contigs} & \mathrm {N}50 & \times \,\text {truth} & \text {accuracy} \\ \hline \mathrm {N}50 & 21 & 8 & 26 & 47\,896 & 1.99 & 1.000 \\ \text {longest contig} & 21 & 8 & 26 & 47\,896 & 1.99 & 1.000 \\ k\text {-mer accuracy} & 21 & 8 & 26 & 47\,896 & 1.99 & 1.000 \\ \text {fewest contigs} & 21 & 8 & 2 & 47\,765 & 1.97 & 1.000 \\ \hline \text {size} = \text {truth} & 21 & 3 & 1196 & 37 & 0.93 & 0.777 \\ \end {array} \]

The first four criteria agree, and all four select an assembly twice the size of the genome. Every \(k\)-mer in that assembly is present in the true sequence — accuracy \(1.000\) — yet the assembly contains the genome roughly twice over, in two contigs of \(\sim \!47.8\) kb.

The fifth criterion, that the assembly should be the size of the genome, selects a different setting entirely, with \(\mathrm {N}50 = 37\) bp, \(1196\) contigs, and accuracy \(0.777\). Its \(\mathrm {N}50\) is \(1294\) times smaller.

An assembly can be internally perfect — no sequence not in the genome — and still not be the genome. The quantity that would detect this, total assembled length, is not among the statistics conventionally reported.

668.1.5 What the parameters do

The \(k\)-mer size determines which repeats are collapsed: shorter \(k\) merges distinct loci sharing a \(k\)-mer, longer \(k\) fragments the graph where coverage is sparse. The coverage threshold determines which observations are errors: \(\texttt {min\_cov}=1\) retains every \(k\)-mer seen once, including the roughly \(5\%\) that are error products, giving \(161\times \) the genome; \(\texttt {min\_cov} =8\) discards genuine low-coverage regions with them. Tip trimming and bubble popping remove structures on the assumption that they are artefacts of error rather than features of the sequence.

None of these choices is between a correct and an incorrect procedure. Each is a threshold applied to distinguish signal from error, and the distinction is what the assembly is being made to establish.

pict