//**********************************************************************************************************************
-GetRAbundCommand::~GetRAbundCommand(){
- if (abort == false) { globaldata->gListVector = NULL; }
-}
+GetRAbundCommand::~GetRAbundCommand(){}
//**********************************************************************************************************************
set<string> processedLabels;
set<string> userLabels = labels;
+ if (m->control_pressed) { out.close(); remove(filename.c_str()); delete list; globaldata->gListVector = NULL; return 0; }
+
while((list != NULL) && ((allLines == 1) || (userLabels.size() != 0))) {
if(allLines == 1 || labels.count(list->getLabel()) == 1){
rabund = new RAbundVector();
*rabund = (list->getRAbundVector());
+ if (m->control_pressed) { out.close(); remove(filename.c_str()); delete list; delete rabund; globaldata->gListVector = NULL; return 0; }
+
+
if(sorted) { rabund->print(out); }
else { rabund->nonSortedPrint(out); }
rabund = new RAbundVector();
*rabund = (list->getRAbundVector());
+ if (m->control_pressed) { out.close(); remove(filename.c_str()); delete list; delete rabund; globaldata->gListVector = NULL; return 0; }
+
if(sorted) { rabund->print(out); }
else { rabund->nonSortedPrint(out); }
rabund = new RAbundVector();
*rabund = (list->getRAbundVector());
+ if (m->control_pressed) { out.close(); remove(filename.c_str()); delete list; delete rabund; globaldata->gListVector = NULL; return 0; }
+
if(sorted) { rabund->print(out); }
else { rabund->nonSortedPrint(out); }
m->mothurOut("Output File Name: "); m->mothurOutEndLine();
m->mothurOut(filename); m->mothurOutEndLine();
m->mothurOutEndLine();
-
out.close();
+
+ globaldata->gListVector = NULL;
+
return 0;
}