bug fixes

This commit is contained in:
Guillermo del Angel 2011-07-04 20:45:10 -04:00
parent 7a04872a3f
commit 04df153f47
1 changed files with 6 additions and 3 deletions

View File

@ -245,11 +245,14 @@ public class SelectVariants extends RodWalker<Integer, Integer> {
afBreakpoints = new ArrayList<Double>();
afBoosts = new ArrayList<Double>();
logger.info("Reading in AF boost table...");
boolean firstLine = false;
for ( final String line : new XReadLines( AF_FILE ) ) {
//System.out.println(line);
final String[] vals = line.split("\t");
if (vals[0].matches("midpoints"))
if (!firstLine) {
firstLine = true;
continue;
}
final String[] vals = line.split("\t");
double bkp = Double.valueOf(vals[0]);
double afb = Double.valueOf(vals[1]);
afBreakpoints.add(bkp);