Commit 219c6704 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

core/representative.cpp: add comments

parent 3b88c113
......@@ -115,11 +115,13 @@ void KmerRepresentativeComputer::compute() {
size_t length_run = 0;
size_t i = pos_required;
// Extend to the left, starting from 'pos_required'
while (i > 0 && isSufficienlyExpressed(counts[i-1].count, max)) {
i--;
length_run++;
}
// Extend to the right, starting from 'pos_required'
for (i = pos_required; i < counts.size(); i++) {
while (i < counts.size() &&
isSufficienlyExpressed(counts[i].count, max)) {
......
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