Skip to content

Commit

Permalink
Fix k=l classification bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DerrickWood committed Jan 19, 2021
1 parent 00ceda0 commit a88a61e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Fixed
- Bug that caused classification to not work when k-mer length was equal
to minimizer length

## [2.1.1] - 2020-11-08

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion src/mmscanner.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class MinimizerScanner {
ssize_t l() const { return l_; }
bool is_dna() const { return dna_; }
bool is_ambiguous() const {
return (queue_pos_ <= k_ - l_) || (!! last_ambig_);
return (queue_pos_ < k_ - l_) || (!! last_ambig_);
}

private:
Expand Down

0 comments on commit a88a61e

Please sign in to comment.