Commit 40e75d6e authored by Mikaël Salson's avatar Mikaël Salson

vidjil.cpp: Use pointer to define the readScorer

A reference cannot be redefined in C++.
parent 40aef950
......@@ -453,12 +453,12 @@ int main (int argc, char **argv)
"maximal number of reads to process ('" NO_LIMIT "': no limit, default), sampled reads")
-> group(group) -> transform(string_NO_LIMIT);
VirtualReadScore &readScorer = DEFAULT_READ_SCORE;
VirtualReadScore *readScorer = &DEFAULT_READ_SCORE;
RandomScore randomScore;
app.add_flag_function("--consensus-on-random-sample",
[&readScorer, &randomScore](size_t n) {
UNUSED(n);
readScorer = randomScore;
readScorer = &randomScore;
}, "for large clones, use a random sample of reads to compute the consensus sequence (instead of a sample of the longest and highest quality reads)")
->group(group) -> level();
......
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