From 1219b273ed18e16c4c5b9f61ae9e03a3b0b88bd1 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Fri, 23 Aug 2024 13:10:36 +0200 Subject: [PATCH] remove tryptic check for testing purpose --- sa-index/src/sa_searcher.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sa-index/src/sa_searcher.rs b/sa-index/src/sa_searcher.rs index b9e63d1..bd27926 100644 --- a/sa-index/src/sa_searcher.rs +++ b/sa-index/src/sa_searcher.rs @@ -353,7 +353,7 @@ impl Searcher { // self.proteins.input_string[suffix - skip - 1] == SEPARATION_CHARACTER // ) && self.proteins.input_string[suffix - skip + search_string.len() + 1] != b'P') // ) - && ( + && (( // If the skip factor is 0, the entire search string should match. skip == 0 // If the skip factor is not 0, the prefix should match the prefix of the search string. @@ -370,7 +370,7 @@ impl Searcher { current_search_string_suffix, &self.proteins.input_string[suffix..suffix + search_string.len() - skip], equate_il - ) + )) { matching_suffixes.push((suffix - skip) as i64);