diff --git a/src/main/java/org/broadinstitute/gpp/rigerj/RigerJMain.java b/src/main/java/org/broadinstitute/gpp/rigerj/RigerJMain.java index 96eee40..799382a 100644 --- a/src/main/java/org/broadinstitute/gpp/rigerj/RigerJMain.java +++ b/src/main/java/org/broadinstitute/gpp/rigerj/RigerJMain.java @@ -199,11 +199,12 @@ private static List createHairpinDatas() throws IOException { break; } String[] cells = line.split("\t", 0); - hairpinDatas.add(new HairpinData(new Integer(cells[3]), + int rank = Double.valueOf(cells[3]).intValue(); + hairpinDatas.add(new HairpinData(rank, cells[0], - new Double(cells[2]), + Double.parseDouble(cells[2]), cells[1], - cells.length == 5 ? new Double(cells[4]) : 1)); + cells.length == 5 ? Double.parseDouble(cells[4]) : 1)); } return hairpinDatas; diff --git a/src/test/java/org/broadinstitute/gpp/rigerj/impl/RigerImplTest.java b/src/test/java/org/broadinstitute/gpp/rigerj/impl/RigerImplTest.java index 5416e8a..19418f7 100644 --- a/src/test/java/org/broadinstitute/gpp/rigerj/impl/RigerImplTest.java +++ b/src/test/java/org/broadinstitute/gpp/rigerj/impl/RigerImplTest.java @@ -68,9 +68,10 @@ private static void initializeHairpinInputs() throws IOException { break; } String[] cells = line.split("\t", 0); - hairpinInputs.add(new HairpinData(new Integer(cells[3]), + int rank = Double.valueOf(cells[3]).intValue(); + hairpinInputs.add(new HairpinData(rank, cells[0], - new Double(cells[2]), + Double.parseDouble(cells[2]), cells[1], 1)); }