Skip to content

Commit a423bd0

Browse files
src/simreads.cpp: fixing bug in the mode that requires all reads to have valid alignments outside the N portion of the reference simulating from
1 parent 59afa7a commit a423bd0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/simreads.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ sim_frag_position(const std::string &genome, const std::size_t frag_len,
283283
// NOLINTBEGIN(*-narrowing-conversions)
284284
the_frag = std::string(g_beg + the_posn, g_beg + the_posn + frag_len);
285285
while (require_valid &&
286-
std::all_of(std::cbegin(the_frag), std::cend(the_frag), is_valid)) {
286+
!std::all_of(std::cbegin(the_frag), std::cend(the_frag), is_valid)) {
287287
the_posn = simreads_random::rand() % lim;
288288
the_frag = std::string(g_beg + the_posn, g_beg + the_posn + frag_len);
289289
}

0 commit comments

Comments
 (0)