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

Re: Bioinformatics coding question

by talexb (Chancellor)
on Dec 20, 2016 at 20:36 UTC ( [id://1178247]=note: print w/replies, xml ) Need Help??


in reply to Bioinformatics coding question

I echo brother kscwab's comments .. this sounds an awful lot like homework.

At the very least, break down what kind of pattern you are looking for. The regexp you've listed appears to look for

  • ATG;
  • ACGT repeated three times, which you capture into $1, then expect to repeat from three to five thousand times; and
  • One of TAA, TAG and TGA.
It's a bit hard to figure out exactly what your code is, because you haven't mastered putting the code between code tags. If you can explain in more complete sentences what you are looking for, I'm sure we can guide you into completing the Perl that you need to get the job done.

For example, the triplet you are looking for at the end .. the 'T' appears at the beginning of each pattern, so you are really looking for

  • T; followed by
  • AA, AG or GA.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2024-04-20 04:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found