Transcription from DNA sequence to RNA sequence
From Biolecture.org
Revision as of 19:51, 14 June 2016 by imported>Seung-hoon Kim (Created page with "<p>Change DNA sequence to RNA sequence</p> <p><strong>$DNASeq = 'GATACAA.......'';</strong></p> <p>#Make a new variable to copy the DNA information</p> <p><strong>...")
Change DNA sequence to RNA sequence
$DNASeq = 'GATACAA.......'';
#Make a new variable to copy the DNA information
$RNASeq = $DNASeq;
#Change all Thymines to Uracils
$RNASeq =~s/T/U/g;
print "DNA sequence : $DNASeq\n";
print "RNA sequence : $RNASeq";
exit;
=~ : binding operator tells Perl to match the pattern on the right against the string on the left
(http://docstore.mik.ua/orelly/perl4/lperl/ch09_03.htm)
s/ / / : substitution function, s is substitution operator, / is used to make a distinction
g : pattern modifier from start to end