]> git.donarmstrong.com Git - mothur.git/blobdiff - readdistcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / readdistcommand.cpp
index 263d57ba0e205d186b634d18a10bd4c72d4bbe8e..c4756c3260db6a660526ef09b66f668b25de12ef 100644 (file)
@@ -142,7 +142,10 @@ void ReadDistCommand::help(){
 
 ReadDistCommand::~ReadDistCommand(){
        if (abort == false) {
-               if (format != "matrix") { delete read; delete nameMap; }
+               if (format != "matrix") { 
+                       delete read; 
+                       delete nameMap; 
+               }
        }
 }
 
@@ -174,7 +177,7 @@ int ReadDistCommand::execute(){
                        if (globaldata->gSparseMatrix != NULL) { delete globaldata->gSparseMatrix;  }
                        globaldata->gSparseMatrix = read->getMatrix();
                        numDists = globaldata->gSparseMatrix->getNNodes();
+                       
       int lines = cutoff / (1.0/precision);
       vector<float> dist_cutoff(lines+1,0);
                        for (int i = 0; i <= lines;i++) {