From bf7d1d46caedf120ec16a2ae95bfe783fe5f6ba2 Mon Sep 17 00:00:00 2001 From: Heng Li Date: Mon, 25 Aug 2014 10:36:24 -0400 Subject: [PATCH] r808: a minor bug with the new index -b --- bwtindex.c | 3 ++- main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bwtindex.c b/bwtindex.c index 18523da..2bfd667 100644 --- a/bwtindex.c +++ b/bwtindex.c @@ -208,6 +208,7 @@ int bwa_index(int argc, char *argv[]) // the "index" command if (*str == 'G' || *str == 'g') block_size *= 1024 * 1024 * 1024; else if (*str == 'M' || *str == 'm') block_size *= 1024 * 1024; else if (*str == 'K' || *str == 'k') block_size *= 1024; + break; default: return 1; } } @@ -217,7 +218,7 @@ int bwa_index(int argc, char *argv[]) // the "index" command fprintf(stderr, "Usage: bwa index [options] \n\n"); fprintf(stderr, "Options: -a STR BWT construction algorithm: bwtsw or is [auto]\n"); fprintf(stderr, " -p STR prefix of the index [same as fasta name]\n"); - fprintf(stderr, " -b INT block size for the bwtsw algorithm (force -a bwtsw) [%d]\n", block_size); + fprintf(stderr, " -b INT block size for the bwtsw algorithm (effective with -a bwtsw) [%d]\n", block_size); fprintf(stderr, " -6 index files named as .64.* instead of .* \n"); fprintf(stderr, "\n"); fprintf(stderr, "Warning: `-a bwtsw' does not work for short genomes, while `-a is' and\n"); diff --git a/main.c b/main.c index d212e24..8240411 100644 --- a/main.c +++ b/main.c @@ -4,7 +4,7 @@ #include "utils.h" #ifndef PACKAGE_VERSION -#define PACKAGE_VERSION "0.7.10-r807-dirty" +#define PACKAGE_VERSION "0.7.10-r808-dirty" #endif int bwa_fa2pac(int argc, char *argv[]);