MonkPaul has asked for the wisdom of the Perl Monks concerning the following question:
Im stuck on a problem where I need to count the occurences of an Id in a hash. The Id is the value and the key is a string that contains a key word.
An example is:
KEY Value Affy:HG_U133A:213119_at:74:303; ENSG00000123643 Affy:HG_U133A:213119_at:542:439; ENSG00000123643 Affy:HG_U133A:213119_at:658:369; ENSG00000123643 Affy:HG_U133A:213119_at:199:255; ENSG00000123643 Affy:HG_U133A:213119_at:436:453; ENSG00000123643 Affy:HG_U133A:213119_at:324:381; ENSG00000458158 Affy:HG_U133A:213119_at:584:557; ENSG00000123643 Affy:HG_U133A:213119_at:234:507; ENSG00000123643 Affy:HG_U133A:213119_at:482:429; ENSG00000123643 Affy:HG_U133A:213119_at:608:451; ENSG00000458158 Affy:HG_U133A:213119_at:356:297; ENSG00000123643
213119_at : ENSG00000123643 = 9 (thank you wfsp) 213119_at : ENSG00000458158 = 2
I have looked at 100967 but its not what im after.
Does anybody have any ideas ?
cheers,
MonkPaul.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Counting hash values
by wfsp (Abbot) on May 26, 2006 at 11:48 UTC | |
|
Re: Counting hash values
by GrandFather (Saint) on May 26, 2006 at 11:49 UTC | |
|
Re: Counting hash values
by xdg (Monsignor) on May 26, 2006 at 11:49 UTC | |
by MonkPaul (Friar) on May 26, 2006 at 14:17 UTC | |
by xdg (Monsignor) on May 26, 2006 at 16:50 UTC | |
|
Re: Counting hash values
by jwkrahn (Abbot) on May 26, 2006 at 11:48 UTC |