use of com.github.lindenb.jvarkit.tools.misc.FindAllCoverageAtPosition in project jvarkit by lindenb.
the class TestNg01 method testFindAllCoverageAtPosition.
@Test
public void testFindAllCoverageAtPosition() throws IOException {
final File input = new File(TEST_RESULTS_DIR, "jeter.path.txt");
PrintWriter pw = new PrintWriter(input);
pw.println(TOY_BAM);
pw.flush();
pw.close();
final File output = new File(TEST_RESULTS_DIR, "jeter.txt");
Assert.assertEquals(0, new FindAllCoverageAtPosition().instanceMain(new String[] { "-o", output.getPath(), "-p", "ref2:14", input.getPath() }));
Assert.assertTrue(output.delete());
Assert.assertTrue(input.delete());
}
Aggregations