X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=ccode.cpp;h=0a9214ef39e16b99b31694fb2bff53e9e25fdc80;hb=5ca05ed0a8311b2943c1c0a1fad825785db484d6;hp=a43a5a10e9e1aa72eb0e26f858de55e5b507afc0;hpb=05a0195e07c42c996592ee1c8abb63adedb7f493;p=mothur.git diff --git a/ccode.cpp b/ccode.cpp index a43a5a1..0a9214e 100644 --- a/ccode.cpp +++ b/ccode.cpp @@ -423,15 +423,15 @@ vector Ccode::findWindows(int query) { it = trim[query].begin(); int length = it->second - it->first; - + //default is wanted = 10% of total length if (windowSizes[query] > length) { mothurOut("You have slected a window larger than your sequence length after all filters, masks and trims have been done. I will use the default 10% of sequence length."); windowSizes[query] = length / 10; }else if (windowSizes[query] == 0) { windowSizes[query] = length / 10; } - else if (windowSizes[query] > (length / 20)) { + else if (windowSizes[query] > (length * 0.20)) { mothurOut("You have selected a window that is larger than 20% of your sequence length. This is not recommended, but I will continue anyway."); mothurOutEndLine(); - }else if (windowSizes[query] < (length / 5)) { + }else if (windowSizes[query] < (length * 0.05)) { mothurOut("You have selected a window that is smaller than 5% of your sequence length. This is not recommended, but I will continue anyway."); mothurOutEndLine(); }