Commit d3c4919b authored by Mikaël Salson's avatar Mikaël Salson
Browse files

Representative: Delete unnecessary if and improve comments

parent 3d37c7ec
......@@ -104,7 +104,7 @@ void KmerRepresentativeComputer::compute() {
size_t length_run = 0;
size_t i = pos_required;
if (pos_required)
while (i > 0 && isSufficienlyExpressed(counts[i-1].count, max)) {
i--;
length_run++;
......@@ -126,7 +126,7 @@ void KmerRepresentativeComputer::compute() {
sequence_longest_run = sequence;
seq_index_longest_run = seq;
}
// We have a requirement. We reached it, exit.
// We have a requirement (ie. a non empty string). We reached it, exit.
if (pos_required != pos_end_required)
break;
length_run = 0;
......
......@@ -77,6 +77,7 @@ public:
/**
* Sequence that the representative must contain absolutely.
* This sequence should appear only once in a read.
* Setting the sequence is not required and it can be empty.
*/
void setRequiredSequence(string sequence);
......
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