Skip to content

Instantly share code, notes, and snippets.

@sashaphanes
Created September 27, 2012 19:53
Show Gist options
  • Save sashaphanes/3796108 to your computer and use it in GitHub Desktop.
Save sashaphanes/3796108 to your computer and use it in GitHub Desktop.
reversecomplement
my $DNA1 = 'AAATTTTGGGGCCCCaaaaatttttcccccggggg';
my $rev = reverse($DNA1);
my $DNA2 = $DNA1;
$DNA2 =~ tr /atcgATCG/tagcTAGC/;
print "$rev\n";
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment