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());
}