Skip to content

Commit

Permalink
Insure "fetch" in vcf.py returns a list of variants. Fixes #76
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Sep 22, 2023
1 parent 5fbbf6f commit 1788db9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion igv_reports/vcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def fetch(self, chr, start, end):
vcf = self.file
if vcf.index is not None:
try:
return vcf.fetch(chr, start, end)
return list(vcf.fetch(chr, start, end))
except ValueError:

# Possible chr alias error (e.g. 1 vs chr1)
Expand Down
Binary file not shown.
Binary file not shown.

0 comments on commit 1788db9

Please sign in to comment.