Skip to content

Commit

Permalink
remove tryptic check for testing purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Aug 23, 2024
1 parent 1219b27 commit 8fca836
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sa-index/src/sa_searcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,12 @@ impl Searcher {
equate_il: bool,
tryptic_search: bool
) -> SearchAllSuffixesResult {
eprintln!("trypic_search: {}", tryptic_search);

// If we perform a tryptic search, the last character of the search string should be R or K
if tryptic_search && search_string[search_string.len() - 1] != b'R' && search_string[search_string.len() - 1] != b'K' {
return SearchAllSuffixesResult::NoMatches;
}
// if tryptic_search && search_string[search_string.len() - 1] != b'R' && search_string[search_string.len() - 1] != b'K' {
// return SearchAllSuffixesResult::NoMatches;
// }

let mut matching_suffixes: Vec<i64> = vec![];
let mut il_locations = vec![];
Expand Down

0 comments on commit 8fca836

Please sign in to comment.