Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Another Reverse Complement Question...

by Cristoforo (Curate)
on Jun 04, 2012 at 20:31 UTC ( [id://974373]=note: print w/replies, xml ) Need Help??


in reply to Another Reverse Complement Question...

I don't work with BioPerl, but they do have a reverse complement method, revcom and it can be used like this example:

#!/usr/bin/perl use strict; use warnings; use 5.014; use Bio::PrimarySeq; my $seqobj = Bio::PrimarySeq->new(-seq => 'ACTGTGGCGTCAACTG', -alphabet => 'dna', -id => 'test'); say $seqobj->seq; say $seqobj->revcom->seq; __END__ *** print out ACTGTGGCGTCAACTG CAGTTGACGCCACAGT

But this doesn't do the translation you want: A => T, C => G, G => C and T => A. So, I don't know if this is any help.

Update: After examining the reversed complement sequence, I see indeed it performs the complement as you stated but it also reverses the sequence with the first letter in the original being complemented and last in the reversed sequence, the second in the original complemented and being next to last in the reversed complement sequence, etc.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://974373]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (2)
As of 2024-04-20 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found