Changes

From Biolecture.org

Perl change codon to AA

2,177 bytes added, 23:13, 22 May 2016
Created page with "<p>#!/usr/bin/perl<br /> use strict;<br /> use warnings;</p> <p><br /> my @bases=("u","c","a","g");<br /> my @AA=("F","F&q..."
<p>#!/usr/bin/perl<br />
use strict;<br />
use warnings;</p>

<p><br />
my @bases=(&quot;u&quot;,&quot;c&quot;,&quot;a&quot;,&quot;g&quot;);<br />
my @AA=(&quot;F&quot;,&quot;F&quot;,&quot;L&quot;,&quot;L&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;,&quot;S&quot;,&quot;Y&quot;,&quot;Y&quot;,&quot;.&quot;,&quot;.&quot;,&quot;C&quot;,&quot;C&quot;,&quot;.&quot;,&quot;W&quot;,&quot;L&quot;,&quot;L&quot;,&quot;L&quot;,&quot;L&quot;,&quot;P&quot;,&quot;P&quot;,&quot;P&quot;,&quot;P&quot;,<br />
&nbsp;&nbsp;&quot;H&quot;,&quot;H&quot;,&quot;Q&quot;,&quot;Q&quot;,&quot;R&quot;,&quot;R&quot;,&quot;R&quot;,&quot;R&quot;,&quot;I&quot;,&quot;I&quot;,&quot;I&quot;,&quot;M&quot;,&quot;T&quot;,&quot;T&quot;,&quot;T&quot;,&quot;T&quot;,&quot;N&quot;,&quot;N&quot;,&quot;K&quot;,&quot;K&quot;,&quot;S&quot;,&quot;S&quot;,&quot;R&quot;,&quot;R&quot;,<br />
&nbsp;&nbsp;&quot;V&quot;,&quot;V&quot;,&quot;V&quot;,&quot;V&quot;,&quot;A&quot;,&quot;A&quot;,&quot;A&quot;,&quot;A&quot;,&quot;D&quot;,&quot;D&quot;,&quot;E&quot;,&quot;E&quot;,&quot;G&quot;,&quot;G&quot;,&quot;G&quot;,&quot;G&quot;);</p>

<p><br />
for (my $i=0;$i&lt;4;$i++) {<br />
for (my $j=0;$j&lt;4;$j++) {<br />
for (my $k=0;$k&lt;4;$k++) {</p>

<p><br />
&nbsp;print $bases[$i], $bases[$j], $bases[$k], &quot; &quot;,&nbsp; $AA[16*($i)+4*($j)+($k)], &quot;&nbsp; &quot;;<br />
}}<br />
print &quot;\n&quot;;}</p>

<p>&nbsp;</p>

<p>uuu F&nbsp; uuc F&nbsp; uua L&nbsp; uug L&nbsp; ucu S&nbsp; ucc S&nbsp; uca S&nbsp; ucg S&nbsp; uau Y&nbsp; uac Y&nbsp; uaa .&nbsp; uag .&nbsp; ugu C&nbsp; ugc C&nbsp; uga .&nbsp; ugg W<br />
cuu L&nbsp; cuc L&nbsp; cua L&nbsp; cug L&nbsp; ccu P&nbsp; ccc P&nbsp; cca P&nbsp; ccg P&nbsp; cau H&nbsp; cac H&nbsp; caa Q&nbsp; cag Q&nbsp; cgu R&nbsp; cgc R&nbsp; cga R&nbsp; cgg R<br />
auu I&nbsp; auc I&nbsp; aua I&nbsp; aug M&nbsp; acu T&nbsp; acc T&nbsp; aca T&nbsp; acg T&nbsp; aau N&nbsp; aac N&nbsp; aaa K&nbsp; aag K&nbsp; agu S&nbsp; agc S&nbsp; aga R&nbsp; agg R<br />
guu V&nbsp; guc V&nbsp; gua V&nbsp; gug V&nbsp; gcu A&nbsp; gcc A&nbsp; gca A&nbsp; gcg A&nbsp; gau D&nbsp; gac D&nbsp; gaa E&nbsp; gag E&nbsp; ggu G&nbsp; ggc G&nbsp; gga G&nbsp; ggg G</p>

<p>&nbsp;</p>

Navigation menu