Skip to content

Commit a11c83d

Browse files
authored
Merge pull request #375 from CanDIG/daisieh/allele
DIG-2093: check for 'Allele' key
2 parents 9f7b59f + 86801a9 commit a11c83d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

htsget_server/variants.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,10 @@ def parse_vep_annotation(info, csq_header):
266266
for j in range(len(info_pieces)):
267267
if info_pieces[j] is not None and info_pieces[j] != '':
268268
this_info[csq_parts[j]] = info_pieces[j]
269-
if this_info['Allele'] not in result:
270-
result[this_info['Allele']] = []
271-
result[this_info['Allele']].append(this_info)
269+
if 'Allele' in this_info:
270+
if this_info['Allele'] not in result:
271+
result[this_info['Allele']] = []
272+
result[this_info['Allele']].append(this_info)
272273
return result
273274

274275

0 commit comments

Comments
 (0)