Skip to content

Commit

Permalink
Don't search for peptides where the k-mer has no matches
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Aug 26, 2024
1 parent 1047e43 commit 252d9c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sa-index/src/sa_searcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ impl Searcher {
if let BoundSearchResult::SearchResult((min_bound, max_bound)) = bounds {
let min_bound = if min_bound == 0 { 0 } else { min_bound - 1 };
searcher.kmer_cache.update_kmer(&kmer, (min_bound, max_bound));
} else {
searcher.kmer_cache.update_kmer(&kmer, (0, 0));
}
}

Expand Down

0 comments on commit 252d9c8

Please sign in to comment.