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
This commit is contained in:
weisburd 2010-05-18 02:41:50 +00:00
parent 73e2e32837
commit 68719615be
1 changed files with 1 additions and 1 deletions

View File

@ -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<String,String> annotationsForRecordWithRenamedKeys = new HashMap<String, String>();
for(Map.Entry<String, String> annotation : annotationsForRecord.entrySet()) {
annotationsForRecordWithRenamedKeys.put(annotation.getKey() + "_" + i, annotation.getValue());
annotationsForRecordWithRenamedKeys.put(annotation.getKey() + "_" + (i + 1), annotation.getValue());
}
annotationsForRecord = annotationsForRecordWithRenamedKeys;