I've run into a small problem with the code (yes, that means it works:-)). In a few data files, I have two different digit lengths in the file. Ex: 10001_at, and 123456_at. I've tried things like adding another if statement, another loop, even placing the \d{6} and \d{5} parameters in different programs. When I use \d{6} parameter, it is able to function correctly and gather the subsequent sequences. When I use \d{5} however, it can't find anything at all except the control sequences, which I know won't pattern match and don't care. SOOO...I know the \d{5} is working because it recognizes sequences that don't match, but won't recognize the 10001_at target name or 6 digit target name either. Any ideas?
NOTE: the first half of the file is the 6 digits, while the second half is the 5 digit target name. Is it possible that the program stops partway throught the file since it can't imediately find a matching pattern? I thought that the $1 would cause it to look for the first matching pattern, no matter where it is in the file....

Bioinformatics

In reply to Re: Re: Re: Re: Why is it matching?? by bioinformatics
in thread Why is it matching?? by bioinformatics

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.