Search in sources :

Example 6 with BreakpointSummary

use of au.edu.wehi.idsv.BreakpointSummary in project gridss by PapenfussLab.

the class TruthAnnotatorTest method match_allow_any_interval_overlap.

@Test
public void match_allow_any_interval_overlap() {
    assertTrue(TruthAnnotator.matches(new BreakpointSummary(new BreakendSummary(0, FWD, 1, 1, 10), new BreakendSummary(0, BWD, 50, 50, 60)), new BreakpointSummary(new BreakendSummary(0, FWD, 5), new BreakendSummary(0, BWD, 70, 40, 70)), 0, 0));
    assertTrue(TruthAnnotator.matches(new BreakpointSummary(new BreakendSummary(0, FWD, 10), new BreakendSummary(0, BWD, 60, 50, 60)), new BreakpointSummary(new BreakendSummary(0, FWD, 10, 10, 11), new BreakendSummary(0, BWD, 40, 40, 50)), 0, 0));
}
Also used : BreakendSummary(au.edu.wehi.idsv.BreakendSummary) BreakpointSummary(au.edu.wehi.idsv.BreakpointSummary) Test(org.junit.Test)

Example 7 with BreakpointSummary

use of au.edu.wehi.idsv.BreakpointSummary in project gridss by PapenfussLab.

the class TruthAnnotatorTest method match_should_limit_breakend_reference_homology_matching_to_16bp.

@Test
public void match_should_limit_breakend_reference_homology_matching_to_16bp() {
    assertTrue(TruthAnnotator.matches(new BreakpointSummary(new BreakendSummary(0, FWD, 1), new BreakendSummary(0, BWD, 1000)), new BreakendSummary(0, FWD, 17), 17, 1));
    assertFalse(TruthAnnotator.matches(new BreakpointSummary(new BreakendSummary(0, FWD, 1), new BreakendSummary(0, BWD, 1000)), new BreakendSummary(0, FWD, 18), 17, 0));
}
Also used : BreakendSummary(au.edu.wehi.idsv.BreakendSummary) BreakpointSummary(au.edu.wehi.idsv.BreakpointSummary) Test(org.junit.Test)

Example 8 with BreakpointSummary

use of au.edu.wehi.idsv.BreakpointSummary in project gridss by PapenfussLab.

the class ModelsTest method calculateBreakend_should_return_overlap_for_multiple_evidence.

@Test
public void calculateBreakend_should_return_overlap_for_multiple_evidence() {
    BreakendSummary bs = Models.calculateBreakend(getContext().getLinear(), Lists.newArrayList(new MockDirectedBreakpoint(new BreakpointSummary(0, FWD, 1, 1, 4, 1, BWD, 2, 2, 2)), new MockDirectedEvidence(new BreakendSummary(0, FWD, 3, 3, 5))));
    assertEquals(new BreakendSummary(0, FWD, 3, 3, 4), bs);
}
Also used : MockDirectedEvidence(au.edu.wehi.idsv.MockDirectedEvidence) BreakendSummary(au.edu.wehi.idsv.BreakendSummary) MockDirectedBreakpoint(au.edu.wehi.idsv.MockDirectedBreakpoint) BreakpointSummary(au.edu.wehi.idsv.BreakpointSummary) Test(org.junit.Test)

Example 9 with BreakpointSummary

use of au.edu.wehi.idsv.BreakpointSummary in project gridss by PapenfussLab.

the class ModelsTest method calculateBreakend_should_return_breakend.

@Test
public void calculateBreakend_should_return_breakend() {
    BreakendSummary bs = Models.calculateBreakend(getContext().getLinear(), Lists.newArrayList(new MockDirectedBreakpoint(new BreakpointSummary(0, FWD, 1, 1, 2, 1, BWD, 2, 2, 2))));
    assertEquals(new BreakendSummary(0, FWD, 1, 1, 2), bs);
    assertEquals(BreakendSummary.class, bs.getClass());
}
Also used : BreakendSummary(au.edu.wehi.idsv.BreakendSummary) MockDirectedBreakpoint(au.edu.wehi.idsv.MockDirectedBreakpoint) BreakpointSummary(au.edu.wehi.idsv.BreakpointSummary) Test(org.junit.Test)

Example 10 with BreakpointSummary

use of au.edu.wehi.idsv.BreakpointSummary in project gridss by PapenfussLab.

the class ModelsTest method calculateBreakend_should_return_interval_for_single_evidence.

@Test
public void calculateBreakend_should_return_interval_for_single_evidence() {
    BreakendSummary bs = Models.calculateBreakend(getContext().getLinear(), Lists.newArrayList(new MockDirectedBreakpoint(new BreakpointSummary(0, FWD, 1, 1, 2, 1, BWD, 2, 2, 2))));
    assertEquals(new BreakendSummary(0, FWD, 1, 1, 2), bs);
}
Also used : BreakendSummary(au.edu.wehi.idsv.BreakendSummary) MockDirectedBreakpoint(au.edu.wehi.idsv.MockDirectedBreakpoint) BreakpointSummary(au.edu.wehi.idsv.BreakpointSummary) Test(org.junit.Test)

Aggregations

BreakpointSummary (au.edu.wehi.idsv.BreakpointSummary)25 Test (org.junit.Test)19 BreakendSummary (au.edu.wehi.idsv.BreakendSummary)10 InMemoryReferenceSequenceFile (au.edu.wehi.idsv.picard.InMemoryReferenceSequenceFile)7 MockDirectedBreakpoint (au.edu.wehi.idsv.MockDirectedBreakpoint)4 BreakendDirection (au.edu.wehi.idsv.BreakendDirection)2 IdsvVariantContext (au.edu.wehi.idsv.IdsvVariantContext)2 IdsvVariantContextBuilder (au.edu.wehi.idsv.IdsvVariantContextBuilder)2 MockDirectedEvidence (au.edu.wehi.idsv.MockDirectedEvidence)2 VariantContextDirectedBreakpoint (au.edu.wehi.idsv.VariantContextDirectedBreakpoint)2 ProcessingContext (au.edu.wehi.idsv.ProcessingContext)1 StructuralVariationCallBuilder (au.edu.wehi.idsv.StructuralVariationCallBuilder)1 VariantContextDirectedEvidence (au.edu.wehi.idsv.VariantContextDirectedEvidence)1 Node (au.edu.wehi.idsv.graph.MaximumCliqueIntervalGraph.Node)1 TwoBitBufferedReferenceSequenceFile (au.edu.wehi.idsv.picard.TwoBitBufferedReferenceSequenceFile)1 VcfFilter (au.edu.wehi.idsv.vcf.VcfFilter)1 VariantContext (htsjdk.variant.variantcontext.VariantContext)1 VariantContextWriter (htsjdk.variant.variantcontext.writer.VariantContextWriter)1 ArrayList (java.util.ArrayList)1 ExecutorService (java.util.concurrent.ExecutorService)1