Skip to content

Commit

Permalink
Apply global numMatches and compactThresh for each thread
Browse files Browse the repository at this point in the history
  • Loading branch information
eaasna committed Oct 1, 2024
1 parent 80ff446 commit 69d5b9d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/valik/search/search_local.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ static inline dream_stellar::StellarOptions make_thread_options(search_arguments
threadOptions.strVerificationMethod = arguments.strVerificationMethod;
threadOptions.xDrop = arguments.xDrop;
threadOptions.qgramAbundanceCut = arguments.qgramAbundanceCut;
threadOptions.numMatches = std::max(2u, (unsigned) std::round(arguments.numMatches / (double) ref_meta.seg_count * 1.2));
threadOptions.compactThresh = std::max(threadOptions.numMatches + 1, (size_t) std::round(arguments.compactThresh / (double) ref_meta.seg_count)) * 1.2;
threadOptions.numMatches = arguments.numMatches;
threadOptions.compactThresh = arguments.compactThresh;
}

return threadOptions;
Expand Down

0 comments on commit 69d5b9d

Please sign in to comment.