Skip to content

Commit

Permalink
[exac] Better handling of coverage selection
Browse files Browse the repository at this point in the history
  • Loading branch information
viklund committed Jan 19, 2017
1 parent 7eb37cb commit 72c83bb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions exac_browser/lookups.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ def get_coverage_for_bases(db, xstart, xstop=None):
)
}
ret = []
for i in range(xstart, xstop+1):
# Filter the coverage, TODO: Should be done when loading data
if i % 10 != 0:
continue
# We only store every 10'th base in the db, so we have to make the checks
# only then.
for i in range(xstart-xstart%10, xstop+1, 10):
if i in coverages:
ret.append(coverages[i])
else:
Expand Down

0 comments on commit 72c83bb

Please sign in to comment.