Fix error in InfiniteRandomMatingPopulationModel.getLikelihoodsCalculator
Same issue noticed in GATK4 [here](https://github.com/broadinstitute/gatk/issues/1856)
This commit is contained in:
parent
2c8356519c
commit
e1fadae139
|
|
@ -141,7 +141,7 @@ public class InfiniteRandomMatingPopulationModel implements GenotypingModel {
|
|||
}
|
||||
|
||||
private GenotypeLikelihoodCalculator getLikelihoodsCalculator(final int samplePloidy, final int alleleCount) {
|
||||
if (samplePloidy >= cacheAlleleCountCapacity)
|
||||
if (samplePloidy >= cachePloidyCapacity)
|
||||
return GenotypeLikelihoodCalculators.getInstance(samplePloidy, alleleCount);
|
||||
else if (alleleCount >= cacheAlleleCountCapacity)
|
||||
return GenotypeLikelihoodCalculators.getInstance(samplePloidy, alleleCount);
|
||||
|
|
|
|||
Loading…
Reference in New Issue