From ae4bfbf96fc2e3be086745e3417bd4220e44a424 Mon Sep 17 00:00:00 2001 From: bartcharbon Date: Mon, 7 Dec 2020 13:11:53 +0100 Subject: [PATCH] fix #5: VIM and VID status fields have different types --- .../java/org/molgenis/vcf/inheritance/matcher/Annotator.java | 2 +- .../org/molgenis/vcf/inheritance/matcher/AnnotatorTest.java | 2 +- src/test/resources/expected.vcf | 2 +- src/test/resources/expected_probands.vcf | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/molgenis/vcf/inheritance/matcher/Annotator.java b/src/main/java/org/molgenis/vcf/inheritance/matcher/Annotator.java index fc61a45..9c4f5eb 100644 --- a/src/main/java/org/molgenis/vcf/inheritance/matcher/Annotator.java +++ b/src/main/java/org/molgenis/vcf/inheritance/matcher/Annotator.java @@ -40,7 +40,7 @@ VCFHeader annotateHeader(VCFHeader vcfHeader) { VCFHeaderLineType.Integer, "Inheritance Denovo status.")); vcfHeader.addMetaDataLine(new VCFFormatHeaderLine(INHERITANCE_MATCH, 1, - VCFHeaderLineType.String, + VCFHeaderLineType.Integer, "Inheritance Match status.")); vcfHeader.addMetaDataLine(new VCFFormatHeaderLine(MATCHING_GENES, VCFHeaderLineCount.UNBOUNDED, VCFHeaderLineType.String, diff --git a/src/test/java/org/molgenis/vcf/inheritance/matcher/AnnotatorTest.java b/src/test/java/org/molgenis/vcf/inheritance/matcher/AnnotatorTest.java index 74b3a89..516fdc0 100644 --- a/src/test/java/org/molgenis/vcf/inheritance/matcher/AnnotatorTest.java +++ b/src/test/java/org/molgenis/vcf/inheritance/matcher/AnnotatorTest.java @@ -42,7 +42,7 @@ void annotateHeader() { VCFHeaderLineType.Integer, "Inheritance Denovo status.")); verify(vcfHeader).addMetaDataLine(new VCFFormatHeaderLine(INHERITANCE_MATCH, 1, - VCFHeaderLineType.String, + VCFHeaderLineType.Integer, "Inheritance Match status.")); verify(vcfHeader).addMetaDataLine(new VCFFormatHeaderLine(MATCHING_GENES, VCFHeaderLineCount.UNBOUNDED, VCFHeaderLineType.String, diff --git a/src/test/resources/expected.vcf b/src/test/resources/expected.vcf index caaf0dd..5a8fc85 100644 --- a/src/test/resources/expected.vcf +++ b/src/test/resources/expected.vcf @@ -6,7 +6,7 @@ ##FORMAT= ##FORMAT= ##FORMAT= -##FORMAT= +##FORMAT= ##INFO= ##INFO= ##INFO= diff --git a/src/test/resources/expected_probands.vcf b/src/test/resources/expected_probands.vcf index 0bd7238..db26bf0 100644 --- a/src/test/resources/expected_probands.vcf +++ b/src/test/resources/expected_probands.vcf @@ -6,7 +6,7 @@ ##FORMAT= ##FORMAT= ##FORMAT= -##FORMAT= +##FORMAT= ##INFO= ##INFO= ##INFO=