Package org.broadinstitute.gatk.engine.walkers.diffengine

Examples of org.broadinstitute.gatk.engine.walkers.diffengine.Difference


    @Test(enabled = true, dataProvider = "data")
    public void testDiffToString(DifferenceTest test) {
        logger.warn("Test tree1: " + (test.tree1 == null ? "null" : test.tree1.toOneLineString()));
        logger.warn("Test tree2: " + (test.tree2 == null ? "null" : test.tree2.toOneLineString()));
        logger.warn("Test expected diff : " + test.difference);
        Difference diff = new Difference(test.tree1, test.tree2);
        logger.warn("Observed diffs     : " + diff);
        Assert.assertEquals(diff.toString(), test.difference, "Observed diff string " + diff + " not equal to expected difference string " + test.difference );

    }
View Full Code Here


            List<Difference> sumDiffs = engine.summarizedDifferencesOfPathsFromString(diffs);

            Assert.assertEquals(sumDiffs.size(), expecteds.size(), "Unexpected number of summarized differences: " + sumDiffs);

            for ( int i = 0; i < sumDiffs.size(); i++ ) {
                Difference sumDiff = sumDiffs.get(i);
                String expected = expecteds.get(i);
                String[] pathCount = expected.split(":");
                String path = pathCount[0];
                int count = Integer.valueOf(pathCount[1]);
                Assert.assertEquals(sumDiff.getPath(), path, "Unexpected path at: " + expected + " obs=" + sumDiff + " all=" + sumDiffs);
                Assert.assertEquals(sumDiff.getCount(), count, "Unexpected counts at: " + expected + " obs=" + sumDiff + " all=" + sumDiffs);
            }
        }
View Full Code Here

TOP

Related Classes of org.broadinstitute.gatk.engine.walkers.diffengine.Difference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.