Hi,
so, some sample lines could be:
STN PF07660 597 I5EU07 - 125 +9 1e-140 467.1 11.7 1 2 5.9e-140 3.4e-137 455.5 7.3 + 9 595 238 822 232 824 0.97 - STN PF07660 597 I5EU07 - 125 +9 1e-140 467.1 11.7 2 2 3.9e-05 0.023 10.2 0.0 1 +48 227 864 949 842 962 0.80 -

and, in that case, we would need to store the first line, because the $iEvalue for the first line is 3.4e-137, which is lower (thus better) than the second line's $iEvalue which is 0.023.
So, the only thing I need is somehow, if I have the same $protein_ac (in this example I5EU07) and more than one lines of the same $pfam_ac_hit (in this example PF07660), I keep only the one with the lowest $iEvalue.

In reply to Re^2: How can I add an entry in a has of arrays based on numeric comparison? by Anonymous Monk
in thread How can I add an entry in a has of arrays based on numeric comparison? by Anonymous Monk

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.