Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

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.


In reply to Re: Bioinformatics coding question by talexb
in thread Bioinformatics coding question by charm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found