]> git.donarmstrong.com Git - mothur.git/blobdiff - summarycommand.cpp
removing extra file output from pintail
[mothur.git] / summarycommand.cpp
index 228b93344d50967a065328be487dc30fc1d6c34c..731a4101eaff0b6b5712caf15bf7a0ad6feb6e62 100644 (file)
@@ -236,7 +236,7 @@ int SummaryCommand::execute(){
                        
                        if(allLines == 1 || lines.count(count) == 1 || labels.count(sabund->getLabel()) == 1){                  
        
-                               mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+                               mothurOut(sabund->getLabel()); mothurOutEndLine();
                                processedLabels.insert(sabund->getLabel());
                                userLabels.erase(sabund->getLabel());
                                userLines.erase(count);
@@ -255,7 +255,7 @@ int SummaryCommand::execute(){
                                delete sabund;
                                sabund = input->getSAbundVector(lastLabel);
                                
-                               mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+                               mothurOut(sabund->getLabel()); mothurOutEndLine();
                                processedLabels.insert(sabund->getLabel());
                                userLabels.erase(sabund->getLabel());
                                
@@ -290,10 +290,10 @@ int SummaryCommand::execute(){
                
                //run last line if you need to
                if (needToRun == true)  {
-                       delete sabund;
+                       if (sabund != NULL) {   delete sabund;  }
                        sabund = input->getSAbundVector(lastLabel);
                        
-                       mothurOut(sabund->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+                       mothurOut(sabund->getLabel()); mothurOutEndLine();
                        outputFileHandle << sabund->getLabel();
                        for(int i=0;i<sumCalculators.size();i++){
                                vector<double> data = sumCalculators[i]->getValues(sabund);