From 68719615bef6b4ae94b3bbfabc400a071b3ebcfb Mon Sep 17 00:00:00 2001 From: weisburd Date: Tue, 18 May 2010 02:41:50 +0000 Subject: [PATCH] For multiple matches, shifted counter to be 1-based git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3370 348d0f76-0448-11de-a6fe-93d51630548a --- .../sting/gatk/walkers/annotator/VariantAnnotatorEngine.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotatorEngine.java b/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotatorEngine.java index 91e3a9329..962088598 100755 --- a/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotatorEngine.java +++ b/java/src/org/broadinstitute/sting/gatk/walkers/annotator/VariantAnnotatorEngine.java @@ -301,7 +301,7 @@ public class VariantAnnotatorEngine { // dbSNP.avHet=value1 from record 1 and dbSNP.avHet=value2 from record 2 will become dbSNP.avHet_1=value1 and dbSNP.avHet_2=value2 ) Map annotationsForRecordWithRenamedKeys = new HashMap(); for(Map.Entry annotation : annotationsForRecord.entrySet()) { - annotationsForRecordWithRenamedKeys.put(annotation.getKey() + "_" + i, annotation.getValue()); + annotationsForRecordWithRenamedKeys.put(annotation.getKey() + "_" + (i + 1), annotation.getValue()); } annotationsForRecord = annotationsForRecordWithRenamedKeys;