Bug fix for Chris: don't validate ref base for complex events.

This commit is contained in:
Eric Banks 2011-08-17 21:49:14 -04:00
parent 0af68e052a
commit 8e83b6646b
1 changed files with 2 additions and 2 deletions

View File

@ -1080,8 +1080,8 @@ public class VariantContext implements Feature { // to enable tribble intergrati
}
public void validateReferenceBases(Allele reference, Byte paddedRefBase) {
// don't validate if we're an insertion
if ( !reference.isNull() && !reference.basesMatch(getReference()) ) {
// don't validate if we're an insertion or complex event
if ( !reference.isNull() && getReference().length() == 1 && !reference.basesMatch(getReference()) ) {
throw new TribbleException.InternalCodecException(String.format("the REF allele is incorrect for the record at position %s:%d, %s vs. %s", getChr(), getStart(), reference.getBaseString(), getReference().getBaseString()));
}