Skip to content

Commit

Permalink
Renormalize when using gcov fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
lrvdijk committed Apr 9, 2021
1 parent 99a2644 commit 7a31a84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/strainge/search_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ def calc_relative_abundance(self, sample, result):
if np.count_nonzero(zero_ix) > 0:
gcov_abun = gcovs / gcovs.sum()
abundances[zero_ix] = gcov_abun[ix]
abundances /= abundances.sum()

abundances *= result.pan_pct

Expand Down

0 comments on commit 7a31a84

Please sign in to comment.