Bug fix in HC gga mode.
-- Don't try to test alleles which haven't had haplotypes assigned to them
This commit is contained in:
parent
1a95ce5dcf
commit
b9c331c2fa
|
|
@ -631,6 +631,10 @@ public class GenotypingEngine {
|
|||
if( eventToTest.getKey().equals(new Event(null)) )
|
||||
continue;
|
||||
|
||||
// only try to disambiguate for alleles that have had haplotypes previously assigned above
|
||||
if( eventToTest.getValue().isEmpty() )
|
||||
continue;
|
||||
|
||||
final Haplotype artificialHaplotype = eventToTest.getValue().get(0);
|
||||
if( isSubSetOf(artificialHaplotype.getEventMap(), h.getEventMap(), true) ) {
|
||||
matchingEvent = eventToTest.getKey();
|
||||
|
|
|
|||
Loading…
Reference in New Issue