548 The Genetic Code Rebuilt in Every Universe

The genetic code assigns 64 triplets of four letters to 20 amino acids, whose residue masses are fixed by a table of atomic masses. We rebuilt every layer between a genome and a mass spectrum, from the frequency axis of the instrument to the code table, in many universes, without the standard code, the textbook residue masses or any database of identified peptides.

Data. One run of a bacterial proteome on an Orbitrap instrument, 1 431 survey and 6 103 fragment spectra recorded in profile mode [499], and the genome of the same organism, Pectobacterium atrosepticum SCRI1043. The instrument records ion frequencies and converts them to mass-to-charge ratios with a calibration fitted to standards whose masses are computed from the same atomic mass table as the textbook residue masses.

Universes. In each of 180 spectrum universes the mass-to-charge axis was taken back to frequency and given a new calibration (\(1/f^{2}\), \(1/f\), \(\log 1/f\), \(1/f^{3}\) or a random monotone curve), peaks were picked at one of three thresholds, charge was taken from the instrument, set to one, scaled or omitted, and isotope clusters were kept, reduced or summed. The residue masses of the universe were the clusters in the distribution of peak spacings of 3 000 training spectra. In each of ten DNA universes per spectrum universe, the genome was rewritten in an alphabet of 2 to 60 symbols with one to six symbols per base and cut into codons of 2, 3, 4 or 6 symbols; the code table of the universe matched its codons to its residue masses by frequency. Each of the 1 800 codes was scored by the overlap (one minus the normalised Jensen–Shannon divergence) between the residue masses it predicts from the genome and the peak spacings of 3 000 held-out spectra, and against the same genome shuffled.

Results. The universes held 23 to 486 residue masses and 1 to 1 702 codons. Their codes overlapped with the held-out spectra by 0.029 to 0.886 (median 0.270). The standard calibration did not stand out (median 0.326, against 0.302 for random monotone calibrations), and codons of three symbols did not either: overlap rose with codon length, from 0.171 for two symbols to 0.250 for three, 0.310 for four and 0.405 for six, and the highest overlap was reached with codons of six symbols. The shuffled genome gave the same overlap as the real one (median 0.269 against 0.270).

Interpretation. Rebuilt from the frequency axis up, the same records support codes with any number of residue masses, codons of any length and alphabets of any size, and none of them is selected by the spectra: three-letter codons are not preferred, twenty residues are not found, and the standard calibration is one curve among others. At this level the spacing of masses in the spectra is reproduced as well from a scrambled genome as from the real one, so the order of the genome adds nothing to it. The textbook residue masses appear only on the axis calibrated with the atomic mass table from which they are computed. The genetic code is one table among the codes that the records admit.

Where four remains. The DNA side of these universes begins from the published genome, a string already written in four letters inherited from four-label sequencing. Rewriting it in 2 to 60 symbols assigns symbols to those four letters, so that however many symbols are used, the distinctions beneath them are at most four, as sixteen letters written from four dyes remain four kinds. The spectrum side was rebuilt from the frequency axis; the genome side was not. Removing four from both sides requires the genome to be read from current without labels, references or trained basecallers, with letters made from the current itself, and matched to spectra of the same organism.

pict

Figure 635: The genetic code rebuilt from the frequency axis up [499]. (a) One fragment spectrum as recorded in profile mode, on the standard axis and on a \(1/f\) axis, before any peak, charge, isotope or residue is chosen. (b) Overlap of 1 800 codes with held-out spectra by codon length, for the genome and for the shuffled genome. (c) Overlap by calibration of the frequency axis. (d) Overlap against the number of residue masses in each universe, coloured by codon length; dashed, twenty.

Both sides from raw records. To remove four from the DNA side as well, the experiment was repeated again with an organism for which both records are public: raw nanopore current from methylation-free Escherichia coli K-12 DNA [512] and an Orbitrap run of the E. coli proteome [513], whose fragment spectra were stored as centroids by the instrument. The genome was not used: each read’s current was segmented into events at one of three thresholds, the events of all reads were clustered into 2 to 60 letters made from the current itself, and runs of 2, 3, 4 or 6 of these letters were taken as codons, with no reference, basecaller or A, C, G and T anywhere. The 1 640 codes so built overlapped with held-out spectra by 0.021 to 0.950 (median 0.461), and the same letters shuffled gave 0.474. Codons of three letters did not stand out (0.466, 0.477, 0.458 and 0.387 for two, three, four and six letters), and alphabets of four or fewer letters made from the current fitted worst (median 0.200) against 0.44 to 0.48 for five to sixty. The calibration of the mass axis mattered here: the axis on which masses add, calibrated with the atomic mass table, gave 0.857, a random monotone axis 0.648, and the others about 0.2.

What changes. With both sides read from raw records, four appears nowhere: not in the letters, which the current gives in any number and fits better above four than at it; not in the codons, whose length three is not preferred; and not in the order of the genome, which adds nothing at this level. What remains fixed is the additivity of the mass axis, the one property of the standard calibration the spectra favour, and it belongs to the scale on which masses are written, not to DNA.

Limits. In this run the fragment spectra were stored by the instrument as centroids, so for them the choice of peaks is the instrument’s and was not varied; the calibration of the axis, the charge, the isotope clusters, the residue masses and everything on the DNA side were rebuilt. Three nanopore files were used, and codes were matched to spectra by frequency, which, as the shuffled letters show, does not use the order of the current.

pict

Figure 636: The genetic code rebuilt with both sides from raw records: nanopore current from methylation-free E. coli DNA [512] and Orbitrap spectra of the E. coli proteome [513]. (a) A quarter-second of current, segmented into events and coloured by eight letters made from the current, with no reference, basecaller or A, C, G and T. (b) Overlap of 1 640 codes with held-out spectra by the number of letters made from the current, and with the letters shuffled. (c) Overlap by codon length. (d) Overlap by calibration of the mass axis; on the axis where masses add, the overlap is highest.

The size of the table and of the residue alphabet. A codon table has as many entries as letters raised to the codon length, and the 1 640 codes above span tables from 4 to over a million entries; 64 is the size given by four letters read in threes, or eight in twos. Tables of 64 entries are not singled out (Figure 637): their median overlap with held-out spectra is 0.31, below that of tables of 65 to 4 096 entries (0.46 to 0.54), and they beat 40% of all codes. None of the ten best codes has 64 entries (\(8^3\), \(23^2\), \(7^3\), \(20^2\), \(5^4\), …), and their codon lengths are two, three and four. The residue side behaves the same way: codes were built with residue alphabets of 1 to 366 masses, and the 20 codes with exactly 20 residues have median overlap 0.21 and beat 34% of all codes, while the ten best use 263 to 345. Neither number is chosen by the record. The overlap rises with the number of residue masses, which cover more peaks the more of them there are, and letters shuffled along the record overlap the spectra as well as letters in their recorded order, so the comparison follows the size of the table and the alphabet rather than the record; what it shows is that the record selects no table and no alphabet, and 64 and 20 no more than any other size.

pict

Figure 637: Sizes of the genetic code rebuilt from raw records. (a) Overlap with held-out spectra of 1 640 codes against the size of the codon table (letters made from the current raised to the codon length); the dashed line marks 64. (b) Overlap against the size of the residue alphabet, each point one code and the line the median in logarithmic bins; the dashed line marks 20.

548.1 Every Step of the Code Rebuilt

The comparison of the genetic code with the record was repeated with every step that supplies a number rebuilt at once. The current was a nanopore record of E. coli DNA, turned into letters from its own events; the masses were the fragment spectra of an E. coli membrane fraction stored in profile [523], so that the last choice left to the instrument, the selection of peaks, could be made by rules of our own. In each of 300 universes every step in Table 887 was drawn independently, and seven codes were built from the current with segmentations of fixed and variable length; each code was scored by its overlap with held-out spectra, and again with the same letters shuffled along the record. The rule that joins codons to residue masses (rank to rank) and the measure of overlap were kept fixed; they compare the two sides and supply none of the numbers in question.

Table 887: Steps rebuilt in each universe and the choices drawn from.
Step Choices
Peaks in the fragment spectra local maxima; smoothed over 1 or 3 points; above 3 or 10 times the noise; width at least 3
Mass axis \(1/f^2\); \(1/f\); \(\log 1/f\); \(1/f^3\); random monotone
Charge instrument; 1; 1.5 times instrument; none
Isotope clusters all peaks; one per cluster; cluster summed
Residue masses peaks of the gap histogram; \(k\)-means of gaps (\(k=5\)–300); random subsets of peaks
Protein units none; retention-time windows; precursor-mass bins; random blocks
Letters from the current change threshold 2, 4 or 8; 2 to 60 letters
Codons fixed length 2, 3, 4 or 6; terminal letters; random lengths; change points

No step singles out the familiar numbers (Table 888, Figure 638). Peak rules move the overlap between 0.44 and 0.55, protein units between 0.45 and 0.49, and residue rules between 0.38 and 0.52. Residue alphabets of fewer than twenty masses score 0.06 and those of more score 0.52; no universe produced exactly twenty, and in the earlier comparison the twenty codes with twenty residues beat only 34% of all codes, so twenty is passed through rather than chosen. The axis on which masses add, \(1/f^2\), scores highest (0.66), as it should if masses are read as sums of residues. In every row the letters shuffled along the record score the same as the letters in their recorded order, within the interval: the overlap follows the sizes and frequencies of a code, not the order of the record.

Table 888: Overlap with held-out spectra by step (median over all codes drawn with that choice, 300 universes), for letters from the current and the same letters shuffled.
Step Choice Current Shuffled
Peaks local maxima 0.492 0.490
smoothed over 1 point 0.545 0.559
smoothed over 3 points 0.473 0.475
above 3 times noise 0.492 0.508
above 10 times noise 0.456 0.454
width at least 3 0.439 0.438
Mass axis \(1/f^2\) 0.664 0.665
\(1/f\) 0.456 0.463
\(\log 1/f\) 0.414 0.410
\(1/f^3\) 0.345 0.350
random monotone 0.515 0.514
Residue masses gap-histogram peaks 0.523 0.544
\(k\)-means of gaps 0.492 0.496
random subsets of peaks 0.381 0.381
fewer than 20 masses 0.058 —
more than 20 masses 0.520 —
Protein units none 0.481 0.488
retention-time windows 0.481 0.483
precursor-mass bins 0.489 0.490
random blocks 0.454 0.454
Codons fixed length 2 0.482 0.483
fixed length 3 0.509 0.507
fixed length 4 0.510 0.520
fixed length 6 0.475 0.521
terminal letters 0.436 0.426
random lengths 0.533 0.524
change points 0.448 0.436

Codons of three set aside. Pooled against all other segmentations, codons of three kept a small edge (\(+0.038\), 95% interval \(+0.003\) to \(+0.092\)), but it did not come from the record: shuffled letters gave codons of three the same score, and fixed length four and random lengths scored as high or higher. The score followed the ratio of distinct codons to residue masses. When the length was chosen to match that ratio, the data chose length two in 180 universes, one in 60 and three in 31, and this matched rule beat codons of three in 70% of universes. With the number of distinct codons then held equal to that of codons of three in the same universe, and only the length changed (Table 889), lengths four, five, six and eight beat three and length two equalled it; the deficit of length six seen without matching (\(-0.036\)) disappears once its codon count is matched. Length one falls short only where 60 letters cannot make as many codons as three, and beats three where they can.

Table 889: Codon lengths set in the place of three: overlap minus that of codons of three in the same universe, with the number of distinct codons matched (600 paired universes; median and bootstrap 95% interval).
Length Difference 95% interval Wins over three Codon count matched
1 \(-0.0072\) \([-0.0252, -0.0020]\) 35% 20% (there \(+0.011\))
2 \(-0.0003\) \([-0.0006, -0.0001]\) 38% 59%
4 \(+0.0007\) \([+0.0003, +0.0012]\) 66% 74%
5 \(+0.0021\) \([+0.0016, +0.0031]\) 73% 57%
6 \(+0.0028\) \([+0.0019, +0.0038]\) 72% 56%
8 \(+0.0049\) \([+0.0037, +0.0063]\) 76% 27%

pict

Figure 638: The genetic code rebuilt with every step varied, over 300 universes. Overlap with held-out spectra (median and 95% interval) by (a) peak picking, (b) mass axis, (c) residue masses, with the residue count in the inset, (d) protein units and (e) codon segmentation, for letters from the current (blue) and the same letters shuffled (grey). (f) Codons of other lengths with the number of distinct codons held equal to that of codons of three in the same universe, minus codons of three; green, above three; inset, lengths chosen when the length is matched to the ratio of codons to residue masses.

What the rebuilt code shows. With letters, codons, residue masses, peaks, axis and protein units all made from the records, the record selects none of the numbers of the genetic code: not four letters, not codons of three, not 64 codons and not twenty residues. At equal codon count any length stands in the place of three, and every score is matched by letters shuffled along the record.

548.2 Genes and Markers

Studies of genes and markers, such as the association of a marker in a secreted-protein gene with a trait, add three layers above the letters: an interval called a gene, a position called a marker, and a threshold that links the marker to the trait. Each is a rule applied to letters already made (Table 890).

Table 890: Layers of a gene–marker study and what each rests on.
Layer How it is decided Where it was varied
Letters A, C, G, T four labels put in; reference chain
Protein interval translated by the genetic code Section 548.1
Gene start and stop chosen by a program trained on earlier annotation this subsection
Secreted score of a program trained on proteins already classed as secreted this subsection
Marker (SNP) reads differ from a reference beyond depth, quality and frequency thresholds references and variant thresholds
Association a threshold on a test statistic thresholds

The gene interval rebuilt from the record. To vary the one layer not yet varied, genes were found in letters made from the nanopore current, with no reference, annotation or A, C, G, T. In each of 300 universes, with the mass side drawn as in Section 548.1, seven codes were built (codons of fixed length 2, 3, 4 or 6, random lengths, change points, terminal letters); starts and stops were drawn at random from the codons of that universe (2–10% each), a gene was taken from a start to the next stop of at least 20, 30, 50 or 100 codons, and each gene was translated by a random code table into 2–400 residue symbols and scored against held-out spectra. The same letters shuffled along the record were run with the same starts, stops and table, so that any difference comes from the order of the record alone.

Gene intervals do not come from the order of the record (Table 891). Across 2100 codes, the current gave \(+0.031\) more intervals per \(10^4\) codons than shuffled letters (95% interval \(+0.002\) to \(+0.086\), against about 31 per \(10^4\)), intervals 2 codons shorter (\([-3, -2]\)) and covering 0.012 less of the record (\([-0.016, -0.009]\)). The order of the record does not open longer intervals than chance; the number and length of genes follow the rule that defines them.

Gene intervals add nothing on the protein side. Proteins translated from the intervals matched the spectra exactly as well as the whole record translated without intervals (\(+0.0000\), \([+0.0000, +0.0000]\), for the current and for shuffled letters alike), and the current matched as well as shuffled letters (\(+0.0000\)). The overlap rose with codon length, from 0.32 for codons of two to 0.41 for codons of six, in the same way for both orders.

Table 891: Genes found in letters from the current and in the same letters shuffled, by codon rule (median over 300 codes each). Starts and stops were drawn from the codons of the current; for codons of six and terminal letters these are mostly absent from the shuffled letters, so the shuffled values in those rows are not comparable.
Genes per \(10^4\) codons
Median length (codons)
Protein overlap
Codons Current Shuffled Current Shuffled Current Shuffled
fixed 2 26.4 28.2 58.0 57.0 0.322 0.330
fixed 3 31.5 32.9 56.0 56.0 0.368 0.371
fixed 4 35.1 37.1 52.5 59.0 0.391 0.390
fixed 6 37.9 (0.8) 52.0 (3703) 0.405 0.403
random lengths 32.6 38.2 58.0 66.0 0.373 0.373
change points 31.4 31.8 55.0 62.5 0.379 0.375
terminal letters 33.5 (3.0) 56.0 (75.0) 0.373 0.370

What this covers. A gene is an interval set by its rule, a protein is that interval translated by a code the records do not single out, a secreted protein is a further trained score, a marker is a difference from an inherited reference passed by thresholds, and an association is a threshold on a statistic. Studies built on genes and markers rest on the layers varied in this work, with trained prediction on top, and do not reach the records more directly than the letters they begin from.

pict

Figure 639: Genes found in letters from the current (blue) and in the same letters shuffled (grey), by codon rule, over 300 universes: (a) genes per \(10^4\) codons, (b) median gene length, (c) overlap with held-out spectra of proteins from the gene intervals minus that of the whole record. Open circles: starts and stops mostly absent from the shuffled letters, not comparable.

548.3 How Laboratories Find Genes and Markers

The rules varied in Section 548.2 are those that laboratories apply as documented by the tools themselves (Table 892). Each step takes its settings from genes, proteins or genomes already annotated, or from a fixed threshold.

Table 892: Documented procedure of a bacterial gene–marker study and the source of each setting.
Step Tool

Source of the setting

Gene interval NCBI PGAP [525, 526]

open reading frames compared with protein HMMs, representative RefSeq proteins and proteins of reference genomes; GeneMarkS-2+ predicts where no such evidence exists and chooses starts

Gene interval Prodigal [527]

start-codon usage (ATG, GTG, TTG), ribosome-binding motifs, GC frame bias and hexamer statistics learned from a training set built from the genome’s own open frames; gene size and overlap limits set from previously curated genomes

Secreted SignalP 6.0 [528]

protein language model trained on UniRef100, tuned on proteins already known to carry signal peptides

Marker snippy [529]

mapping quality 60, base quality 13, depth 10, variant quality 100, variant fraction commonly 0.9; depth and fraction are hard thresholds added on top of the caller’s statistic

Association SEER, pyseer [530, 531]

0.05 Bonferroni-corrected to \(10^{-8}\) by assuming three independent mutations at every position, or a threshold set by the number of distinct variant patterns

The gene finders say where their numbers come from. PGAP relies on sequence similarity where confident comparative data exist and on statistical prediction where they do not; in both cases the reference is earlier annotation. Prodigal learns its starts and coding statistics from the genome it annotates, but the set it learns from is chosen by rules drawn from genomes already curated. The codon of three, the start and stop codons and the code table enter both as givens, and each new annotation is added to the references used for the next.

The marker and its association are thresholds. A variant is called where reads mapped to a reference pass fixed cut-offs on mapping quality, base quality, depth and fraction, whose best values the tool’s own documentation leaves to the depth and contamination of each study. The association threshold is a correction of 0.05 by a count of tests that is assumed rather than measured.

Against the rebuilt record. With these settings replaced by draws from the record (Section 548.2), the record supplied intervals at the rate and length that shuffled letters supplied, and the intervals added nothing to the match with the spectra. The procedure of Table 892 therefore finds the genes and markers its settings describe, settings inherited from earlier annotation and chosen thresholds, and the study reaches the record no more directly than these.