Skip to content

Commit

Permalink
Set K to 5 for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Aug 26, 2024
1 parent fc8551e commit 1047e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sa-index/src/sa_searcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ impl Deref for DenseSearcher {
/// the functional analysis provided by Unipept
pub struct Searcher {
pub sa: SuffixArray,
pub kmer_cache: BoundsCache<3>,
pub kmer_cache: BoundsCache<5>,
pub proteins: Proteins,
pub suffix_index_to_protein: Box<dyn SuffixToProteinIndex>
}
Expand Down Expand Up @@ -152,7 +152,7 @@ impl Searcher {
let mut searcher = Self { sa, kmer_cache, proteins, suffix_index_to_protein };

// Update the bounds for all 3-mers in the KTable
for i in 0..20_usize.pow(3) {
for i in 0..20_usize.pow(5) {
let kmer = searcher.kmer_cache.index_to_kmer(i);

// Calculate stricter starting bounds for the 3-mers
Expand Down

0 comments on commit 1047e43

Please sign in to comment.