]> git.donarmstrong.com Git - mothur.git/blobdiff - ccode.cpp
a few changes to chimera classes
[mothur.git] / ccode.cpp
index a43a5a10e9e1aa72eb0e26f858de55e5b507afc0..0a9214ef39e16b99b31694fb2bff53e9e25fdc80 100644 (file)
--- a/ccode.cpp
+++ b/ccode.cpp
@@ -423,15 +423,15 @@ vector<int> 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();
                }