Commit e29bf7c4 authored by Mikaël Salson's avatar Mikaël Salson

vidjil-error-w-small.should-get: Only negative window lengths are forbidden

Closes #2157
parent 1ed90de9
!LAUNCH: $VIDJIL_DIR/vidjil $VIDJIL_DEFAULT_OPTIONS -x 1 -w 10 -g $VIDJIL_DIR/germline/homo-sapiens.g:IGH $VIDJIL_DIR/data/Stanford_S22.fasta 2>&1
### !EXIT_CODE: 1
!LAUNCH: $VIDJIL_DIR/vidjil $VIDJIL_DEFAULT_OPTIONS -x 1 -w -10 -g $VIDJIL_DIR/germline/homo-sapiens.g:IGH $VIDJIL_DIR/data/Stanford_S22.fasta 2>&1
!EXIT_CODE: 1
$ Error, too small -w
f1:error.* Too small -w
1:error.* Too small -w
......@@ -721,9 +721,9 @@ int main (int argc, char **argv)
#endif
if (w < seed_weight(seed))
if (w < 0)
{
cerr << ERROR_STRING << "Too small -w. The window size should be at least equal to the seed size (" << seed_weight(seed) << ")." << endl;
cerr << ERROR_STRING << "Too small -w. The window size should be positive" << endl;
exit(1);
}
......
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