Skip to content

Commit

Permalink
Debugged for a case with small number of cpgs
Browse files Browse the repository at this point in the history
  • Loading branch information
masarunakajima committed Dec 19, 2023
1 parent a5c618d commit b38eecd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/amrfinder/amrfinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,9 @@ process_chrom(const bool verbose, const uint32_t n_threads,

const auto n_blocks = n_threads*blocks_per_thread;

const uint64_t lim = n_cpgs - window_size + 1;
const uint64_t lim = (n_cpgs >= window_size) ?
n_cpgs - window_size + 1 : 0;
;
const auto blocks = get_block_bounds(static_cast<uint64_t>(0),
lim, lim/n_blocks);

Expand Down

0 comments on commit b38eecd

Please sign in to comment.