LocalPhaseSet extends BufferedPostProcessor { static boolean rightInLeftDel(@NotNull final VariantHotspot left, @NotNull final VariantHotspot right) { if (left.ref().length() > left.alt().length()) { long deleteEnd = left.position() + left.ref().length() - 1; return right.position() > left.position() && right.position() <= deleteEnd; } return false; } LocalPhaseSet(@NotNull final Consumer<SageVariant> consumer);   }
@Test public void testRightInLeftDel() { VariantHotspot left = create(100, "ATT", "T"); assertTrue(LocalPhaseSet.rightInLeftDel(left, create(101, "T", "C"))); assertTrue(LocalPhaseSet.rightInLeftDel(left, create(102, "T", "C"))); assertFalse(LocalPhaseSet.rightInLeftDel(left, create(103, "T", "C"))); }