Adding contracts and unit tests for HaplotypeCaller GenotypingEngine
This commit is contained in:
parent
c1f454fbe6
commit
0fa5a7af05
|
|
@ -236,6 +236,16 @@ public class VariantContextUnitTest extends BaseTest {
|
||||||
Assert.assertEquals(vc.getSampleNames().size(), 0);
|
Assert.assertEquals(vc.getSampleNames().size(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testMatchingAlleles() {
|
||||||
|
List<Allele> alleles = Arrays.asList(ATCref, del);
|
||||||
|
VariantContext vc = new VariantContextBuilder("test", delLoc, delLocStart, delLocStop, alleles).referenceBaseForIndel((byte)'A').make();
|
||||||
|
VariantContext vc2 = new VariantContextBuilder("test2", delLoc, delLocStart+12, delLocStop+12, alleles).referenceBaseForIndel((byte)'A').make();
|
||||||
|
|
||||||
|
Assert.assertTrue(vc.hasSameAllelesAs(vc2));
|
||||||
|
Assert.assertTrue(vc.hasSameAlternateAllelesAs(vc2));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCreatingInsertionVariantContext() {
|
public void testCreatingInsertionVariantContext() {
|
||||||
List<Allele> alleles = Arrays.asList(delRef, ATC);
|
List<Allele> alleles = Arrays.asList(delRef, ATC);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue