diff --git a/src/mkindex_algo.hpp b/src/mkindex_algo.hpp index 2737712e5..49e17ca8c 100644 --- a/src/mkindex_algo.hpp +++ b/src/mkindex_algo.hpp @@ -603,7 +603,7 @@ auto generateIndex(TStringSet & seqs, LambdaIndexerOptions const & options) myPrint(options, 1, "Generating Index..."); double s = sysTime(); - TIndex index{seqs | bio::views::to_rank | fmindex_collection::add_sentinels, 5}; + TIndex index{seqs | bio::views::to_rank | fmindex_collection::add_sentinels, /*samplingRate*/ 5, options.threads}; double e = sysTime() - s; myPrint(options, 1, " done.\n"); diff --git a/src/search_algo.hpp b/src/search_algo.hpp index fad81a80f..1579e165a 100644 --- a/src/search_algo.hpp +++ b/src/search_algo.hpp @@ -470,11 +470,9 @@ inline void search_impl(LocalDataHolder & lH, TSeed && seed) { if constexpr (TGlobalHolder::c_dbIndexType == DbIndexType::FM_INDEX) { - //!TODO a reversed FMIndex is used, so the query need to be reversed, so we search from left to right - // This is a conceptual TODO for fmindex_collection library fmindex_collection::search_backtracking_with_buffers::search( lH.gH.indexFile.index, - seed | std::views::reverse | bio::views::to_rank | fmindex_collection::add_sentinel, + seed | bio::views::to_rank | fmindex_collection::add_sentinel, lH.searchOpts.maxSeedDist, lH.cursor_tmp_buffer, lH.cursor_tmp_buffer2, diff --git a/submodules/fmindex-collection b/submodules/fmindex-collection index 488a9979c..bbc0900f1 160000 --- a/submodules/fmindex-collection +++ b/submodules/fmindex-collection @@ -1 +1 @@ -Subproject commit 488a9979cce4c3dc1c49e86e70ab78d2d871b3ba +Subproject commit bbc0900f1c7fd41b946802689a2256f7fab711c7