Search in sources :

Example 1 with NgsFilesSummary

use of com.github.lindenb.jvarkit.tools.ngsfiles.NgsFilesSummary in project jvarkit by lindenb.

the class TestNg01 method testNgsFilesSummary.

@Test
public void testNgsFilesSummary() throws IOException {
    final File input = new File(TEST_RESULTS_DIR, "jeter.path.txt");
    PrintWriter pw = new PrintWriter(input);
    pw.println(TOY_VCF_GZ);
    pw.println(TOY_BAM);
    pw.flush();
    pw.close();
    final File output = new File(TEST_RESULTS_DIR, "jeter.txt");
    Assert.assertEquals(0, new NgsFilesSummary().instanceMain(new String[] { "-o", output.getPath(), input.getPath() }));
    Assert.assertTrue(output.delete());
    Assert.assertTrue(input.delete());
}
Also used : File(java.io.File) NgsFilesSummary(com.github.lindenb.jvarkit.tools.ngsfiles.NgsFilesSummary) PrintWriter(java.io.PrintWriter) Test(org.testng.annotations.Test)

Aggregations

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