Now supports the case where you have multiple AC values in the info field.
This commit is contained in:
parent
0df31f3d78
commit
3d4f0e9dd7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue