Minor fix/enhancement for VariantEval: if a vcf has symbolic alleles, program would crash ungracefully - now we'll just skip record without processing. This is a big issue since we can't process 1000G integration files with code as is.

This commit is contained in:
Guillermo del Angel 2011-10-06 10:07:46 -04:00
parent f75573dd54
commit 93f7e632bd
1 changed files with 4 additions and 0 deletions

View File

@ -130,6 +130,10 @@ public class CountVariants extends VariantEvaluator implements StandardEval {
nVariantLoci++;
nMixed++;
break;
case SYMBOLIC:
// ignore symbolic alleles, but don't fail
// todo - consistent way of treating symbolic alleles thgoughout codebase?
break;
default:
throw new ReviewedStingException("Unexpected VariantContext type " + vc1.getType());
}