Search in sources :

Example 1 with BuildBamIndex

use of picard.sam.BuildBamIndex in project gridss by PapenfussLab.

the class StaticDeBruijnPathGraphGexfExporterTest method positional_should_export_dot.

@Test
@Category(Hg19Tests.class)
public void positional_should_export_dot() throws IOException {
    File output = new File(super.testFolder.getRoot(), "chr12-244000.vcf");
    setReference(Hg19Tests.findHg19Reference("chr12.fa"));
    createInput(new File("src/test/resources/chr12-244000.tagged.bam"));
    BuildBamIndex bbi = new BuildBamIndex();
    bbi.instanceMain(new String[] { "I=" + input.getAbsolutePath() });
    ProcessingContext pc = getCommandlineContext();
    SAMEvidenceSource ses = new SAMEvidenceSource(pc, input, null, 0);
    AssemblyEvidenceSource aes = new AssemblyEvidenceSource(pc, ImmutableList.of(ses), output);
    aes.assembleBreakends(null);
    File dir = new File(super.testFolder.getRoot(), "visualisation");
    File[] export = dir.listFiles((FileFilter) new WildcardFileFilter("*.dot"));
    // TODO: change graph write timing
    assertTrue(export != null && export.length > 0);
}
Also used : ProcessingContext(au.edu.wehi.idsv.ProcessingContext) AssemblyEvidenceSource(au.edu.wehi.idsv.AssemblyEvidenceSource) SAMEvidenceSource(au.edu.wehi.idsv.SAMEvidenceSource) File(java.io.File) BuildBamIndex(picard.sam.BuildBamIndex) WildcardFileFilter(org.apache.commons.io.filefilter.WildcardFileFilter) Category(org.junit.experimental.categories.Category) IntermediateFilesTest(au.edu.wehi.idsv.IntermediateFilesTest) Test(org.junit.Test)

Aggregations

AssemblyEvidenceSource (au.edu.wehi.idsv.AssemblyEvidenceSource)1 IntermediateFilesTest (au.edu.wehi.idsv.IntermediateFilesTest)1 ProcessingContext (au.edu.wehi.idsv.ProcessingContext)1 SAMEvidenceSource (au.edu.wehi.idsv.SAMEvidenceSource)1 File (java.io.File)1 WildcardFileFilter (org.apache.commons.io.filefilter.WildcardFileFilter)1 Test (org.junit.Test)1 Category (org.junit.experimental.categories.Category)1 BuildBamIndex (picard.sam.BuildBamIndex)1