Skip to content

Commit

Permalink
ensure ref and alt
Browse files Browse the repository at this point in the history
  • Loading branch information
bwalsh committed Feb 9, 2018
1 parent 18aedf3 commit 3883d1a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions util/bmeg/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ def _variant(feature, gid):
v['start'] = feature['start']
if 'end' in feature:
v['end'] = feature['end']
if 'end' in feature:
v['end'] = feature['end']
if 'chromosome' in feature:
v['reference_name'] = feature['chromosome']
if 'referenceName' in feature:
v['reference_genome'] = feature['referenceName']
if 'ref' in feature:
v['reference_bases'] = feature['ref']
if 'alt' in feature:
v['alternate_bases'] = [feature['alt']]

return v

Expand Down

0 comments on commit 3883d1a

Please sign in to comment.