Convert DNA sequence into amino acid sequence by using perl

From Biolecture.org
Revision as of 15:06, 18 June 2016 by imported>Jimin Baek (Created page with "<p>From the lecture, there is two way to do this.</p> <p>First, typing all each codon.</p> <p>$uuu = 'F';</p> <p>$auu = 'I';</p> <p>...</p> <p>then use array...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

From the lecture, there is two way to do this.

First, typing all each codon.

$uuu = 'F';

$auu = 'I';

...

then use array

@AA = ( 'G', 'I', 'K', ...);

@Base = ( 'a', 't', 'g', 'c');

for (@Base) {

AA= ('A', "gcc", 'L', "uua", ...

for(%AA) {

...

print

write ( )