Allele ref1 = Allele.create(BaseUtils.Base.T.base,true);
Allele alt1 = Allele.create(BaseUtils.Base.C.base);
Allele alt2 = Allele.create(BaseUtils.Base.G.base);
Allele alt3 = Allele.create(BaseUtils.Base.A.base);
GenomeLoc loc1 = genomeLocParser.createGenomeLoc("chr1",1,1);
VariantContextBuilder site1Eval = new VariantContextBuilder();
VariantContextBuilder site1Comp = new VariantContextBuilder();
// site 1: eval superset comp
site1Eval.loc(loc1.getContig(),loc1.getStart(),loc1.getStop());
site1Comp.loc(loc1.getContig(),loc1.getStart(),loc1.getStop());
site1Eval.alleles(Arrays.asList(ref1,alt1,alt2));
site1Comp.alleles(Arrays.asList(ref1,alt2));
site1Eval.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt2)));
site1Comp.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt2)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt2)));
// site 2: eval subset comp
GenomeLoc loc2 = genomeLocParser.createGenomeLoc("chr1",2,2);
VariantContextBuilder site2Eval = new VariantContextBuilder();
VariantContextBuilder site2Comp = new VariantContextBuilder();
site2Eval.loc(loc2.getContig(),loc2.getStart(),loc2.getStop());
site2Comp.loc(loc2.getContig(),loc2.getStart(),loc2.getStop());
site2Eval.alleles(Arrays.asList(ref1,alt1));
site2Comp.alleles(Arrays.asList(ref1,alt1,alt3));
site2Eval.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt1)));
site2Comp.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt3)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt1)));
// site 3: eval only
GenomeLoc loc3 = genomeLocParser.createGenomeLoc("chr1",3,3);
VariantContextBuilder site3Eval = new VariantContextBuilder();
VariantContextBuilder site3Comp = new VariantContextBuilder();
site3Eval.loc(loc3.getContig(),loc3.getStart(),loc3.getStop());
site3Comp.loc(loc3.getContig(),loc3.getStart(),loc3.getStop());
site3Eval.alleles(Arrays.asList(ref1,alt1));
site3Comp.alleles(Arrays.asList(ref1,alt1));
site3Eval.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt1)));
site3Comp.genotypes(GenotypeBuilder.create("test2_sample1",new ArrayList<Allele>(0)),GenotypeBuilder.create("test2_sample2",new ArrayList<Allele>(0)));
// site 4: comp only - monomorphic
GenomeLoc loc4 = genomeLocParser.createGenomeLoc("chr1",4,4);
VariantContextBuilder site4Eval = new VariantContextBuilder();
VariantContextBuilder site4Comp = new VariantContextBuilder();
site4Eval.loc(loc4.getContig(),loc4.getStart(),loc4.getStop());
site4Comp.loc(loc4.getContig(),loc4.getStart(),loc4.getStop());
site4Eval.alleles(Arrays.asList(ref1,alt1));
site4Comp.alleles(Arrays.asList(ref1,alt1));
site4Eval.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,ref1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,ref1)));
site4Comp.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt1)));
// site 5: overlapping
GenomeLoc loc5 = genomeLocParser.createGenomeLoc("chr1",5,5);
VariantContextBuilder site5Eval = new VariantContextBuilder();
VariantContextBuilder site5Comp = new VariantContextBuilder();
site5Eval.loc(loc5.getContig(),loc5.getStart(),loc5.getStop());
site5Comp.loc(loc5.getContig(),loc5.getStart(),loc5.getStop());
site5Eval.alleles(Arrays.asList(ref1,alt1,alt3));
site5Comp.alleles(Arrays.asList(ref1,alt1,alt3));
site5Eval.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(alt1,alt3)));
site5Comp.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(alt1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(alt3,alt3)));
// site 6: some non-matching alts
GenomeLoc loc6 = genomeLocParser.createGenomeLoc("chr1",6,6);
VariantContextBuilder site6Eval = new VariantContextBuilder();
VariantContextBuilder site6Comp = new VariantContextBuilder();
site6Eval.loc(loc6.getContig(),loc6.getStart(),loc6.getStop());
site6Comp.loc(loc6.getContig(),loc6.getStart(),loc6.getStop());
site6Eval.alleles(Arrays.asList(ref1,alt1,alt2));
site6Comp.alleles(Arrays.asList(ref1,alt1,alt3));
site6Eval.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt2)));
site6Comp.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt3)));
// site 7: matching with no-calls
GenomeLoc loc7 = genomeLocParser.createGenomeLoc("chr1",7,7);
VariantContextBuilder site7Eval = new VariantContextBuilder();
VariantContextBuilder site7Comp = new VariantContextBuilder();
site7Eval.loc(loc7.getContig(),loc7.getStart(),loc7.getStop());
site7Comp.loc(loc7.getContig(),loc7.getStart(),loc7.getStop());
site7Eval.alleles(Arrays.asList(ref1,alt1));
site7Comp.alleles(Arrays.asList(ref1,alt1));
site7Eval.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(Allele.NO_CALL,Allele.NO_CALL)));
site7Comp.genotypes(GenotypeBuilder.create("test2_sample1",Arrays.asList(ref1,alt1)),GenotypeBuilder.create("test2_sample2",Arrays.asList(ref1,alt1)));