Skip to content

Commit

Permalink
Complain when bwa mem is given too many filenames
Browse files Browse the repository at this point in the history
Reads in extra .fq filenames beyond "bwa mem index one.fq two.fq"
will not be aligned, so complain about such invalid usage instead.
  • Loading branch information
jmarshall committed Jun 14, 2013
1 parent 20dc9dd commit 128ffc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int main_mem(int argc, char *argv[])
else return 1;
}
if (opt->n_threads < 1) opt->n_threads = 1;
if (optind + 1 >= argc) {
if (optind + 1 >= argc || optind + 3 < argc) {
fprintf(stderr, "\n");
fprintf(stderr, "Usage: bwa mem [options] <idxbase> <in1.fq> [in2.fq]\n\n");
fprintf(stderr, "Algorithm options:\n\n");
Expand Down

0 comments on commit 128ffc0

Please sign in to comment.