]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefactcommand.cpp
removing extra file output from pintail
[mothur.git] / rarefactcommand.cpp
index ee0c38f4d05de762222c284fb6e94c74569a95e5..5584b9b0ee5200569a9eb8021ef7a3ef8ac664c1 100644 (file)
@@ -203,7 +203,7 @@ int RareFactCommand::execute(){
                                rCurve->getCurve(freq, nIters);
                                delete rCurve;
                        
-                               mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+                               mothurOut(order->getLabel()); mothurOutEndLine();
                                processedLabels.insert(order->getLabel());
                                userLabels.erase(order->getLabel());
                                userLines.erase(count);
@@ -217,7 +217,7 @@ int RareFactCommand::execute(){
                                rCurve->getCurve(freq, nIters);
                                delete rCurve;
                        
-                               mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+                               mothurOut(order->getLabel()); mothurOutEndLine();
                                processedLabels.insert(order->getLabel());
                                userLabels.erase(order->getLabel());
                        }
@@ -244,14 +244,14 @@ int RareFactCommand::execute(){
                
                //run last line if you need to
                if (needToRun == true)  {
-                       delete order;
+                       if (order != NULL) {    delete order;   }
                        order = (input->getOrderVector(lastLabel));
                                
                        rCurve = new Rarefact(order, rDisplays);
                        rCurve->getCurve(freq, nIters);
                        delete rCurve;
                        
-                       mothurOut(order->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+                       mothurOut(order->getLabel()); mothurOutEndLine();
                        delete order;
                }