Search in sources :

Example 1 with MockDirectedBreakpoint

use of au.edu.wehi.idsv.MockDirectedBreakpoint 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 2 with MockDirectedBreakpoint

use of au.edu.wehi.idsv.MockDirectedBreakpoint 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 3 with MockDirectedBreakpoint

use of au.edu.wehi.idsv.MockDirectedBreakpoint 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)

Example 4 with MockDirectedBreakpoint

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

the class ModelsTest method calculateBreakend_should_ignore_overlaps_resulting_in_no_breakend.

@Test
public void calculateBreakend_should_ignore_overlaps_resulting_in_no_breakend() {
    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)), new MockDirectedEvidence(new BreakendSummary(0, FWD, 5, 5, 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)

Aggregations

BreakendSummary (au.edu.wehi.idsv.BreakendSummary)4 BreakpointSummary (au.edu.wehi.idsv.BreakpointSummary)4 MockDirectedBreakpoint (au.edu.wehi.idsv.MockDirectedBreakpoint)4 Test (org.junit.Test)4 MockDirectedEvidence (au.edu.wehi.idsv.MockDirectedEvidence)2