{"id":55,"date":"2010-12-31T21:48:24","date_gmt":"2010-12-31T21:48:24","guid":{"rendered":"http:\/\/occamstypewriter.org\/irregulars\/?p=55"},"modified":"2010-12-31T21:48:24","modified_gmt":"2010-12-31T21:48:24","slug":"genome-assembly-a-primer-for-the-shakespeare-fan","status":"publish","type":"post","link":"https:\/\/occamstypewriter.org\/irregulars\/2010\/12\/31\/genome-assembly-a-primer-for-the-shakespeare-fan\/","title":{"rendered":"Genome Assembly &#8211; a primer for the Shakespeare fan"},"content":{"rendered":"<p><strong><em>Once more unto the breach, dear friends, once more;<\/em><\/strong><br \/>\n&#8211; <em>The Life of King Henry the Fifth<\/em>, Act III, Scene 1<\/p>\n<p><a href=\"https:\/\/occamstypewriter.org\/irregulars\/2010\/12\/11\/genome-sequencing-shakespeare-style\/\">When last we met<\/a>, I tried to use Shakespeare&#8217;s <em>Romeo and Juliet<\/em> to help explain genome sequencing. In particular, we looked at how to find differences by comparing the genomes of individual people, either to each other or to a &#8220;gold standard&#8221; reference. It might be worth giving that article a read, if you haven&#8217;t already. It&#8217;s full of useful information, like why reading a human genome is like diving into the most boring 46-volume, 857,000-page epic you can imagine.<\/p>\n<p>Although I didn&#8217;t use the term there, the process of finding a short DNA sequence in that <em>magnum opus<\/em> is usually referred to as &#8220;mapping&#8221;. If you find out where it came from, you&#8217;ve &#8220;mapped&#8221; it to its proper genomic location. By analogy, we can take an isolated phrase (like the famous &#8220;Romeo, Romeo, wherefore are thou&#8230;&#8221; speech) and locate it by comparing with the whole text of the play. Doing this, we&#8217;d find it near the beginning of Act II, Scene 2.<\/p>\n<p>That works well for organisms that have had their genomes sequenced, like humans, mice, cattle, or bacteria &#8211; hundreds of species. There&#8217;s a nice, although I think incomplete, list at the <a href=\"http:\/\/www.genomenewsnetwork.org\/resources\/sequenced_genomes\/genome_guide_p1.shtml\">GNN &#8211; Quick Guide to Sequenced Genomes<a \/>. But what about the millions of species with no available genome sequence?<\/p>\n<p>Imagine, if you will, that you are a researcher who has just discovered a brand-new species of beetle (there are lots of species of beetles, so this is actually pretty likely). You might want to see what&#8217;s in its DNA that makes it different from other beetles, or find some genetic evidence to help work out how it&#8217;s related to other species.<\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/ricardipus\/3860701042\/\" title=\"Green Stink Bug nymph by Ricardipus, on Flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm4.static.flickr.com\/3470\/3860701042_1749d6ae51.jpg\" width=\"375\" height=\"500\" alt=\"Green Stink Bug nymph\" \/><\/a><br \/>\n<em>This isn&#8217;t an unknown species of beetle. In fact, it&#8217;s not a beetle at all.<\/em><\/p>\n<p>Most DNA sequencing specialists would take the approach of extracting the poor beetle&#8217;s DNA, fragmenting it up into manageable pieces, and sequencing these small fragments <em>en masse<\/em>. There are a number of good technologies for doing this, and they all give you the same result:  millions and millions of short &#8220;words&#8221;, made up of the letters A, C, G and T, the four chemical bases that make up DNA. These words are randomly derived from all over the hapless insect&#8217;s genome. Putting them together to make the beetle version of that 857,000-page book  (beetle genomes are generally a bit smaller &#8211; so maybe 43,000 pages) is like doing a huge jigsaw puzzle. One with really tiny pieces, all of more or less the same colour &#8211; and without the picture on the box lid to help you.<\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/ricardipus\/3334429112\/\" title=\"Roche\/454 sequence by Ricardipus, on Flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm4.static.flickr.com\/3388\/3334429112_816258c43d.jpg\" width=\"500\" height=\"333\" alt=\"Roche\/454 sequence\" \/><\/a><br \/>\n<em>Some high-throughput sequencing reactions. Each dot is one, growing up out of the screen toward you.<\/em><\/p>\n<p>This process, called &#8220;assembly&#8221;, relies on finding overlaps between sequences. Remember, these are all random fragments, starting and ending at different places, so if we have enough DNA (and thus enough copies of the genome) to begin with, by chance some of these fragments will have recognizable places where they overlap. And this is where <em>Julius Caesar<\/em> comes in.<\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/ricardipus\/3823511693\/\" title=\"Hadrian's Wall, 1998 by Ricardipus, on Flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm4.static.flickr.com\/3462\/3823511693_e713cfb314.jpg\" width=\"500\" height=\"333\" alt=\"Hadrian's Wall, 1998\" \/><\/a><br \/>\n<em>A Roman wall that has nothing to do with Julius Caesar.<\/em><\/p>\n<p>Imagine, if you will, that you&#8217;ve never read the play (I had to in high school, and have seen it performed once; your experience may differ). Think of this set of text fragments as being like a handful of short DNA sequences:<\/p>\n<pre><strong><font size=\"4\">ds, Romans, count\r\nns, countrymen, le\r\nFriends, Rom\r\nend me your ears;\r\ntrymen, lend me<\/font><\/strong><\/pre>\n<p>If you didn&#8217;t know the play, you might have trouble making sense of this &#8211; until you realize that some of them overlap. When you shuffle them around and line them up, you get something like this:<\/p>\n<pre><strong><font size=\"4\">\r\nFriends, Rom\r\n     ds, Romans, count\r\n             ns, countrymen, le\r\n                     trymen, lend me\r\n                              end me your ears;\r\n<\/strong><\/font><\/pre>\n<p>Which gives you the consensus:<\/p>\n<pre>\r\n<strong><font size=\"4\">Friends, Romans, countrymen, lend me your ears;\r\n<\/font><\/strong><\/pre>\n<p>If you&#8217;ve read the play, you know this as the beginning of Antony&#8217;s famous speech from Act III, Scene 2. If not, you might still recognize it as &#8220;real&#8221; English &#8211; it has syntax and meaning. And this is just how genome assembly works. Sophisticated computer programs use pattern recognition to look for overlaps, and assemble clusters of sequences, commonly referred to as &#8220;contigs&#8221; (for &#8220;contiguous assemblies&#8221;, I suppose). Smaller contigs are joined together to make larger ones, usually using other information about how they might fit together. These are are generally referred to as &#8220;scaffolds&#8221;. Ultimately, all of these are put together into the whole genome sequence.<\/p>\n<p>However, it&#8217;s not necessarily quite that simple. All but the simplest genomes (viruses and bacteria, for example) are riddled with pieces of DNA sequence that all look like each other, the dreaded &#8220;repetitive elements&#8221;. In our play analogy, you can think of them as common words that appear multiple times. These can play havoc with the assembly process. Consider this, one of my favourite passages of Shakespearean dialogue, from Act IV, Scene 2:<\/p>\n<p><strong>CASSIUS:<\/strong> Stand, ho!<br \/>\n<strong>BRUTUS:<\/strong> Stand, ho! Speak the word along.<br \/>\n<strong>First Soldier:<\/strong> Stand!<br \/>\n<strong>Second Soldier:<\/strong> Stand!<br \/>\n<strong>Third Soldier:<\/strong> Stand!<\/p>\n<p>Imagine you were trying to re-assemble the play&#8217;s script from many tiny pieces, and you came across a fragment, &#8220;Stand,&#8221;. Where does it go? Did Cassius speak it, or does it belong to Brutus?<\/p>\n<p>Even worse, what if there was an ambiguity in the last character? Perhaps it was blurred due to water damage, so that you only knew it was &#8220;Stand&#8221;, followed by <em>something<\/em>. Is that something a comma, an exclamation mark (both of which would fit in the passage above), or something else (a letter &#8220;s&#8221;, for example)? This kind of ambiguous character happens all the time in DNA sequencing, and the result in our example above is that now our piece of text could go in one of five places, spoken by no fewer than five different characters.<\/p>\n<p>We can fix this, at least some of the time, by asking for longer pieces of sequence (or, getting back to the jigsaw analogy, bigger pieces). If we have a longer text fragment like &#8220;Stand, ho! Speak the&#8221;, then we know <em>exactly<\/em> where it&#8217;s supposed to go, even though each of the four words individually occurs more than once in the play, and even if there are a few ambiguities in it. This is how we get around really short repeats in DNA sequence &#8211; by using sequence reads long enough to either encompass them entirely, or to make a unique sequence. But for long words or phrases that appear more than once, sometimes we just can&#8217;t find the right location, no matter what we do.<\/p>\n<p>Except &#8211; there is one more commonly used trick, called &#8220;paired-end&#8221;, or &#8220;mate pair&#8221; sequencing (these are slightly different things, but for our purpose it doesn&#8217;t really matter). This takes advantage of deriving DNA sequences from both ends of a much larger fragment, and using the location information from one to help position the other. Here&#8217;s how it works.<\/p>\n<p>The phrase &#8220;Caesar&#8217;s house&#8221; is spoken twice, once by a servant in Act III, Scene 2, and again by Antony in Act IV, Scene 1. Now, imagine we have a fragment of the play of, say, half a page or so in length, and we&#8217;ve found &#8220;Caesar&#8217;s house&#8221; at one end of it. If we look at the other end, we might find the rather unusual phrase, &#8220;slanderous loads&#8221;. The only place this occurs is in Act IV, almost exactly half a page away from one of the instances of &#8220;Caesar&#8217;s house&#8221;. Now, we can be reasonably certain that we&#8217;ve properly &#8220;mapped&#8221; the first phrase onto the play, and that it&#8217;s the one Antony speaks. The key here is that <em>we don&#8217;t need to know all the text in between<\/em> &#8211; in other words, we don&#8217;t need the whole half-page of text to help in mapping the ambiguous end. We just need to know that the two ends are about a half a page apart. This method of using paired sequences from the ends of large DNA fragments to map non-unique sequences is very useful in assembling unknown genomes.<\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/ricardipus\/3623522414\/\" title=\"Vercovicium by Ricardipus, on Flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm4.static.flickr.com\/3313\/3623522414_5c2b5302aa.jpg\" width=\"500\" height=\"333\" alt=\"Vercovicium\" \/><\/a><br \/>\n<em>This wasn&#8217;t Caesar&#8217;s house. He&#8217;d already been dead for a while when it was built.<\/em><\/p>\n<p>Genome assembly, of course, is much more complex and fraught with problems than I&#8217;ve led you to believe, but that&#8217;s the basic idea. At the end of the article are a few more <strike>frightening<\/strike> technical references, if you&#8217;d like to dig deeper. In the meantime, I can&#8217;t find a suitable quotation to finish off with, so I&#8217;ll just leave you with Octavius&#8217; closing words:<\/p>\n<p><em>So call the field to rest; and let&#8217;s away,<br \/>\nTo part the glories of this happy day.<\/em><br \/>\n<\/p>\n<hr \/>\n<p>\n<strong>Further Reading<\/strong><\/p>\n<p>I have relied on MIT&#8217;s excellent archive of the <a href=\"http:\/\/shakespeare.mit.edu\/\">complete works of William Shakespeare<\/a> for the quotations here and in the <a href=\"https:\/\/occamstypewriter.org\/irregulars\/2010\/12\/11\/genome-sequencing-shakespeare-style\/\">previous post<\/a>.<\/p>\n<p>If you&#8217;re really interested in beetle genomes, the description of the Red Flour Beetle one is a good place to start. Of course, if you <em>are<\/em> really interested in beetle genomes, you&#8217;ve probably read it already. You&#8217;ll need a subscription to the journal, though.<\/p>\n<ul>\n<li>Tribolium Genome Sequencing Consortium, <em>et al<\/em>. The genome of the model beetle and pest <em>Tribolium castaneum<\/em>. <em>Nature<\/em>, April 2008, vol. 452 issue 7190, pp. 949-55.<\/li>\n<\/ul>\n<p>Alignment is a technical and tricky process, but is somewhat de-mystified in some excellent reviews. I recommend the following:<\/p>\n<ul>\n<li>Flicek P, Birney E. Sense from sequence reads: methods for alignment and assembly. <em>Nature Methods<\/em>, November 2009, vol. 6 issue 11 supplement, pp. S6-S12. Somewhat technical, but a nice introduction from two experts from the European Bioinformatics Institute. You will, unfortunately, need a subscription to access it.<\/li>\n<li>Pop M, Salzberg SL. Bioinformatics challenges of new sequencing technology. <em>Trends in Genetics<\/em>, March 2008, vol. 24 issue 3, pp. 142-149. A technical, but accessible review of the assembly problem and other challenges of high throughput genome sequencing. Freely accessible <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/pmc\/articles\/PMC2680276\/?tool=pubmed\">online<\/a>.<\/li>\n<li>The <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/books\/NBK21101\/\">NCBI Handbook<\/a> (Editors: Jo McEntyre and Jim Ostell; National Center for Biotechnology Information, Bethesda, MD, USA:  2002-present) has some good information on genome assembly, but is very technical indeed. Start with Chapter 14, available online <a href=\"http:\/\/www.ncbi.nlm.nih.gov\/books\/NBK21086\/\">here<\/a>.<\/li>\n<\/ul>\n<p>Finally, if you&#8217;re in a silly mood, you could try these articles, which have nothing at all to do with sequence assembly.<\/p>\n<ul>\n<li>Hook EB. Shakespeare, genetics, malformations, and the Wars of the Roses: hereditary themes in Henry VI and Richard III. <em>Teratology<\/em>, Feb. 1987, vol. 35 issue 1, 147-55. I believe this one is freely available online <a href=\"http:\/\/onlinelibrary.wiley.com\/doi\/10.1002\/tera.1420350118\/abstract\">here<\/a>.<\/li>\n<li>Berg JM. Shakespeare as a geneticist. <em>Clinical Genetics<\/em>, March 2001, vol. 59 issue 3, pp. 165-70. Unfortunately, you&#8217;ll need a subscription for this one too.<\/li>\n<\/ul>\n<p>Last but not least &#8211; if you&#8217;re really interested in stretching the Shakespeare-medical science connection, try <a href=\"http:\/\/ricardipus.blogspot.com\/2009\/03\/willy-shakespeares-naughty-bottom-bits.html\">this blog post<\/a> of mine, discussing a very interesting paper about anal fistula and <em>All&#8217;s Well That Ends Well<\/em>. You just can&#8217;t make this stuff up.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;Assembly&#8221; is the process of putting millions of tiny DNA sequences together to make a full genome. Neither William Shakespeare, nor Julius Caesar, knew anything about it, but that&#8217;s not stopping me from using the play to help try to explain it. <a href=\"https:\/\/occamstypewriter.org\/irregulars\/2010\/12\/31\/genome-assembly-a-primer-for-the-shakespeare-fan\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,20],"tags":[22,5,23,12,10],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-education","category-guestposts","tag-assembly","tag-dna","tag-gratuitous-photography","tag-sequencing","tag-shakespeare"],"_links":{"self":[{"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":0,"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"wp:attachment":[{"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/occamstypewriter.org\/irregulars\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}