aboutsummaryrefslogtreecommitdiff
path: root/src/c/quikr.c
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-11-26 10:37:12 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2013-11-26 10:37:12 -0500
commitfc0ef29e1aa74b13dc1f179ac755b8bf784af9bb (patch)
treea76fda96bba4347c0e3b110cac9033e2d3430b9b /src/c/quikr.c
parent9066ea884129957fe899d6d10cba1e17547214b9 (diff)
working single threaded multifasta with rarity
Diffstat (limited to 'src/c/quikr.c')
-rw-r--r--src/c/quikr.c5
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);