]> git.donarmstrong.com Git - mothur.git/blobdiff - clustercommand.cpp
made get.oturep more memory efficient by breaking the work into 2 pieces.
[mothur.git] / clustercommand.cpp
index 7484a621645c2449bfc9f158a391549f33da71dd..6f6e309331df3caf27dc5d2d0c6d4e19ab246590 100644 (file)
@@ -176,6 +176,7 @@ int ClusterCommand::execute(){
                        loops++;
 
                        cluster->update(cutoff);
+       
                        float dist = matrix->getSmallDist();
                        float rndDist = roundDist(dist, precision);
 
@@ -209,7 +210,7 @@ int ClusterCommand::execute(){
                //delete globaldata's copy of the sparsematrix and listvector to free up memory
                delete globaldata->gSparseMatrix;  globaldata->gSparseMatrix = NULL;
                delete globaldata->gListVector;  globaldata->gListVector = NULL;
-               
+       
                //saves .list file so you can do the collect, rarefaction and summary commands without doing a read.list
                if (globaldata->getFormat() == "phylip") { globaldata->setPhylipFile(""); }
                else if (globaldata->getFormat() == "column") { globaldata->setColumnFile(""); }
@@ -221,7 +222,7 @@ int ClusterCommand::execute(){
                sabundFile.close();
                rabundFile.close();
                listFile.close();
-               
+       
                if (saveCutoff != cutoff) { m->mothurOut("changed cutoff to " + toString(cutoff)); m->mothurOutEndLine();  }
                
                m->mothurOutEndLine();