Search in sources :

Example 1 with FindAllCoverageAtPosition

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());
}
Also used : FindAllCoverageAtPosition(com.github.lindenb.jvarkit.tools.misc.FindAllCoverageAtPosition) File(java.io.File) PrintWriter(java.io.PrintWriter) Test(org.testng.annotations.Test)

Aggregations

FindAllCoverageAtPosition (com.github.lindenb.jvarkit.tools.misc.FindAllCoverageAtPosition)1 File (java.io.File)1 PrintWriter (java.io.PrintWriter)1 Test (org.testng.annotations.Test)1