4 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6,
5 6, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9,
6 9, 10, 10, 10, 10, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11,
7 11, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12,
8 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12
18 if(!defined($groupn)){
19 print "Usage: residue_entropy <groupsize> \n";
30 my$step=$#nums/$groupn;
31 for(my$i=0;$i<$step;$i++){
33 for(my$j=$i;$j<$#nums;$j+=$step){
35 $num=-$quant[int(-$nums[$j]*2)];
37 $num=$quant[int($nums[$j]*2)];
42 if(!defined($hash{$key})){
48 if(($lines % 1000)==0){
49 print "\rworking... $lines lines, found $count values so far";
53 foreach $key (keys %hash){
57 print "\r$count values total \n";