Skip to content

Commit

Permalink
Add +1 in minimizer normalization to avoid divide by 0
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed Dec 20, 2023
1 parent bdae2aa commit 5030543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lib/minimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def make_ref_search_index(refs):
"meta": {
"name": name,
"length": len(ref.seq),
"nMinimizers": len(minimizers)
"nMinimizers": len(minimizers) + 1 # +1 to not divide by zero
}
})

Expand Down

0 comments on commit 5030543

Please sign in to comment.