|
19 | 19 | import org.broadinstitute.hellbender.tools.walkers.annotator.Annotation; |
20 | 20 | import org.broadinstitute.hellbender.tools.walkers.genotyper.AlleleSubsettingUtils; |
21 | 21 | import org.broadinstitute.hellbender.tools.walkers.genotyper.GenotypeAssignmentMethod; |
22 | | -import org.broadinstitute.hellbender.utils.MathUtils; |
23 | 22 | import org.broadinstitute.hellbender.utils.Utils; |
24 | 23 | import org.broadinstitute.hellbender.utils.variant.GATKVCFConstants; |
25 | 24 | import org.broadinstitute.hellbender.utils.variant.GATKVCFHeaderLines; |
@@ -130,7 +129,7 @@ static Object normalizeScientificNotation(final Object attribute){ |
130 | 129 | return Arrays.stream(split).map( |
131 | 130 | s -> {return Arrays.stream(s.split(",",-1)) |
132 | 131 | .map(d -> {if (d.equals("")) return d; |
133 | | - else return Double.toString(Double.parseDouble(d));}) |
| 132 | + else return Double.toString(Double.parseDouble(d));}) |
134 | 133 | .collect(Collectors.joining(","));}) |
135 | 134 | .collect(Collectors.joining("|")); |
136 | 135 | } else { |
@@ -428,6 +427,7 @@ public static void assertVariantContextsAreEqual(final VariantContext actual, fi |
428 | 427 | BaseTest.assertEqualsDoubleSmart(actual.getPhredScaledQual(), expected.getPhredScaledQual()); |
429 | 428 |
|
430 | 429 | assertVariantContextsHaveSameGenotypes(actual, expected, attributesToIgnore); |
| 430 | + Assert.assertEquals(actual.getType(), expected.getType(), "type"); |
431 | 431 | } |
432 | 432 |
|
433 | 433 | private static Map<String, Object> filterIgnoredAttributes(final Map<String,Object> attributes, final List<String> attributesToIgnore) { |
|
0 commit comments