<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://xmlpipedb.lmucs.io/biodb/fall2015/index.php?action=history&amp;feed=atom&amp;title=Bklein7_Week_3</id>
		<title>Bklein7 Week 3 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://xmlpipedb.lmucs.io/biodb/fall2015/index.php?action=history&amp;feed=atom&amp;title=Bklein7_Week_3"/>
		<link rel="alternate" type="text/html" href="https://xmlpipedb.lmucs.io/biodb/fall2015/index.php?title=Bklein7_Week_3&amp;action=history"/>
		<updated>2026-04-08T22:33:03Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.25.1</generator>

	<entry>
		<id>https://xmlpipedb.lmucs.io/biodb/fall2015/index.php?title=Bklein7_Week_3&amp;diff=1491&amp;oldid=prev</id>
		<title>Bklein7: Made further, minor style edits</title>
		<link rel="alternate" type="text/html" href="https://xmlpipedb.lmucs.io/biodb/fall2015/index.php?title=Bklein7_Week_3&amp;diff=1491&amp;oldid=prev"/>
				<updated>2015-09-21T22:51:35Z</updated>
		
		<summary type="html">&lt;p&gt;Made further, minor style edits&lt;/p&gt;
&lt;table class=&#039;diff diff-contentalign-left&#039;&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;tr style=&#039;vertical-align: top;&#039;&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 22:51, 21 September 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L9&quot; &gt;Line 9:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 9:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Building the Command Sequences====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Building the Command Sequences====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Write &amp;#039;&amp;#039;6&amp;#039;&amp;#039; sets of text processing commands that, when given a nucleotide sequence, returns the resulting amino acid sequence, one for each possible reading frame for the nucleotide sequence.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Write &amp;#039;&amp;#039;6&amp;#039;&amp;#039; sets of text processing commands that, when given a nucleotide sequence, returns the resulting amino acid sequence, one for each possible reading frame for the nucleotide sequence.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*To tackle this problem, I started by crafting the simplest sequence of commands that &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;carried &lt;/del&gt;out the central dogma by translating DNA sequences to amino acid sequences. This command sequence served as the &amp;quot;backbone&amp;quot; from which all 6 reading frame sequences &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;are &lt;/del&gt;built. Incidentally, this code also aligned with that necessary to transcribe the &amp;#039;&amp;#039;+1 reading frame&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*To tackle this problem, I started by crafting the simplest sequence of commands that &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;carries &lt;/ins&gt;out the central dogma by translating DNA sequences to amino acid sequences. This command sequence served as the &amp;quot;backbone&amp;quot; from which all 6 reading frame sequences &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;were &lt;/ins&gt;built. Incidentally, this code also aligned with that necessary to transcribe the &amp;#039;&amp;#039;+1 reading frame&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*#I began with a cat command to view a text file with a DNA sequence&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*#I began with a cat command to view a text file with a DNA sequence&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*#*cat &amp;#039;&amp;#039;sequence_file&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*#*cat &amp;#039;&amp;#039;sequence_file&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L34&quot; &gt;Line 34:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 34:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;-1 Reading Frame&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*&amp;#039;&amp;#039;&amp;#039;-1 Reading Frame&amp;#039;&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**The &amp;quot;backbone&amp;quot; command sequence from above had to be slightly altered for the negative reading frames to account for the reading of a complimentary, antiparallel strand of DNA&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**The &amp;quot;backbone&amp;quot; command sequence from above had to be slightly altered for the negative reading frames to account for the reading of a complimentary, antiparallel strand of DNA&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**#&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Begin &lt;/del&gt;with the code from the +1 reading frame&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**#&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;I began &lt;/ins&gt;with the code from the +1 reading frame&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**#*cat &amp;#039;&amp;#039;sequence_file&amp;#039;&amp;#039; | sed &amp;quot;s/t/u/g&amp;quot; | sed &amp;quot;s/.../&amp;amp; /g&amp;quot; | sed -f genetic-code.sed | sed &amp;quot;s/[atcg]//g&amp;quot; | sed &amp;quot;s/ //g&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**#*cat &amp;#039;&amp;#039;sequence_file&amp;#039;&amp;#039; | sed &amp;quot;s/t/u/g&amp;quot; | sed &amp;quot;s/.../&amp;amp; /g&amp;quot; | sed -f genetic-code.sed | sed &amp;quot;s/[atcg]//g&amp;quot; | sed &amp;quot;s/ //g&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**#I added the sed command from the &amp;quot;Compliment of a Strand&amp;quot; section above at the beginning of this sequence. This yielded the DNA sequence complimentary to that which we were originally working with&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;**#I added the sed command from the &amp;quot;Compliment of a Strand&amp;quot; section above at the beginning of this sequence. This yielded the DNA sequence complimentary to that which we were originally working with&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;L49&quot; &gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; cat &amp;#039;&amp;#039;sequence_file&amp;#039;&amp;#039; | sed &amp;quot;y/atcg/tagc/&amp;quot; | sed &amp;quot;s/t/u/g&amp;quot; | rev | sed &amp;quot;s/^..//g&amp;quot; | sed &amp;quot;s/.../&amp;amp; /g&amp;quot; | sed -f genetic-code.sed |&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; cat &amp;#039;&amp;#039;sequence_file&amp;#039;&amp;#039; | sed &amp;quot;y/atcg/tagc/&amp;quot; | sed &amp;quot;s/t/u/g&amp;quot; | rev | sed &amp;quot;s/^..//g&amp;quot; | sed &amp;quot;s/.../&amp;amp; /g&amp;quot; | sed -f genetic-code.sed |&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; sed &amp;quot;s/[atcg]//g&amp;quot; | sed &amp;quot;s/ //g&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; sed &amp;quot;s/[atcg]//g&amp;quot; | sed &amp;quot;s/ //g&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Testing the Command Sequences====&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;====Testing the Command Sequences====&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Prior to any testing any commands, I entered the directory &amp;#039;&amp;#039;~dondi/xmlpipedb/data&amp;#039;&amp;#039; to access the files present there.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Prior to any testing any commands, I entered the directory &amp;#039;&amp;#039;~dondi/xmlpipedb/data&amp;#039;&amp;#039; to access the files present there.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Bklein7</name></author>	</entry>

<tr><td colspan="2" class="diff-lineno" id="L2" ><!--LINE 2--></td>
<td colspan="2" class="diff-lineno"><!--LINE 2--></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>===Complement of a Strand===</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>===Complement of a Strand===</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>Write a sequence of piped text processing commands that, when given a nucleotide sequence, returns its complementary strand.</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>Write a sequence of piped text processing commands that, when given a nucleotide sequence, returns its complementary strand.</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>#<del class="diffchange diffchange-inline">Begin </del>with a cat command to view a text file with a DNA sequence</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>#<ins class="diffchange diffchange-inline">I begin </ins>with a cat command to view a text file with a DNA sequence</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>#After the pipe character, <del class="diffchange diffchange-inline">link </del>together a sed command that invokes a letter by letter replacement of A, T, C, and G with their complementary bases (T, A, G, and C in that order).</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>#After the pipe character, <ins class="diffchange diffchange-inline">I linked </ins>together a sed command that invokes a letter by letter replacement of A, T, C, and G with their complementary bases (T, A, G, and C in that order).</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>&#160; cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;y/atcg/tagc/&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>&#160; cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;y/atcg/tagc/&quot;</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'></td><td class='diff-marker'>&#160;</td><td class='diff-context'></td></tr>
<tr><td colspan="2" class="diff-lineno" id="L9" ><!--LINE 9--></td>
<td colspan="2" class="diff-lineno"><!--LINE 9--></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>====Building the Command Sequences====</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>====Building the Command Sequences====</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>Write &#039;&#039;6&#039;&#039; sets of text processing commands that, when given a nucleotide sequence, returns the resulting amino acid sequence, one for each possible reading frame for the nucleotide sequence.</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>Write &#039;&#039;6&#039;&#039; sets of text processing commands that, when given a nucleotide sequence, returns the resulting amino acid sequence, one for each possible reading frame for the nucleotide sequence.</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>*To tackle this problem, <del class="diffchange diffchange-inline">start </del>by crafting the simplest sequence of commands that <del class="diffchange diffchange-inline">will carry </del>out the central dogma by translating DNA sequences to amino acid sequences. This command sequence <del class="diffchange diffchange-inline">will serve </del>as the &quot;backbone&quot; from which all 6 reading frame sequences are built. Incidentally, this code <del class="diffchange diffchange-inline">will </del>also <del class="diffchange diffchange-inline">align </del>with that necessary to transcribe the &#039;&#039;+1 reading frame&#039;&#039;.</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>*To tackle this problem, <ins class="diffchange diffchange-inline">I started </ins>by crafting the simplest sequence of commands that <ins class="diffchange diffchange-inline">carried </ins>out the central dogma by translating DNA sequences to amino acid sequences. This command sequence <ins class="diffchange diffchange-inline">served </ins>as the &quot;backbone&quot; from which all 6 reading frame sequences are built. Incidentally, this code also <ins class="diffchange diffchange-inline">aligned </ins>with that necessary to transcribe the &#039;&#039;+1 reading frame&#039;&#039;.</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>*#<del class="diffchange diffchange-inline">Begin </del>with a cat command to view a text file with a DNA sequence</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>*#<ins class="diffchange diffchange-inline">I began </ins>with a cat command to view a text file with a DNA sequence</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>*#<del class="diffchange diffchange-inline">Add </del>a sed command <del class="diffchange diffchange-inline">representing </del>the transcription of DNA to RNA, replacing &quot;T&quot; nucleotides with &quot;U&quot; nucleotides</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>*#<ins class="diffchange diffchange-inline">I added </ins>a sed command <ins class="diffchange diffchange-inline">that represented </ins>the transcription of DNA to RNA, replacing &quot;T&quot; nucleotides with &quot;U&quot; nucleotides</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>*#<del class="diffchange diffchange-inline">Add </del>a sed command <del class="diffchange diffchange-inline">representing </del>the (+1) reading frame for the codons<del class="diffchange diffchange-inline">, inserting </del>a space after every three characters</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>*#<ins class="diffchange diffchange-inline">I added </ins>a sed command <ins class="diffchange diffchange-inline">that represented </ins>the (+1) reading frame for the codons <ins class="diffchange diffchange-inline">and inserted </ins>a space after every three characters</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>*#<del class="diffchange diffchange-inline">Add </del>a sed command to translate each codon to its associated amino acid. For this exercise, the simplest way to do this <del class="diffchange diffchange-inline">is </del>to read from the rules file &#039;&#039;~dondi/xmlpipedb/data/genetic-code.sed&#039;&#039;</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>*#<ins class="diffchange diffchange-inline">I added </ins>a sed command to translate each codon to its associated amino acid. For this exercise, the simplest way <ins class="diffchange diffchange-inline">I found </ins>to do this <ins class="diffchange diffchange-inline">was </ins>to read from the rules file &#039;&#039;~dondi/xmlpipedb/data/genetic-code.sed&#039;&#039;</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>*#<del class="diffchange diffchange-inline">Add </del>a sed command to remove lingering nucleotides at the beginning and/or end of the output that were not translated due to not being present in a triplet in the present reading frame. This <del class="diffchange diffchange-inline">will prevent </del>confusing these untranslated nucleotides with amino acids</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>*#<ins class="diffchange diffchange-inline">I added </ins>a sed command to remove lingering nucleotides at the beginning and/or end of the output that were not translated due to not being present in a triplet in the present reading frame. This <ins class="diffchange diffchange-inline">prevented </ins>confusing these untranslated nucleotides with amino acids</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;[atcg]//g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;[atcg]//g&quot;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>*#Finally, <del class="diffchange diffchange-inline">remove </del>spaces from in between the separate amino acid designations to condense the output (has both aesthetic and practical purposes). This <del class="diffchange diffchange-inline">will yield </del>the final command sequence:</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>*#Finally, <ins class="diffchange diffchange-inline">I removed </ins>spaces from in between the separate amino acid designations to condense the output (has both aesthetic and practical purposes). This <ins class="diffchange diffchange-inline">yielded </ins>the final command sequence:</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'></td><td class='diff-marker'>&#160;</td><td class='diff-context'></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*&#039;&#039;&#039;+1 Reading Frame&#039;&#039;&#039;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*&#039;&#039;&#039;+1 Reading Frame&#039;&#039;&#039;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>**The command sequence above already <del class="diffchange diffchange-inline">processes </del>the genetic code within the +1 reading frame:</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>**The command sequence above already <ins class="diffchange diffchange-inline">processed </ins>the genetic code within the +1 reading frame:</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>&#160; cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>&#160; cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*&#039;&#039;&#039;+2 Reading Frame&#039;&#039;&#039;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*&#039;&#039;&#039;+2 Reading Frame&#039;&#039;&#039;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>**<del class="diffchange diffchange-inline">Simply alter </del>the +1 reading frame code to include a sed command for the deletion of the first character of the text file (i.e. nucleotide) prior to division into triplets:</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>**<ins class="diffchange diffchange-inline">I simply altered </ins>the +1 reading frame code to include a sed command for the deletion of the first character of the text file (i.e. nucleotide) prior to division into triplets:</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>&#160; cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/^.//g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>&#160; cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/^.//g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*&#039;&#039;&#039;+3 Reading Frame&#039;&#039;&#039;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*&#039;&#039;&#039;+3 Reading Frame&#039;&#039;&#039;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>**<del class="diffchange diffchange-inline">Alter </del>the +1 reading frame code to include a sed command for the deletion of the first &#039;&#039;two&#039;&#039; characters of the text file (i.e. nucleotides) prior to division into triplets:</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>**<ins class="diffchange diffchange-inline">I altered </ins>the +1 reading frame code to include a sed command for the deletion of the first &#039;&#039;two&#039;&#039; characters of the text file (i.e. nucleotides) prior to division into triplets:</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>&#160; cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/^..//g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>&#160; cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/^..//g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*&#039;&#039;&#039;-1 Reading Frame&#039;&#039;&#039;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>*&#039;&#039;&#039;-1 Reading Frame&#039;&#039;&#039;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>**The &quot;backbone&quot; command sequence from above <del class="diffchange diffchange-inline">will have </del>to be slightly altered for the negative reading frames to account for the reading of a complimentary, antiparallel strand of DNA</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>**The &quot;backbone&quot; command sequence from above <ins class="diffchange diffchange-inline">had </ins>to be slightly altered for the negative reading frames to account for the reading of a complimentary, antiparallel strand of DNA</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>**#Begin with the code from the +1 reading frame</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>**#Begin with the code from the +1 reading frame</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>**#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>**#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td></tr>
<tr><td class='diff-marker'>−</td><td class='diff-deletedline'><div>**#<del class="diffchange diffchange-inline">Add </del>the sed command from the &quot;Compliment of a Strand&quot; section above at the beginning of this sequence. This <del class="diffchange diffchange-inline">will yield </del>the DNA sequence complimentary to that which we were originally working with</div></td><td class='diff-marker'>+</td><td class='diff-addedline'><div>**#<ins class="diffchange diffchange-inline">I added </ins>the sed command from the &quot;Compliment of a Strand&quot; section above at the beginning of this sequence. This <ins class="diffchange diffchange-inline">yielded </ins>the DNA sequence complimentary to that which we were originally working with</div></td></tr>
<tr><td class='diff-marker'>&#160;</td><td class='diff-context'><div>**#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;y/atcg/tagc/&quot; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td><td class='diff-marker'>&#160;</td><td class='diff-context'><div>**#*cat &#039;&#039;sequence_file&#039;&#039; | sed &quot;y/atcg/tagc/&quot; | sed &quot;s/t/u/g&quot; | sed &quot;s/.../&amp; /g&quot; | sed -f genetic-code.sed | sed &quot;s/[atcg]//g&quot; | sed &quot;s/ //g&quot;</div></td></tr>
Exception encountered, of type &quot;Error&quot;<br />
[5fb0f251] /biodb/fall2015/index.php?action=history&amp;feed=atom&amp;title=Bklein7_Week_3   Error from line 434 of /apps/xmlpipedb/biodb/fall2015/includes/diff/DairikiDiff.php: Call to undefined function each()<br />
Backtrace:<br />
#0 /apps/xmlpipedb/biodb/fall2015/includes/diff/DairikiDiff.php(544): DiffEngine-&gt;diag()<br />
#1 /apps/xmlpipedb/biodb/fall2015/includes/diff/DairikiDiff.php(344): DiffEngine-&gt;compareSeq()<br />
#2 /apps/xmlpipedb/biodb/fall2015/includes/diff/DairikiDiff.php(227): DiffEngine-&gt;diffLocal()<br />
#3 /apps/xmlpipedb/biodb/fall2015/includes/diff/DairikiDiff.php(721): DiffEngine-&gt;diff()<br />
#4 /apps/xmlpipedb/biodb/fall2015/includes/diff/DairikiDiff.php(859): Diff-&gt;__construct()<br />
#5 /apps/xmlpipedb/biodb/fall2015/includes/diff/DairikiDiff.php(980): MappedDiff-&gt;__construct()<br />
#6 /apps/xmlpipedb/biodb/fall2015/includes/diff/TableDiffFormatter.php(194): WordLevelDiff-&gt;__construct()<br />
#7 /apps/xmlpipedb/biodb/fall2015/includes/diff/DiffFormatter.php(140): TableDiffFormatter-&gt;changed()<br />
#8 /apps/xmlpipedb/biodb/fall2015/includes/diff/DiffFormatter.php(82): DiffFormatter-&gt;block()<br />
#9 /apps/xmlpipedb/biodb/fall2015/includes/diff/DifferenceEngine.php(888): DiffFormatter-&gt;format()<br />
#10 /apps/xmlpipedb/biodb/fall2015/includes/diff/DifferenceEngine.php(802): DifferenceEngine-&gt;generateTextDiffBody()<br />
#11 /apps/xmlpipedb/biodb/fall2015/includes/diff/DifferenceEngine.php(733): DifferenceEngine-&gt;generateContentDiffBody()<br />
#12 /apps/xmlpipedb/biodb/fall2015/includes/diff/DifferenceEngine.php(662): DifferenceEngine-&gt;getDiffBody()<br />
#13 /apps/xmlpipedb/biodb/fall2015/includes/FeedUtils.php(155): DifferenceEngine-&gt;getDiff()<br />
#14 /apps/xmlpipedb/biodb/fall2015/includes/actions/HistoryAction.php(325): FeedUtils::formatDiffRow()<br />
#15 /apps/xmlpipedb/biodb/fall2015/includes/actions/HistoryAction.php(290): HistoryAction-&gt;feedItem()<br />
#16 /apps/xmlpipedb/biodb/fall2015/includes/actions/HistoryAction.php(130): HistoryAction-&gt;feed()<br />
#17 /apps/xmlpipedb/biodb/fall2015/includes/actions/FormlessAction.php(43): HistoryAction-&gt;onView()<br />
#18 /apps/xmlpipedb/biodb/fall2015/includes/MediaWiki.php(395): FormlessAction-&gt;show()<br />
#19 /apps/xmlpipedb/biodb/fall2015/includes/MediaWiki.php(273): MediaWiki-&gt;performAction()<br />
#20 /apps/xmlpipedb/biodb/fall2015/includes/MediaWiki.php(566): MediaWiki-&gt;performRequest()<br />
#21 /apps/xmlpipedb/biodb/fall2015/includes/MediaWiki.php(414): MediaWiki-&gt;main()<br />
#22 /apps/xmlpipedb/biodb/fall2015/index.php(44): MediaWiki-&gt;run()<br />
#23 {main}<br />

