Skip to content

Commit

Permalink
Fix logic error where if LRs contain exactly 100 entries this would…
Browse files Browse the repository at this point in the history
… raise AssertionError (fix raphael-group#18)
  • Loading branch information
pontushojer committed Jul 22, 2022
1 parent 9d00a12 commit 10c5e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def get_distributions(reads_by_LR):
def get_length_distr(LRs):
lengths = [x[2]-x[1] for x in LRs]
lengths.sort()
assert len(lengths)>100
assert len(lengths) >= 100
assert np.var(lengths) != 0
b = negBin()
b.fit(lengths)
Expand Down

0 comments on commit 10c5e29

Please sign in to comment.