Potential corner condition bug fix: protect against null pointer exceptions when computing consensus indel bases when UG is discovering alt alleles. If an alt allele has non-standard bases, skip allele gracefully instead of adding null object into list
This commit is contained in:
parent
58245bfa2f
commit
b8cd959461
|
|
@ -240,6 +240,7 @@ public class IndelGenotypeLikelihoodsCalculationModel extends GenotypeLikelihood
|
||||||
refAllele = Allele.create(refBases, true);
|
refAllele = Allele.create(refBases, true);
|
||||||
altAllele = Allele.create(Allele.NULL_ALLELE_STRING, false);
|
altAllele = Allele.create(Allele.NULL_ALLELE_STRING, false);
|
||||||
}
|
}
|
||||||
|
else continue; // don't go on with this allele if refBases are non-standard
|
||||||
} else {
|
} else {
|
||||||
// insertion case
|
// insertion case
|
||||||
if (Allele.acceptableAlleleBases(s)) {
|
if (Allele.acceptableAlleleBases(s)) {
|
||||||
|
|
@ -247,6 +248,7 @@ public class IndelGenotypeLikelihoodsCalculationModel extends GenotypeLikelihood
|
||||||
altAllele = Allele.create(s, false);
|
altAllele = Allele.create(s, false);
|
||||||
stop = loc.getStart();
|
stop = loc.getStart();
|
||||||
}
|
}
|
||||||
|
else continue; // go on to next allele if consensus insertion has any non-standard base.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue