Skip to content

Commit

Permalink
small change in hit rate calculation in cyclecheck modul
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnSeidel committed Feb 6, 2020
1 parent e54e2e3 commit a66c02c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assembler/cyclecheck.cpp
Expand Up @@ -171,7 +171,8 @@ int cyclecheck(int argc, const char **argv, const Command& command) {
unsigned int diagbandHits = 0;

for (size_t i = lower; i <= upper; i++) {
diagbandHits += diagHits[i];
if (diagHits[i] <= diagHits[d])
diagbandHits += diagHits[i];
}

float diagbandHitRate = static_cast<float>(diagbandHits) / (diaglen - kmerSize + 1);
Expand Down

0 comments on commit a66c02c

Please sign in to comment.