Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
3a944f57
Commit
3a944f57
authored
Jun 17, 2018
by
Mathieu Giraud
Browse files
vidjil.cpp: CLI11, -s, with callback
See
#3292
.
parent
300525b4
Changes
1
Hide whitespace changes
Inline
Side-by-side
algo/vidjil.cpp
View file @
3a944f57
...
...
@@ -353,8 +353,6 @@ int main (int argc, char **argv)
/*
<< " (use either -s or -k option, but not both)" << 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
...
...
@@ -374,13 +372,18 @@ int main (int argc, char **argv)
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
);
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':
#ifndef NO_SPACED_SEEDS
seed = string(optarg);
seed_changed = true;
options_s_k++ ;
#else
#ifdef NO_SPACED_SEEDS
cerr << "To enable the option -s, please compile without NO_SPACED_SEEDS" << endl;
#endif
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment