+ //output error messages about any remaining user labels
+ set<string>::iterator it;
+ bool needToRun = false;
+ for (it = userLabels.begin(); it != userLabels.end(); it++) {
+ mothurOut("Your file does not include the label " + *it);
+ if (processedLabels.count(lastLabel) != 1) {
+ mothurOut(". I will use " + lastLabel + "."); mothurOutEndLine();
+ needToRun = true;
+ }else {
+ mothurOut(". Please refer to " + lastLabel + "."); mothurOutEndLine();
+ }
+ }
+
+ //run last line if you need to
+ if (needToRun == true) {
+ delete list;
+ list = input->getSharedListVector(lastLabel);
+
+ mothurOut(list->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ process(list);
+ delete list;
+ }
+
+ globaldata->gSharedList = NULL;
+ //delete list vectors to fill with parsed data
+ for (it2 = mapOfLists.begin(); it2 != mapOfLists.end(); it2++) {
+ delete it2->second;
+ }
+ for (it3 = filehandles.begin(); it3 != filehandles.end(); it3++) {
+ delete it2->second;
+ }
+
+ delete input; globaldata->ginput = NULL;
+ delete read;
+