[Bioperl-l] Suggestion for Bio::PopGen::Statistics

Cheng-Ruei Lee cl134 at duke.edu
Sun Nov 13 14:42:05 UTC 2011


Hi all,

     Bioperl version: 1.006
     Here are two error messages when I'm using this module to  
calculate Fu & Li's statistics:
Illegal division by zero at (the Statistics.pm file) line 359
Illegal division by zero at (the Statistics.pm file) line 376
     A further tracking down shows that the first error happens when  
$n (sample size in the ingroup) equals 1 or 2, and the second error  
happens when $n equals 3. This is not really a bug though. I would  
suggest either in the original code, do a checking before the  
calculation (and skip the current calculation when $n == 1, 2, or 3 -  
rather than let the whole program die), or add a few lines of notes in  
the CPAN page.

Sincerely,
Cheng-Ruei Lee



More information about the Bioperl-l mailing list