in reply to Re: Re: Re: max value in a hash
in thread max value in a hash
Keys value A 1 A 2 A 3 B 4 B 5 B 6
THIS CODE DOES NOT WORK!! Any Ideause strict; use warnings; use List::Util qw(first max); while(<INPUT2>){ (my $probeset_id, my $origin, my $probeseq, my $pip, my $gc, +my $affyscore) = split("\t", $_); push (@{$hash_F2_1{$origin}}, $pip); # This makes a hash of m +ultiple value for each probeset ID foreach my $origin (sort keys %hash_F2_1){ foreach my $position (@{$hash_F2_1{$origin}}){ my $max = max values %hash_F2_1; print "$origin\t$max\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: max value in a hash
by toolic (Bishop) on Sep 12, 2008 at 18:18 UTC | |
by sesemin (Beadle) on Sep 14, 2008 at 20:52 UTC |