A place to cache linked articles (think custom and personal wayback machine)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 43KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530
  1. <!doctype html><!-- This is a valid HTML5 document. -->
  2. <!-- Screen readers, SEO, extensions and so on. -->
  3. <html lang="fr">
  4. <!-- Has to be within the first 1024 bytes, hence before the `title` element
  5. See: https://www.w3.org/TR/2012/CR-html5-20121217/document-metadata.html#charset -->
  6. <meta charset="utf-8">
  7. <!-- Why no `X-UA-Compatible` meta: https://stackoverflow.com/a/6771584 -->
  8. <!-- The viewport meta is quite crowded and we are responsible for that.
  9. See: https://codepen.io/tigt/post/meta-viewport-for-2015 -->
  10. <meta name="viewport" content="width=device-width,initial-scale=1">
  11. <!-- Required to make a valid HTML5 document. -->
  12. <title>DNA seen through the eyes of a coder (or, If you are a hammer, everything looks like a nail) (archive) — David Larlet</title>
  13. <meta name="description" content="Publication mise en cache pour en conserver une trace.">
  14. <!-- That good ol' feed, subscribe :). -->
  15. <link rel="alternate" type="application/atom+xml" title="Feed" href="/david/log/">
  16. <!-- Generated from https://realfavicongenerator.net/ such a mess. -->
  17. <link rel="apple-touch-icon" sizes="180x180" href="/static/david/icons2/apple-touch-icon.png">
  18. <link rel="icon" type="image/png" sizes="32x32" href="/static/david/icons2/favicon-32x32.png">
  19. <link rel="icon" type="image/png" sizes="16x16" href="/static/david/icons2/favicon-16x16.png">
  20. <link rel="manifest" href="/static/david/icons2/site.webmanifest">
  21. <link rel="mask-icon" href="/static/david/icons2/safari-pinned-tab.svg" color="#07486c">
  22. <link rel="shortcut icon" href="/static/david/icons2/favicon.ico">
  23. <meta name="msapplication-TileColor" content="#f7f7f7">
  24. <meta name="msapplication-config" content="/static/david/icons2/browserconfig.xml">
  25. <meta name="theme-color" content="#f7f7f7" media="(prefers-color-scheme: light)">
  26. <meta name="theme-color" content="#272727" media="(prefers-color-scheme: dark)">
  27. <!-- Documented, feel free to shoot an email. -->
  28. <link rel="stylesheet" href="/static/david/css/style_2021-01-20.css">
  29. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  30. <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
  31. <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
  32. <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
  33. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  34. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  35. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  36. <script>
  37. function toggleTheme(themeName) {
  38. document.documentElement.classList.toggle(
  39. 'forced-dark',
  40. themeName === 'dark'
  41. )
  42. document.documentElement.classList.toggle(
  43. 'forced-light',
  44. themeName === 'light'
  45. )
  46. }
  47. const selectedTheme = localStorage.getItem('theme')
  48. if (selectedTheme !== 'undefined') {
  49. toggleTheme(selectedTheme)
  50. }
  51. </script>
  52. <meta name="robots" content="noindex, nofollow">
  53. <meta content="origin-when-cross-origin" name="referrer">
  54. <!-- Canonical URL for SEO purposes -->
  55. <link rel="canonical" href="https://berthub.eu/articles/posts/amazing-dna/">
  56. <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick" data-instant-intensity="viewport-all">
  57. <article>
  58. <header>
  59. <h1>DNA seen through the eyes of a coder (or, If you are a hammer, everything looks like a nail)</h1>
  60. </header>
  61. <nav>
  62. <p class="center">
  63. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  64. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-home"></use>
  65. </svg> Accueil</a> •
  66. <a href="https://berthub.eu/articles/posts/amazing-dna/" title="Lien vers le contenu original">Source originale</a>
  67. </p>
  68. </nav>
  69. <hr>
  70. <blockquote>
  71. <p><strong>Updates:</strong>
  72. 8th of January 2021:
  73. This article has been revised and updated, scientifically and in terms of dead links. Revision made by Tomás Simões (<a href="https://twitter.com/putadagravidade" target="_blank">@putadagravidade</a> / tomasprsimoes@gmail.com). Feel free to contact me if I made a mistake.</p>
  74. <p>25th of August 2017:
  75. This page has led to a two-hour presentation called <a href="https://berthub.eu/dna/" target="_blank">DNA: The code of Life</a> as presented at <a href="https://sha2017.org/" target="_blank">SHA 2017</a>. Includes slides and video and a <a href="https://berthub.eu/articles/posts/dna-the-code-of-life/" target="_blank">summarizing blogpost</a>. If you like this page, you’ll love the presentation.</p>
  76. </blockquote>
  77. <p>This is some rambling by a computer programmer about DNA. I’m not a molecular geneticist
  78. (Update: 20 years after starting this post, I can fake it reasonably well.
  79. This page was started somewhere in 2001, and it may need some more updating
  80. here and there. Since 2001 I’ve learned a few things and I think I need to
  81. revisit some parts of this page.)</p>
  82. <p>If you spot mistakes, please contact me (<a href="https://twitter.com/PowerDNS_Bert" target="_blank">@PowerDNS_Bert</a> / bert@hubertnet.nl).</p>
  83. <p>I’m not trying to force my view unto the DNA - each observation here is quite ‘uncramped’. To see where I got all this from, head to the Bibliography (end of the page).</p>
  84. <h2 id="the-source-code">The source code</h2>
  85. <p>Is <a href="ftp://ftp.ensembl.org/pub/current_genbank/homo_sapiens/" target="_blank">here</a>. This not a joke. We can wonder about the license though. Maybe we should ask the walking product of this source: <a href="https://www.theguardian.com/world/2002/apr/28/medicalscience.research" target="_blank">Craig Venter</a> (update: not quite true, it is mostly someone else). The source can be viewed via a wonderful set of perl scripts called <a href="http://www.ensembl.org/index.html" target="_blank">‘Ensembl’</a>. The human genome is about 3 gigabases long, which boils down to 750 megabytes. Depressingly enough, this is only 3.6 (update: used to be 2.8, apparently Firefox decreased in size, huh.) Mozilla browsers.</p>
  86. <p>DNA is not like C source but more like byte-compiled code for a virtual machine called ‘the nucleus’. It is very doubtful that there is a source to this byte compilation - what you see is all you get.</p>
  87. <p></p>
  88. <p><center></p>
  89. <figure>
  90. <img src="/articles/amazing-dna/dna.jpg" alt="Illustration of a DNA molecule."> <figcaption>
  91. <p>Illustration of a DNA molecule.</p>
  92. </figcaption>
  93. </figure>
  94. <p></center></p>
  95. <p>The language of DNA is digital, but not binary. Where binary encoding has 0 and 1 to work with (2 - hence the ‘bi’nary), DNA has 4 positions, T, C, G and A.</p>
  96. <p>Whereas a digital byte is mostly 8 binary digits, a DNA ‘byte’ (called a ‘codon’) has three digits. Because each digit can have 4 values instead of 2, a DNA codon has 64 possible values, compared to a binary byte which has 256.</p>
  97. <p>A typical example of a DNA codon is ‘GCC’, which encodes the amino acid Alanine. A larger number of these amino acids combined are called a ‘polypeptide’ or ‘protein’, and these are chemically active in making a living being.</p>
  98. <p>See also <a href="https://www.nature.com/scitable/definition/codon-155/" target="_blank">https://www.nature.com/scitable/definition/codon-155/</a></p>
  99. <h2 id="position-independent-code">Position Independent Code</h2>
  100. <p><em>Dynamically linked libraries (.so under Unix, .dll on Windows) code cannot use static addresses internally because the code may appear in different places in memory in different situations. DNA has this too, where it is called ‘transposing code’:</em></p>
  101. <p>Nearly half of the human genome is composed of transposable elements or jumping DNA. First recognized in the 1940s by Dr. Barbara McClintock in studies of peculiar inheritance patterns found in the colors of Indian corn, jumping DNA refers to the idea that some stretches of DNA are unstable and “transposable,” ie., they can move around – on and between chromosomes.</p>
  102. <p><a href="https://www.nature.com/scitable/topicpage/transposons-the-jumping-genes-518/" target="_blank">https://www.nature.com/scitable/topicpage/transposons-the-jumping-genes-518/</a></p>
  103. <h2 id="conditional-compilation">Conditional compilation</h2>
  104. <p></p>
  105. <p><center></p>
  106. <figure>
  107. <img src="/articles/amazing-dna/human_chrom.gif" alt="Illustration of human chromosomes."> <figcaption>
  108. <p>Illustration of human chromosomes.</p>
  109. </figcaption>
  110. </figure>
  111. <p></center></p>
  112. <p>Of the 20,000 to 30,000 genes now thought to be in the human genome (update: <strong>quite</strong> <a href="https://bmcbiol.biomedcentral.com/articles/10.1186/s12915-018-0564-x#Sec5" target="_blank">debatable</a>), most cells express only a very small part - which makes sense, a liver cell has little need for the DNA code that makes neurons.</p>
  113. <p>But as almost all cells carry around a full copy (‘distribution’) of the genome, a system is needed to #ifdef out stuff not needed. And that is just how it works. The genetic code is full of #if/#endif statements.</p>
  114. <p>This is why ‘<a href="https://www.bhf.org.uk/informationsupport/heart-matters-magazine/research/breakthroughs-in-stem-cell-research" target="_blank">stem cells</a>’ are so hot right now - these cells have the ability to differentiate into everything. The code hasn’t been #ifdeffed out yet, so to speak.</p>
  115. <p>Stated more exactly, stem cells do not have everything turned on - they are not at once liver cells and neurons. Cells can be likened to state machines, starting out as a stem cell. Over the lifetime of the cell, during which time it may clone (‘fork()’) many times, it specializes. Each specialization can be regarded as choosing a branch in a tree.</p>
  116. <p>Each cell can make (or be induced to make) decisions about its future, which each make it more specialized. These decisions are persistent over cloning using transcription factors and by modifying the way DNA is stored spatially (‘steric effects’).</p>
  117. <p>A liver cell, although it carries the genes to do so, will generally not be able to function as a skin cell. There are some indications out there that it is possible to ‘breed’ cells ‘upwards’ into the hierarchy, making them pluripotent. See also <a href="https://www.sciencedaily.com/releases/2002/01/020131074645.htm" target="_blank">this article</a>.</p>
  118. <h2 id="epigenetics-imprinting-runtime-binary-patching">Epigenetics &amp; imprinting: runtime binary patching</h2>
  119. <p>Although the actual relevant changes in the DNA of an organism rarely occur within a generation, substantial tinkering goes on by activating or deactivating parts of our genome, without altering the actual code.</p>
  120. <p>This can be compared to the Linux kernel, which at boot time discovers what CPU it is running on, and actually disables parts of its binary code in case (for example) it is running on a single CPU system. This goes beyond something like if(numcpus &gt; 1), it is the actual nopping out of locking. Crucially, this nopping occurs in memory and not on the disk based image.</p>
  121. <p>Similarly, as an embryo develops in the mother’s womb, its DNA is edited substantially to reduce its growth rate, and the size of the placenta. In such a way, the competing interests of the father (‘large strong children’) and the mother (‘survive pregnancy’) are balanced. Such ‘imprinting’ can only happen within the mother, since the father’s genome doesn’t know anything about the size of the mother.</p>
  122. <p>Recently, it is also becoming clear that the metabolic status of the parents influences the <a href="https://en.wikipedia.org/wiki/Transgenerational_epigenetic_inheritance" target="_blank">chances of long life, cancer and diabetes in their grandchildren</a>. This also makes sense, as surviving in a food poor climate may require a different metabolic strategy than in one where food is abundantly available.</p>
  123. <p>Mechanisms behind epigenetics and imprinting are ‘methylation’, which attaches methyl groups to DNA to ‘flip’ their activation status, but also histone modification, which can curl up DNA so it is not activated.</p>
  124. <p>Some of these DNA edits are heritable and passed on to children, other forms may only impact one animal.</p>
  125. <p>This field is still developing rapidly, and it may be that our DNA is much more dynamic than originally thought.</p>
  126. <p></p>
  127. <p><center></p>
  128. <figure>
  129. <img src="/articles/amazing-dna/intron.gif" alt="From genes to proteins."> <figcaption>
  130. <p>From genes to proteins.</p>
  131. </figcaption>
  132. </figure>
  133. <p></center></p>
  134. <p>The genome is littered with old copies of genes and experiments that went wrong somewhere in the recent past - say, the last half a million years. This code is there but inactive. These are called the ‘pseudo genes’.</p>
  135. <p>Furthermore, 97% of your DNA is commented out. DNA is linear and read from start to end. The parts that should not be decoded are marked very clearly, much like C comments. The 3% that is used directly form the so called ‘exons’. The comments, that come ‘in-between’ are called ‘introns’.</p>
  136. <p>These comments are fascinating in their own right. Like C comments they have a start marker, like /*, and a stop marker, like */. But they have some more structure. Remember that DNA is like a tape - the comments need to be snipped out physically! The start of a comment is almost always indicated by the letters ‘GT’, which thus corresponds to /*, the end is signaled by ‘AG’, which is then like */.</p>
  137. <p>However because of the snipping, some glue is needed to connect the code before the comment to the code after, which makes the comments more like html comments, which are longer: ‘&lt;!–’ signifies the start, ‘–&gt;’ the end.</p>
  138. <p>So an actual stretch of DNA with exons and introns might look like this:</p>
  139. <pre><code>ACTUAL CODE&lt;!-- blah blah blah blah ---- blah --&gt;ACTUAL CODE
  140. | | | | | |
  141. exon 1 donor intron 1 branch acceptor exon 2
  142. (start of comment) (end of comment)
  143. </code></pre>
  144. <p>The start of the comment is clear, which is then followed by a lot of non-coding DNA. Somewhere very near the end of the comment there is a ‘branch site’, which indicates that the comment will end soon. Then some more comment follows, and then the actual terminator.</p>
  145. <p>The actual cutting of the comments happens after the DNA has been transcribed into RNA and is performed by looping the comment and bringing the pieces of actual code close together. Then the RNA is cut at the ‘branch site’ near the end of the comment, after which the ‘donor’ (comment start) and ‘acceptor’ (comment end) are connected to each other.</p>
  146. <p>Now, what are these comments good for? That discussion is part of a holy war that can rival the <a href="https://xkcd.com/378/" target="_blank">vi/emacs one</a>. When comparing different species, we know that some introns show fewer code changes than the neighboring exons. This suggests that the comments are doing something important.</p>
  147. <p>There are lots of possible explanations for the massive amount of non-coding DNA - one of the most appealing (to a coder) has to do with ‘folding propensity’. DNA needs to be stored in a highly coiled form, but not all DNA codes lend themselves well to this.</p>
  148. <p>This may remind you of <a href="https://www.redhill.net.au/d/10.php" target="_blank">RLL or MFM</a> coding. On a hard disk, a bit is encoded by a polarity transition or the lack thereof. A naive encoding would encode a 0 as ‘no transition’ and 1 as ‘a transition’.</p>
  149. <p>Encoding 000000 is easy - just keep the magnetic phase unchanged for a few micrometers. However, when decoding, uncertainty creeps in - how many micrometers did we read? Does this correspond to 6 zeroes or 5? To prevent this problem, data is treated such that these long stretches of no transitions do not occur.</p>
  150. <p>If we see ‘no transition,no transition,transition,transition’ on disk, we can be sure that this corresponds to ‘0011’ - it is exceedingly unlikely that our reading process is so imprecise that this might correspond to ‘00011’ or ‘00111’. So we need to insert spacers so as to prevent too little transitions. This is called ‘Run Length Limiting’ on magnetic media.</p>
  151. <p>The thing to note is that sometimes, transitions need to be inserted to make sure that the data can be stored reliably. Introns may do much the same thing by making sure that the resulting code can be coiled properly.</p>
  152. <p>However, this area of molecular biology is a minefield! Huge diatribes rage about variants with exciting names like ‘introns early’ or ‘introns late’, and massive words like ‘folding propensity’ and ‘stem-loop potential’. I think it best to let this discussion rage on a bit.</p>
  153. <blockquote>
  154. <p>2013 Update: ten years on, the debate still hasn’t settled! It is very clear that ‘Junk DNA’ is a misnomer, but as to its immediate function, there is no consensus. Check out Fighting about ENCODE and junk for a discussion of where we stand.</p>
  155. <p>2021 Update: eighteen years on, the debate is nowhere close to being settled. It is now somewhat consensual that ‘Junk DNA’ has important and diverse functions, but new discoveries are being made on a daily basis. <a href="https://www.advancedsciencenews.com/that-junk-dna-is-full-of-information/" target="_blank">https://www.advancedsciencenews.com/that-junk-dna-is-full-of-information/</a></p>
  156. </blockquote>
  157. <h2 id="fork-and-fork-bombs-tumors">fork() and fork bombs (‘tumors’)</h2>
  158. <p>Like with Unix, cells are not ‘spawned’ - they are forked. All cells started out from your ovum which has forked itself many times since. Like processes, both halves of the fork() are (mostly) identical to begin with, but they may from then on decide to do different things.</p>
  159. <p>As with Unix, great problems arise when cells keep on forking. They quickly exhaust resources, sometimes leading to death. This is called a tumor. The cell is riddled with ‘ulimits’ and ‘watchdogs’ to prevent this sort of thing from happening. The number of divisions is limited by <a href="https://en.wikipedia.org/wiki/Telomere#Shortening" target="_blank">Telomere shortening</a>, for example.</p>
  160. <p>A cell cannot clone unless very stringent conditions are met - a ‘<a href="https://www.openbsd.org/" target="_blank">secure by default</a>’ configuration. It is only when these safeguards fail that tumors can grow. Like with computer security, it is hard to strike a balance between security (‘no cells can divide’) and usability.</p>
  161. <p>Compare this to the well known <a href="https://www.youtube.com/watch?v=eqvBaj8UYz4" target="_blank">Halting Problem</a>, first described by the founder of Computer Science, <a href="https://www.turing.org.uk/index.html" target="_blank">Alan Turing</a>. Perhaps it is as impossible to predict if a program will ever finish as it is to create a functional genome that cannot get cancer?</p>
  162. <h2 id="mirroring-failover">Mirroring, failover</h2>
  163. <p></p>
  164. <p><center></p>
  165. <figure>
  166. <img src="/articles/amazing-dna/helix.gif" alt="Stretch of DNA."> <figcaption>
  167. <p>Stretch of DNA.</p>
  168. </figcaption>
  169. </figure>
  170. <p></center></p>
  171. <p>Each DNA Helix is redundant in itself - you can see the genome as a twisted ladder whereby each spoke contains two bases - hence the word ‘base-pair’. If one of these bases is missing, it can be derived from the one on the other side. T always binds to A, C always to G. So, we can state that the genome is mirrored within the helix. ‘RAID-1’ so to speak.</p>
  172. <p>Furthermore, there are two copies of each chromosome present - one from each parent, with the notable exception of the Y chromosome, which is only present in males. The actual details are complicated - but most genes are thus present twice. In case one is broken or unsuccessfully mutated, the other independent copy is still there. This is what we would normally call ‘failover’.</p>
  173. <h2 id="cluttered-apis-dependency-hell">Cluttered APIs, dependency hell</h2>
  174. <p>As proteins interact in the cell, they rely on each others’ characteristics. It has just been shown that <a href="https://www.nature.com/articles/srep44948" target="_blank">proteins that interact with a lot of other proteins cannot evolve</a>, or at least, only do so at a very slow rate.</p>
  175. <p>They propose that this is because of great internal dependencies which inhibit the changing of the ‘contract’ of the protein. It is also noted that evolution does take place, but very slowly as both parts of the dependency need to evolve in a compatible way at the same time.</p>
  176. <h2 id="viruses-worms">Viruses, worms</h2>
  177. <p>Somebody recently proposed in a discussion that it would be really cool to hack the genome and compromise it so as to insert code that would copy itself to other genomes, using the host-body as its vehicle. ‘Just like the <a href="https://en.wikipedia.org/wiki/Nimda" target="_blank">nimda worm</a>!’</p>
  178. <p><em>He shortly thereafter realized that this is exactly what biological viruses have been doing for millions of years. And they are exceedingly good at it.
  179. A lot of these viruses have become a fixed part of our genome and hitch a ride with all of us. To do so, they have to hide from the virus scanner which tries to detect foreign code and prevent it from getting into the DNA.</em></p>
  180. <h2 id="the-central-dogma-c-o-a-out-exe">The Central Dogma: .c -&gt; .o -&gt; a.out/.exe</h2>
  181. <p>When scientists were still discovering the basics of genetics they were faced with lots of different chemicals but the correlation was unclear. When it became clear what comes from what it was hailed as a great triumph and called ‘The Central Dogma’.</p>
  182. <p>This dogma tells us that DNA is used to make RNA and that RNA is used to make proteins, which is like saying that from a .c file comes a .o object file, which can be compiled into an executable (a.out/exe). It also tells us that this is the only order in which information flows.</p>
  183. <p>Now, the Central Dogma has <a href="https://en.wikipedia.org/wiki/Central_dogma_of_molecular_biology#Transfers_of_information_not_explicitly_covered_in_the_theory" target="_blank">recently been tarnished</a> somewhat. Like any billion year old coding project, a lot of hacking has been going on, and sometimes information flows the other way. Sometimes RNA patches the DNA and at other times, the DNA is modified by proteines created earlier.</p>
  184. <p>But generally, the dependencies are clear, so the Central Dogma remains important.</p>
  185. <h2 id="binary-patching-aka-gene-therapy">Binary patching aka ‘Gene therapy’</h2>
  186. <p></p>
  187. <p><center></p>
  188. <figure>
  189. <img src="/articles/amazing-dna/genetherapy1big.gif">
  190. </figure>
  191. <p></center><p>
  192. We can fiddle easily enough with DNA. There are companies to which you can send an ASCII file with DNA characters, and they will synthesize the corresponding ‘output’ for you. We can also splice DNA into developing animals and plants.</p>
  193. <p></p><p>It is far harder to ‘patch the running executable’, as any programmer can attest. It is just like that with the genome. To change a running copy (‘a human’), you need to edit each and every relevant copy of the gene you want to patch.</p></p>
  194. <p>For many years, medical science has tried to patch people with SCID, or ‘Severe Combined Immunodeficiency’, which is a very nasty disease which in effect disables the immune system - leading to very ill patients. It has been clear for quite a while now which letters in the DNA need to be fixed in order to cure these people.</p>
  195. <p>Many attempts where made to patch running people, using viruses that insert new DNA into living organisms, but this proved to be very hard. The genome is guarded far too well for such a simple approach to work - cells guard their code <a href="https://www.zdnet.com/article/windows-xp-source-code-leaked-online-on-4chan-out-of-all-places/" target="_blank">better than Microsoft</a>!</p>
  196. <p>However, recently the right virus was found which was able to breach the protection of the genome and fix the broken characters, leading to <a href="https://www.medicalnewstoday.com/articles/320018" target="_blank">apparently healthy people</a>.</p>
  197. <h2 id="bug-regression">Bug Regression</h2>
  198. <p>When fixing a bug in a computer program, we often introduce new bugs in the course of doing so. The genome is rife with this thing. A lot of African Americans are immune to Malaria but instead suffer from <a href="https://en.wikipedia.org/wiki/Sickle_cell_disease" target="_blank">sickle cell anemia</a>:
  199. &gt;In tropical regions of the world where the parasite-borne disease malaria is prevalent, people with a single copy of a particular genetic mutation have a survival advantage.
  200. (…)
  201. While inheriting one copy of the mutation confers a benefit, inheriting two copies is a tragedy. Children born with two copies of the genetic mutation have sickle cell anemia, a painful disease that affects the red blood cells.
  202. &gt;
  203. &gt;<a href="https://books.google.pt/books?id=xBFNZCI3kd4C&amp;pg=RA3-PA17&amp;lpg=RA3-PA17&amp;dq=While+inheriting+one+copy+of+the+mutation+confers+a+benefit,+inheriting+two+copies+is+a+tragedy.+Children+born+with+two+copies+of+the+genetic+mutation&amp;source=bl&amp;ots=9LdQL5OKSx&amp;sig=ACfU3U13NQpobFuPP7fVuSf1E8ZO1eLhTA&amp;hl=pt-PT&amp;sa=X&amp;ved=2ahUKEwi1hZ6RlYvuAhVDxIUKHVvOCyoQ6AEwAHoECAEQAg#v=onepage&amp;q=While%20inheriting%20one%20copy%20of%20the%20mutation%20confers%20a%20benefit%2C%20inheriting%20two%20copies%20is%20a%20tragedy.%20Children%20born%20with%20two%20copies%20of%20the%20genetic%20mutation&amp;f=false" target="_blank">Link to quote</a></p>
  204. <p>There are quite a few examples of this happening. See also the wonderful book <a href="https://www.amazon.com/exec/obidos/ASIN/0060932902" target="_blank">‘Genome’ by Matt Ridley.</a></p>
  205. <p>Like computer storage, DNA (and its intermediate ‘RNA’) can get corrupted. To protect against common ‘single bit errors’, the encoding from individual DNA letters to proteins is degenerate. There are 4 RNA characters, U, C, G and A - in other words, a ‘byte’ is 2 bits long. Three characters correspond to an amino acid.</p>
  206. <p></p>
  207. <p><center></p>
  208. <figure>
  209. <img src="/articles/amazing-dna/nucleotides.jpg">
  210. </figure>
  211. <p></center></p>
  212. <p>6 bits could conceivably map to 64 amino acids, yet there are only 20 in use. For example, UCU, UCC, UCA and UCG all encode for ‘Serine’, whereas only UGG maps to ‘Tryptophan’.
  213. Now, it turns out that some likely ‘typos’ (UCU -&gt; UCC) in the encoding lead to an identical amino acid being expressed. For more about this fascinating phenomenon, read <a href="https://www.amazon.com/exec/obidos/ASIN/0465045669" target="_blank">‘Metamagical Themas’ by Douglas Hofstadter</a>.</p>
  214. <p><a href="https://www.reddit.com/r/ProgrammerHumor/comments/a482un/the_base_code_is_sacred_and_cannot_be_questioned/" target="_blank">Some code is sacred</a>. We may not remember who wrote it, or why - we just know that it works. The guy who thought it up may have left the company already. Such code is not to be tinkered with.</p>
  215. <p>DNA knows the concept of the ‘molecular clock’. Some parts of the genome are actively changing and some parts are sacrosanct. A good example of the latter are the Histone genes H3 and H4.</p>
  216. <p>These genes are fundamental to the actual storage of the genome and are thus of paramount importance. Any failure in this code rapidly leads to a non-functioning organism.</p>
  217. <p>So it is to be expected that this code isn’t tinkered with and that turns out the case. The H3 an H4 genes have a <em>zero</em> effective mutation rate in humans. But it goes far beyond that. You share almost the exact same code with anything from chickens to grass or molds.</p>
  218. <table><tr><td></td><td>
  219. RATES OF NUCLEOTIDE SUBSTITUTION PER SITE PER <b>1000 MILLION YEARS</b> BETWEEN
  220. VARIOUS HUMAN AND RODENT PROTEINS-CODING GENES WITH DIVERGENCE SET AT
  221. 80 MILLION YEARS BASED ON FOSSIL EVIDENCE:<p>
  222. </p><table border="1"><tr><td>gene</td><td>Number of codons</td><td>Effective rate</td>
  223. </tr><tr><td>histone 3</td><td>135</td><td>0.00</td>
  224. </tr><tr><td>histone 4</td><td>101</td><td>0.00</td>
  225. </tr><tr><td>insulin</td><td>51</td><td>0.13</td>
  226. </tr><tr><td>gamma interferon</td><td>136</td><td>2.79</td>
  227. </tr></table>
  228. </td><td></td></tr><tr><td></td>
  229. <td>
  230. <p>
  231. <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC117386/">Source</a>
  232. </p></td></tr></table>
  233. <p>Now, it does appear that there are two ways the genome can make sure that code does not mutate. The first way is described above: use amino acids that are highly degenerate and making sure that those typos that DO occur result in the same output.</p>
  234. <p>Furthermore, genes can be copied earlier or later in the cell’s reproductive process, leading to more or less favorable copying conditions. Many more of such conditions apply.</p>
  235. <p>It appears as if H3 and H4 were authored very carefully as they do have a lot of ‘synonymous changes’, which through the clever techniques described above do not lead to changes in the output.</p>
  236. <h2 id="framing-errors-start-and-stop-bits">Framing errors: start and stop bits</h2>
  237. <p><code>...0 0000 0001 0000 0010 0000 0011 0...</code></p>
  238. <p>This clearly describes the 8 bit values 1, 2 and 3. The spaces I added make it clear where a byte starts and stops. Many serial devices employ stop and start bits to encode where you start reading. If we shift this sequence slightly:</p>
  239. <p><code>...00 0000 0010 000 00100 000 00110 ...</code></p>
  240. <p>It suddenly reads 2, 4, 6! To prevent this from happening in DNA there are elaborate signals that tell the cell where to start reading. Interestingly, there are pieces of genome that can be read from multiple starting points, and produce useful (but different) results either way. That is what I call a cool hack!</p>
  241. <p>Each way a strand of DNA can be read is called an <a href="http://bioweb.uwlax.edu/GenWeb/Molecular/Seq_Anal/Translation/translation.html" target="_blank">Open Reading Frame</a> and there are generally 6, 3 each way.</p>
  242. <h2 id="massive-multiprocessing-each-cell-is-a-universe">Massive multiprocessing: each cell is a universe</h2>
  243. <p>Now, DNA is not like a computer programming language. It really isn’t. But there are some whopping analogies. We can view each cell as a CPU, running its own kernel. Each cell has a copy of the entire kernel, but choses to activate only the relevant parts. Which modules or drivers it loads, so to speak.</p>
  244. <p></p>
  245. <p><center></p>
  246. <figure>
  247. <img src="/articles/amazing-dna/cell.jpg" alt="A cell"> <figcaption>
  248. <p>A cell</p>
  249. </figcaption>
  250. </figure>
  251. <p></center></p>
  252. <p>If a cell needs to do something (‘call a function’), it whips up the right piece of the genome and transcribes it into RNA. The RNA is then translated into a sequence of amino acids, which together make up a protein the DNA coded for. Now for the really cool bit :-)</p>
  253. <p>This protein is tagged with a shipping address. This is a marker consisting of several amino acids which tell the rest of the cell where this protein needs to go. There is machinery which acts on these instructions, and delivers the protein, which is potentially on the outside of the cell.</p>
  254. <p>The delivery instruction is then stripped off and several post processing steps may be performed, possibly activating the protein - which is good, because you may not want to transport an active protein through places where it should not do work.</p>
  255. <h2 id="self-hosting-bootstrapping">Self hosting &amp; bootstrapping</h2>
  256. <p>If we were to destroy all existing C compilers on the planet and leave only the code for one, we would be in great trouble. Yes, we have the C code to a C compiler, but we need a C compiler to compile it!</p>
  257. <p>In actual fact, this was solved by not writing the first C compiler in C (duh), but in a language that was available already: B. See <a href="https://web.archive.org/web/20080113133738/cm.bell-labs.com/cm/cs/who/dmr/chist.html" target="_blank">here</a> for details about ‘bootstrapping’.</p>
  258. <p>The same holds for the genome. To create a new ‘binary’ of a specimen, a <em>living</em> copy is required. The genome needs an elaborate toolchain in order to deliver a living thing. The code itself is impotent. This toolchain is commonly called ‘your parents’.</p>
  259. <p>Update: Recently, it has become possible to ‘bootstrap’ life with very little actually living source material. The dictum “every cell comes from a cell” is becoming less true. See for example Mycoplasma laboratory.</p>
  260. <p>It appears that RNA, which is an intermediate code between DNA and a protein, may have been the ‘B’ for DNA. Which begs the question where RNA came from. It is very interesting to note that extra-terrestrial objects often contain amino acids! See <a href="http://www.google.com/search?hl=en&amp;q=amino+acids+meteorites" target="_blank">http://www.google.com/search?hl=en&amp;q=amino+acids+meteorites</a></p>
  261. <h2 id="the-makefile">The Makefile</h2>
  262. <p></p>
  263. <p><center></p>
  264. <figure>
  265. <img src="/articles/amazing-dna/homeobox.gif">
  266. </figure>
  267. <p></center><p>
  268. Organisms typically start out as a single cell, which as said before contains two entire copies of the genome. The big tarfile so to speak, with all files extracted, ready to go. Now what?</p>
  269. <p></p><p>Enter the Homeobox genes. Cells must be copied and assigned a purpose. The Homeobox genes start out by laying a ‘top to bottom’ dependency which reads ‘start with the head’. In order to make this happen, a chemical gradient is created by which cells can sense where they are, and decide if they need to do things useful for building a head, or for building a primordial notochord.</p></p>
  270. <p>Only discovered in 1983, the <a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2561923/" target="_blank">Homeobox genes</a> are a very exciting area of research right now. It is interesting to note that like a Makefile, ‘HOX’ genes only trigger things in other genes and don’t materially build things themselves.</p>
  271. <p>The homeobox ‘syntax’ appears to be very ‘holy’ in the sense described above. What happens if you copy paste the ‘legs selector’ part of a mouse HOX gene into the fruit fly Homeobox:</p>
  272. <blockquote>
  273. <p>“In fact, when the mouse Hox-B6 gene is inserted in Drosophila, it can substitute for Antennapedia and produce legs in place of antennae”</p>
  274. <p><a href="https://biology-pages.info/H/HomeoboxGenes.html" target="_blank">https://biology-pages.info/H/HomeoboxGenes.html</a></p>
  275. </blockquote>
  276. <p>The fruitfly and human genomes did not branch just millions of years ago but <strong>hundreds of millions of years ago</strong>. And you can copy paste parts (‘Selectors’ in the genetic language) of the Makefile and it still clicks. Please note that the ‘build a leg’ routine in a fruit fly is of course radically different from that in a mouse, but the ‘selector’ correctly triggers the right instructions.</p>
  277. <h2 id="plugins-plasmids">Plugins: Plasmids</h2>
  278. <p>All living organisms have DNA, sometimes organized into multiple chromosomes (‘libraries’), sometimes in only one, typically circular in that case. This goes for most bacteria. Next to this large main genome, such bacteria frequently also host ‘plasmids’: tiny circles of DNA with specific functions.</p>
  279. <p>Such plasmids are somewhat portable between species, and through a variety of mechanisms they do indeed get transferred horizontally. By this way even non-identical bacteria can ‘learn’ antibiotic resistance from each other, for example.</p>
  280. <p>Compared to the programming world, a plasmid is not voluntary, and is like LD_PRELOADing a .so or the equivalent on other platforms. And in fact, plasmids are frequently injected for research purposes. They can easily be injected in all kinds of bacteria, and immediately get to work.</p>
  281. <p>Plasmids copy themselves independently from the main chromosome, and are thus a permanent fixture of bacteria. To make this happen, a plasmid features the magnificently named <strong>‘<a href="https://en.wikipedia.org/wiki/Origin_of_replication" target="_blank">Origin of Replication</a>‘</strong> gene which gets triggered when the cell wants to divide.</p>
  282. <h2 id="further-reading">Further reading</h2>
  283. <p><strong><a href="https://www.amazon.com/exec/obidos/ASIN/0060932902" target="_blank">Genome</a> by Matt Ridley</strong></p>
  284. <p>An amazing account of an effect each chromosome has on our lives. Very readable yet strict in not ‘dumbing down’ the theory. Contains an impressive set of references.
  285. Source of many of the more impressive examples found on this page.
  286. And to help Matt along in the quest he clearly sets out in his book, I would like to state quite clearly:
  287. <strong>Genes are not there to cause diseases</strong></p>
  288. <p><strong><a href="https://www.amazon.com/exec/obidos/ASIN/0471330612" target="_blank">Human Molecular Genetics, second edition</a> by Tom Strachan and Andrew P. Read</strong></p>
  289. <p>Neatly fills the gap between ‘primary literature’ (ie, peer reviewed academic magazines and papers) and introductory textbooks. I’m literally dragging myself through this book, constantly looking things up in order to understand everything. If you really want to know the details about introns, exons, RNA in all its variants, how genes cause and prevent diseases, this is the book.</p>
  290. <p><strong><a href="https://www.amazon.com/exec/obidos/ASIN/0192860925" target="_blank">The Selfish Gene</a> by Richard Dawkins</strong></p>
  291. <p><a href="https://en.wikipedia.org/wiki/Richard_Dawkins" target="_blank">Richard Dawkins</a> is the <a href="https://en.wikipedia.org/wiki/W._Richard_Stevens" target="_blank">Richard Stevens</a> of evolution theory. Both have contributed practical work but are most famous for their crystal clear expositions of existing theory, opening up the world they describe to an audience of millions.</p>
  292. <p><strong><a href="https://www.amazon.com/exec/obidos/ASIN/0393315703" target="_blank">The Blind Watchmaker : Why the Evidence of Evolution Reveals a Universe Without Design</a> by Richard Dawkins</strong></p>
  293. <p>Again a book by Dawkins. More about evolution than about genes but clearly explains how evolution can be responsible for the intricate design found in many living things.
  294. Again very readable and fascinating on every level.</p>
  295. <p><strong><a href="https://www.amazon.com/exec/obidos/ASIN/0465045669" target="_blank">Metamagical Themas</a> by Douglas Hofstadter</strong></p>
  296. <p>This is an ‘idea’ book. It is filled to the brim with ideas, they simply ooze out of the pages. Many of these ideas are about information theory, genetics, life, intelligence, music, mathematics and people.
  297. Clearly not a genetic textbook but has been influential in imbuing enthusiasm for all things genetic in many people. Can often be found dirt cheap in second hand bookstores.
  298. Recommended.</p>
  299. </article>
  300. <hr>
  301. <footer>
  302. <p>
  303. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  304. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-home"></use>
  305. </svg> Accueil</a> •
  306. <a href="/david/log/" title="Accès au flux RSS"><svg class="icon icon-rss2">
  307. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-rss2"></use>
  308. </svg> Suivre</a> •
  309. <a href="http://larlet.com" title="Go to my English profile" data-instant><svg class="icon icon-user-tie">
  310. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-user-tie"></use>
  311. </svg> Pro</a> •
  312. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel"><svg class="icon icon-mail">
  313. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-mail"></use>
  314. </svg> Email</a> •
  315. <abbr class="nowrap" title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340"><svg class="icon icon-hammer2">
  316. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-hammer2"></use>
  317. </svg> Légal</abbr>
  318. </p>
  319. <template id="theme-selector">
  320. <form>
  321. <fieldset>
  322. <legend><svg class="icon icon-brightness-contrast">
  323. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-brightness-contrast"></use>
  324. </svg> Thème</legend>
  325. <label>
  326. <input type="radio" value="auto" name="chosen-color-scheme" checked> Auto
  327. </label>
  328. <label>
  329. <input type="radio" value="dark" name="chosen-color-scheme"> Foncé
  330. </label>
  331. <label>
  332. <input type="radio" value="light" name="chosen-color-scheme"> Clair
  333. </label>
  334. </fieldset>
  335. </form>
  336. </template>
  337. </footer>
  338. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  339. <script>
  340. function loadThemeForm(templateName) {
  341. const themeSelectorTemplate = document.querySelector(templateName)
  342. const form = themeSelectorTemplate.content.firstElementChild
  343. themeSelectorTemplate.replaceWith(form)
  344. form.addEventListener('change', (e) => {
  345. const chosenColorScheme = e.target.value
  346. localStorage.setItem('theme', chosenColorScheme)
  347. toggleTheme(chosenColorScheme)
  348. })
  349. const selectedTheme = localStorage.getItem('theme')
  350. if (selectedTheme && selectedTheme !== 'undefined') {
  351. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  352. }
  353. }
  354. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  355. window.addEventListener('load', () => {
  356. let hasDarkRules = false
  357. for (const styleSheet of Array.from(document.styleSheets)) {
  358. let mediaRules = []
  359. for (const cssRule of styleSheet.cssRules) {
  360. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  361. continue
  362. }
  363. // WARNING: Safari does not have/supports `conditionText`.
  364. if (cssRule.conditionText) {
  365. if (cssRule.conditionText !== prefersColorSchemeDark) {
  366. continue
  367. }
  368. } else {
  369. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  370. continue
  371. }
  372. }
  373. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  374. }
  375. // WARNING: do not try to insert a Rule to a styleSheet you are
  376. // currently iterating on, otherwise the browser will be stuck
  377. // in a infinite loop…
  378. for (const mediaRule of mediaRules) {
  379. styleSheet.insertRule(mediaRule.cssText)
  380. hasDarkRules = true
  381. }
  382. }
  383. if (hasDarkRules) {
  384. loadThemeForm('#theme-selector')
  385. }
  386. })
  387. </script>
  388. </body>
  389. </html>