Now supports the case where you have multiple AC values in the info field.

This commit is contained in:
Mark DePristo 2011-07-07 17:21:15 -04:00
parent 0df31f3d78
commit 3d4f0e9dd7
1 changed files with 2 additions and 2 deletions

View File

@ -43,9 +43,9 @@ public class AlleleCount extends VariantStratifier {
if (eval != null) {
int AC = -1;
if ( eval.hasAttribute("AC") )
if ( eval.hasAttribute("AC") && eval.getAttribute("AC") instanceof Integer ) {
AC = eval.getAttributeAsInt("AC");
else if ( eval.isVariant() ) {
} else if ( eval.isVariant() ) {
for (Allele allele : eval.getAlternateAlleles())
AC = Math.max(AC, eval.getChromosomeCount(allele));
} else