Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Regex Match Problem

by mwah (Hermit)
on Aug 24, 2010 at 19:07 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://857007]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-23 06:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found