VariantsToTableFix

This commit is contained in:
Guillermo del Angel 2011-06-29 21:39:53 -04:00
parent 9b134f3b96
commit 50c32ce52e
1 changed files with 3 additions and 2 deletions

View File

@ -173,7 +173,7 @@ public class VariantsToTable extends RodWalker<Integer, Integer> {
if (field.equals("AF")) { if (field.equals("AF")) {
String afo = val; String afo = val;
double af; double af=0;
if (afo.contains(",")) { if (afo.contains(",")) {
String[] afs = afo.split(","); String[] afs = afo.split(",");
afs[0] = afs[0].substring(1,afs[0].length()); afs[0] = afs[0].substring(1,afs[0].length());
@ -189,7 +189,8 @@ public class VariantsToTable extends RodWalker<Integer, Integer> {
} }
else else
af = Double.valueOf(afo); if (!afo.equals("NA"))
af = Double.valueOf(afo);
val = Double.toString(af); val = Double.toString(af);