Search in sources :

Example 1 with Bam2Wig

use of com.github.lindenb.jvarkit.tools.bam2wig.Bam2Wig in project jvarkit by lindenb.

the class TestNg01 method testBamToWig.

@Test
public void testBamToWig() throws IOException {
    final File output = new File(TEST_RESULTS_DIR, "jeter.wig");
    Assert.assertEquals(0, new Bam2Wig().instanceMain(new String[] { "-o", output.getPath(), TOY_BAM }));
    Assert.assertEquals(0, new Bam2Wig().instanceMain(new String[] { "--region", "ref:10-30", "-w", "3", "-s", "1", "--percentile", "MEDIAN", "-o", output.getPath(), TOY_BAM }));
    Assert.assertTrue(output.delete());
}
Also used : Bam2Wig(com.github.lindenb.jvarkit.tools.bam2wig.Bam2Wig) File(java.io.File) Test(org.testng.annotations.Test)

Aggregations

Bam2Wig (com.github.lindenb.jvarkit.tools.bam2wig.Bam2Wig)1 File (java.io.File)1 Test (org.testng.annotations.Test)1