Attention une mise à jour du service Gitlab va être effectuée le mardi 18 janvier (et non lundi 17 comme annoncé précédemment) entre 18h00 et 18h30. Cette mise à jour va générer une interruption du service dont nous ne maîtrisons pas complètement la durée mais qui ne devrait pas excéder quelques minutes.

Commit 3a944f57 authored by Mathieu Giraud's avatar Mathieu Giraud
Browse files

vidjil.cpp: CLI11, -s, with callback

See #3292.
parent 300525b4
...@@ -353,8 +353,6 @@ int main (int argc, char **argv) ...@@ -353,8 +353,6 @@ int main (int argc, char **argv)
/* /*
<< " (use either -s or -k option, but not both)" << endl << " (use either -s or -k option, but not both)" << endl
<< " (all these options, except -w, are overriden when using -g)" << endl << " (all these options, except -w, are overriden when using -g)" << endl
<< " -s <string> spaced seed used for the V/J affectation" << endl
<< " (default: #####-#####, ######-######, #######-#######, depends on germline)" << endl
*/ */
#endif #endif
...@@ -374,13 +372,18 @@ int main (int argc, char **argv) ...@@ -374,13 +372,18 @@ int main (int argc, char **argv)
app.add_option("-t", trim_sequences, // trim_sequences_changed = true app.add_option("-t", trim_sequences, // trim_sequences_changed = true
"trim V and J genes (resp. 5' and 3' regions) to keep at most <int> nt (0: no trim)") -> group(group); "trim V and J genes (resp. 5' and 3' regions) to keep at most <int> nt (0: no trim)") -> group(group);
app.add_option("-s",
[&](CLI::results_t res) {
seed = res[0] ;
options_s_k++ ;
seed_changed = true;
return true;
},
"spaced seeds used for the V/J affectation (default: depends on germline)"
) -> group(group) -> level();
/* /*
case 's': #ifdef NO_SPACED_SEEDS
#ifndef NO_SPACED_SEEDS
seed = string(optarg);
seed_changed = true;
options_s_k++ ;
#else
cerr << "To enable the option -s, please compile without NO_SPACED_SEEDS" << endl; cerr << "To enable the option -s, please compile without NO_SPACED_SEEDS" << endl;
#endif #endif
*/ */
......
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