Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kalin Nonchev committed Apr 14, 2020
1 parent 92beeb7 commit 0f286a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kipoiseq/extractors/vcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ def __init__(self, *args, **kwargs):

def fetch_variants(self, interval, sample_id=None):
for v in self(self._region(interval)):


ALTs = v.ALT
# in case deletion is present
if len(v.ALT) == 0:
v.ALT = ['']
ALTs = ['']

# extract variants
# single REF can have multiple ALT
for alt in v.ALT:
for alt in ALTs:
# not defined variants are not supported
if 'N' in alt:
print('Undefined variants are not supported: Skip')
Expand Down

0 comments on commit 0f286a9

Please sign in to comment.