Skip to content

Commit

Permalink
Merge pull request #49 from genome/vep
Browse files Browse the repository at this point in the history
Fix error caused by how VEP annotates structural variants
  • Loading branch information
susannasiebert authored Oct 6, 2017
2 parents 07c2e05 + aa94a7e commit 8d7a92f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions add_annotations_to_table_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ def resolve_alleles(entry, csq_alleles):
for alt in alts:
if len(alt) > len(entry.REF) and 'insertion' in csq_alleles:
alleles[alt] = 'insertion'
elif len(alt) < len(entry.REF) and 'deletion' in csq_alleles:
alleles[alt] = 'deletion'
elif len(csq_alleles) == 1:
alleles[alt] = list(csq_alleles)[0]
else:
for alt in entry.ALT:
alt = str(alt)
Expand Down

0 comments on commit 8d7a92f

Please sign in to comment.