diff options
Diffstat (limited to 'src/c/quikr.c')
-rw-r--r-- | src/c/quikr.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/c/quikr.c b/src/c/quikr.c index 670cd3c..bbe6a31 100644 --- a/src/c/quikr.c +++ b/src/c/quikr.c @@ -110,6 +110,11 @@ int main(int argc, char **argv) { exit(EXIT_FAILURE); } + if(rare_percent <= 0 || rare_percent > 1.0) { + fprintf(stderr, "Error: rare percent must be between 0 and 1\n"); + exit(EXIT_FAILURE); + } + if(verbose) { printf("rare width:%ld\n", rare_width); printf("kmer: %u\n", kmer); |