Skip to content

Commit bb1c4aa

Browse files
committed
Test now passes
1 parent 7774842 commit bb1c4aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/broadinstitute/hellbender/tools/walkers/haplotypecaller/AlleleFilteringUnitTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,17 @@ public void testNoNeedToFilterTwoSamples(){
7979
List<Haplotype> haplotypeList = new ArrayList<>();
8080
final byte[] fullReferenceWithPadding = "CATGCATG".getBytes();
8181
Haplotype haplotype = new Haplotype(fullReferenceWithPadding, true, 0, TextCigarCodec.decode("8M"));
82-
haplotype.setGenomeLocation(new SimpleInterval("chr", 100, 108));
82+
haplotype.setGenomeLocation(new SimpleInterval("1", 10000, 10008));
8383
haplotype.setEventMap(EventMap.fromHaplotype(haplotype, fullReferenceWithPadding, 0));
8484
haplotypeList.add(haplotype);
8585

8686
haplotype = new Haplotype("CAGGCATG".getBytes(), false, 0, TextCigarCodec.decode("8M"));
87-
haplotype.setGenomeLocation(new SimpleInterval("chr", 100, 108));
87+
haplotype.setGenomeLocation(new SimpleInterval("1", 10000, 10008));
8888
haplotypeList.add(haplotype);
8989
haplotype.setEventMap(EventMap.fromHaplotype(haplotype, fullReferenceWithPadding, 0));
9090

9191
haplotype = new Haplotype("CATTCATG".getBytes(), false, 0, TextCigarCodec.decode("8M"));
92-
haplotype.setGenomeLocation(new SimpleInterval("chr", 100, 108));
92+
haplotype.setGenomeLocation(new SimpleInterval("1", 10000, 10008));
9393
haplotypeList.add(haplotype);
9494
haplotype.setEventMap(EventMap.fromHaplotype(haplotype, fullReferenceWithPadding, 0));
9595

@@ -138,7 +138,7 @@ public void testNoNeedToFilterTwoSamples(){
138138
HaplotypeCallerGenotypingEngine genotypingEngine = new HaplotypeCallerGenotypingEngine(hcArgs, samples, ! hcArgs.doNotRunPhysicalPhasing, false);
139139

140140

141-
AlleleFiltering alleleFiltering = new AlleleFilteringHC(hcArgs, null, genotypingEngine);
141+
AlleleFiltering alleleFiltering = new AlleleFilteringHC(hcArgs, null, genotypingEngine, initReference());
142142
AlleleLikelihoods<GATKRead, Haplotype> filtered_lks = alleleFiltering.filterAlleles(lks, 0, new HashSet<>());
143143
Assert.assertEquals(filtered_lks.alleles(), lks.alleles());
144144
}

0 commit comments

Comments
 (0)