Merged bug fix from Stable into Unstable
This commit is contained in:
commit
9ac72dbd4d
|
|
@ -94,6 +94,10 @@ public class GeneralPloidyIndelGenotypeLikelihoodsCalculationModel extends Gener
|
||||||
haplotypeMap.clear();
|
haplotypeMap.clear();
|
||||||
}
|
}
|
||||||
IndelGenotypeLikelihoodsCalculationModel.getHaplotypeMapFromAlleles(alleles, ref, ref.getLocus(), haplotypeMap);
|
IndelGenotypeLikelihoodsCalculationModel.getHaplotypeMapFromAlleles(alleles, ref, ref.getLocus(), haplotypeMap);
|
||||||
|
|
||||||
|
// sanity check: if haplotype map couldn't be created, clear allele list
|
||||||
|
if (haplotypeMap.isEmpty())
|
||||||
|
alleles.clear();
|
||||||
return alleles;
|
return alleles;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue