Skip to content

Commit

Permalink
Update interval_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Jul 1, 2024
1 parent 458f990 commit 3ce81a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/lib/interval_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ def interval_counts_from_callsets(analyses):
hl_l = pars[t].get("hl_l", cov_l)
for i, cs in enumerate(analyses):
# the fallback is also a zeroed array ...
covs[i] = cs["cnv_statusmaps"].get(cov_l, covs.copy())
covs[i] = cs["cnv_statusmaps"].get(cov_l, [0] * int_no)
# vals[i] = cs["cnv_statusmaps"][pars[t]["val_l"]]
hls[i] = cs["cnv_statusmaps"].get(hl_l, covs.copy())
hls[i] = cs["cnv_statusmaps"].get(hl_l, [0] * int_no)
# counting all occurrences of an interval for the current type > interval_min_fraction
counts = np.count_nonzero(covs >= min_f, axis=0)
frequencies = np.around(counts * f_factor, 3)
Expand Down

0 comments on commit 3ce81a2

Please sign in to comment.