in reply to Re: Counting hash values
in thread Counting hash values

If i undertand your update correctly.....
Im actually looking at several of these keys: 213118_at, 456218_at, 279548_at. Each of these will be in the format:
Affy:HG_U133A:ID_HERE:74:303;
With the obvious replacement of the middle id (key) value. The data in this format will again "probably" have a similar situation where multiple ids (values) as in my original example. Im after the id value that occurs most frequently, e.g ENSG00000123623. This has to be stored with the original key so I then know which key corresponds to the most abundant value. Im not at all interested in keeping the less frequent values, so these can be just dropped.
A bit of a mouthful I know, but its the way my head works.

MonkPaul.

Replies are listed 'Best First'.
Re^3: Counting hash values
by xdg (Monsignor) on May 26, 2006 at 16:50 UTC

    That's what I thought. My answer picks out the ID as being between the second and third colons.

    -xdg

    Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.