Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Regex Match Problem

by mwah (Hermit)
on Aug 24, 2010 at 19:07 UTC ( #857007=note: print w/replies, xml ) Need Help??


in reply to Regex Match Problem

I'd think you didn't get your reversal of the tag-sequence right

I modified this to:

print "tag \t= $tag\n"; my $RC_tag = reverse($tag); print "RC_tag \t= $RC_tag\n"; $RC_tag =~ tr/ACTGactg/TGACtgac/; print "RC_tag \t= $RC_tag\n";

This would print:

tag = ACGACACGTAT RC_tag = TATGCACAGCA RC_tag = ATACGTGTCGT

Which one would be correct?

In your original code,

my $tag = $tag_obj->seq; print "tag = ",$tag,"\n"; my $RC_tag = reverse $tag =~ tr/ACTGactg/TGACtgac/;

$RC_tag would be the number '11', which probably isn't what you want.

Regards

mwa

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2021-04-11 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?