Hi, Didn't read the previous perl posts? Go here, perl #1 #2 #3 #4 ) In the previous post of perl programming, we learnt how to search an aminoacid in a protein sequence. Now, we are going to look at a program by which the "start and stop codons" in a protein sequence could be easily identified. Here, we go, Program to identify start and stop codons easily: print "enter a file containing Dna sequence\n"; $dnafile=<>; chomp($dnafile); unless(open(DNAFILENAME,$dnafile)) { print "file not found\n"; exit; } $dna=<DNAFILENAME>; $dna=join("",$dna); $dna=~s/\s//g; $dna=uc($dna); $dna=~tr/T/U/; print "The mrna is:\t",$dna,"\n"; my(%code)= ( 'AUG'=>'Start', 'UGA'=>'Stop', 'UAA'=>'Stop', 'UAG'=>'Stop', ); for($i=0;$i<(length($dna)-2);$i+=3) { $codon=substr($dna,$i,3); if($codon=~AUG) { $out.=$code{$cod...
My learning journey!