+ catch(exception& e) {
+ m->errorOut(e, "GetOTURepCommand", "processFastaNames");
+ exit(1);
+ }
+}
+//**********************************************************************************************************************
+int GetOTURepCommand::processNames(string filename, string label) {
+ try{
+
+ //create output file
+ if (outputDir == "") { outputDir += m->hasPath(listfile); }
+
+ ofstream out2;
+ string tempNameFile = filename + ".temp";
+ m->openOutputFile(tempNameFile, out2);
+
+ ifstream in;
+ m->openInputFile(filename, in);
+
+ int i = 0;
+ string rep, binnames;
+ while (!in.eof()) {
+ if (m->control_pressed) { break; }
+ in >> i >> rep >> binnames; m->gobble(in);
+ out2 << rep << '\t' << binnames << endl;
+ }
+ in.close();
+ out2.close();
+
+ m->mothurRemove(filename);
+ rename(tempNameFile.c_str(), filename.c_str());
+
+ return 0;
+ }