Fix for ASCAT crasches
|Reported by:||Nicklas Nordborg||Owned by:||Nicklas Nordborg|
NOTE! Changes in this ticket mainly affect the ASCAT fork on Github.
Some ASCAT analysis crashes with error message:
Error in if (score < tau) mu = 0 : missing value where TRUE/FALSE needed.
This error can happen both with the bimodality coefficient test and the segment mad test. It seems to be causes by segments that have very few SNPs and the calculations result in a division by 0. This could be fixed by reverting to the original test since it only uses the mean value.