From fc0ef29e1aa74b13dc1f179ac755b8bf784af9bb Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 26 Nov 2013 10:37:12 -0500 Subject: working single threaded multifasta with rarity --- src/c/quikr.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/c/quikr.c') 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); -- cgit v1.2.3