]> git.donarmstrong.com Git - mothur.git/blobdiff - clustersplitcommand.cpp
modified calculators to use doubles, added numotu and fontsize parameters to heatmap...
[mothur.git] / clustersplitcommand.cpp
index d6855ccc0f08456d6ed1db9d15c504928546b688..ced5a6384c792188d34068f4d899ff5ef306adeb 100644 (file)
@@ -994,7 +994,12 @@ vector<string> ClusterSplitCommand::cluster(vector< map<string, string> > distNa
                        remove(thisDistFile.c_str());
                        remove(thisNamefile.c_str());
                        
-                       if (saveCutoff != cutoff) { m->mothurOut("Cutoff was " + toString(cutoff) + " changed cutoff to " + toString(saveCutoff)); m->mothurOutEndLine();  }
+                       if (saveCutoff != cutoff) { 
+                               if (hard)       {  saveCutoff = ceilDist(saveCutoff, precision);        }
+                               else            {       saveCutoff = roundDist(saveCutoff, precision);  }
+                       
+                               m->mothurOut("Cutoff was " + toString(cutoff) + " changed cutoff to " + toString(saveCutoff)); m->mothurOutEndLine();  
+                       }
                        
                        if (saveCutoff < smallestCutoff) { smallestCutoff = saveCutoff;  }
                }