Protect against non-standard ref bases. Ryan, please review.
This commit is contained in:
parent
75d5b88a3d
commit
275575462f
|
|
@ -120,6 +120,11 @@ public class LikelihoodCalculationEngine {
|
||||||
|
|
||||||
for( int jjj = 0; jjj < numHaplotypes; jjj++ ) {
|
for( int jjj = 0; jjj < numHaplotypes; jjj++ ) {
|
||||||
final Haplotype haplotype = haplotypes.get(jjj);
|
final Haplotype haplotype = haplotypes.get(jjj);
|
||||||
|
|
||||||
|
// TODO -- need to test against a reference/position with non-standard bases
|
||||||
|
if ( !Allele.acceptableAlleleBases(haplotype.getBases(), false) )
|
||||||
|
continue;
|
||||||
|
|
||||||
final int haplotypeStart = ( previousHaplotypeSeen == null ? 0 : computeFirstDifferingPosition(haplotype.getBases(), previousHaplotypeSeen.getBases()) );
|
final int haplotypeStart = ( previousHaplotypeSeen == null ? 0 : computeFirstDifferingPosition(haplotype.getBases(), previousHaplotypeSeen.getBases()) );
|
||||||
previousHaplotypeSeen = haplotype;
|
previousHaplotypeSeen = haplotype;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue