<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: For a given DNA sequence find its RNA transcript, find its reverse complement and check if the reverse complement contains a start codon]]></title>
	<link>https://bioinformaticsonline.com/snippets/view/27267/for-a-given-dna-sequence-find-its-rna-transcript-find-its-reverse-complement-and-check-if-the-reverse-complement-contains-a-start-codon?</link>
	<atom:link href="https://bioinformaticsonline.com/snippets/view/27267/for-a-given-dna-sequence-find-its-rna-transcript-find-its-reverse-complement-and-check-if-the-reverse-complement-contains-a-start-codon?" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/27267/for-a-given-dna-sequence-find-its-rna-transcript-find-its-reverse-complement-and-check-if-the-reverse-complement-contains-a-start-codon</guid>
	<pubDate>Tue, 10 May 2016 11:42:30 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/27267/for-a-given-dna-sequence-find-its-rna-transcript-find-its-reverse-complement-and-check-if-the-reverse-complement-contains-a-start-codon</link>
	<title><![CDATA[For a given DNA sequence find its RNA transcript, find its reverse complement and check if the reverse complement contains a start codon]]></title>
	<description><![CDATA[<code>#!/usr/bin/perl
use strict;
use warnings;

my $DNA = &quot;GATTACACAT&quot;;

#transcribe DNA to RNA - T changes to U
my $RNA = $DNA;
$RNA =~ s/T/U/g;
print &quot;RNA sequence is $RNA\n&quot;;

#find the reverse complement of $DNA using substitution operator
#first - reverse the sequence
my $rcDNA = reverse($DNA);

$rcDNA =~ s/T/A/g;
$rcDNA =~ s/A/T/g;
$rcDNA =~ s/G/C/g;
$rcDNA =~ s/C/G/g;

print &quot;Reverse complement of $DNA is $rcDNA\n&quot;; #did it work?

#find the reverse complement of $DNA using translation operator
#first - reverse the sequence
$rcDNA = reverse($DNA);
#then - complement the sequence
$rcDNA =~ tr/ACGT/TGCA/;
#then - print the reverse complement
print &quot;Reverse complement of $DNA is $rcDNA\n&quot;;

#look for a start codon in the reverse sequence
if($rcDNA =~ /ATG/){
	print &quot;Start codon found\n&quot;;
}
else{
	print &quot;Start codon not found\n&quot;;
}</code>]]></description>
	<dc:creator>Nishi Singh</dc:creator>
</item>

</channel>
</rss>