Commit c1eeb275 authored by Mikael Salson's avatar Mikael Salson

representative.cpp: Stop the loop as soon as the sequences are not long enough

Go back to the previous behaviour (before the coverage was computed
here). There is no need to continue the loop if the sequences are not long
enough (ie. the representative built from them will necessarily be shorter
than the one previously found).
parent 0cc84ddf
......@@ -104,7 +104,7 @@ void KmerRepresentativeComputer::compute() {
Sequence sequence = rc.getithBest(seq);
if (sequence.sequence.size() <= length_longest_run) {
continue;
break;
}
size_t pos_required = sequence.sequence.find(required);
if (pos_required == string::npos && revcomp)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment