Skip to content

Commit

Permalink
Which bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
eaasna committed Sep 12, 2024
1 parent a433aad commit 494f436
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/valik/search/search_local.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,19 @@ bool search_local(search_arguments & arguments, search_time_statistics & time_st

uint64_t correct_bin{0};
uint64_t incorrect_bin{0};
// what about the last k-mer in the QGramDir?
for (uint64_t i{1}; i < seqan2::length(indexDir(index)); i++)
{
uint64_t bucketBegin = indexDir(index)[i - 1];
uint64_t bucketEnd = indexDir(index)[i];
if (bucketBegin > bucketEnd)
{
incorrect_bin++;
std::cout << "Error: bucketBegin > bucketEnd\n" << bucketBegin << " > " << bucketEnd << "\n";
std::cout << "Error: bucketBegin > bucketEnd\n";
std::cout << "h1=" << i << '\n';
std::cout << "previous bucket begin\t" << indexDir(index)[i-1] << '\n';
std::cout << "current bucket begin\t" << indexDir(index)[i] << '\n';
std::cout << "next bucket begin\t" << indexDir(index)[i+1] << '\n';
}
else
{
Expand Down

0 comments on commit 494f436

Please sign in to comment.