Hi Monks! I have this loop but if i run it i become in the hash reference $freqocurrence a lot of 0s and i donīt know why.. any suggestions?
my $freqocurrence={};
my $observation={};
my $total10=0;
sub freq_oc{
foreach my $key (%$observation){
$total10 += $observation->{$key};
}
foreach my $key (%$observation){
$freqocurrence->{$key} = $observation->{$key}/$total10;
print "Frequency of ocurrence:Aminoacid $key-> $freqocurrence->{$k
+ey}\n";
}
print Dumper $observation;
print Dumper $freqocurrence;
}