X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=engine.cpp;h=e4e107168c5723c82b90a7f103ccb8d9ee83cb60;hp=48f782ab2a590d71a292e7b83125ba8ce0f3fffe;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=05c52893c6c2467381fe7e7b769d86b6209af2e1 diff --git a/engine.cpp b/engine.cpp index 48f782a..e4e1071 100644 --- a/engine.cpp +++ b/engine.cpp @@ -65,7 +65,9 @@ bool InteractEngine::getInput(){ if (pid == 0) { #endif - + + if (mout->changedSeqNames) { mout->mothurOut("[WARNING]: your sequence names contained ':'. I changed them to '_' to avoid problems in your downstream analysis.\n"); } + mout->mothurOutEndLine(); input = getCommand(); @@ -115,6 +117,7 @@ bool InteractEngine::getInput(){ //cout << pid << " is in execute " << commandName << endl; #endif //executes valid command + mout->changedSeqNames = false; mout->runParse = true; mout->clearGroups(); mout->clearAllGroups(); @@ -276,7 +279,7 @@ bool BatchEngine::getInput(){ if (input[0] != '#') { - + if (mout->changedSeqNames) { mout->mothurOut("[WARNING]: your sequence names contained ':'. I changed them to '_' to avoid problems in your downstream analysis.\n"); } mout->mothurOutEndLine(); mout->mothurOut("mothur > " + input); mout->mothurOutEndLine(); @@ -300,6 +303,7 @@ bool BatchEngine::getInput(){ if ((cFactory->MPIEnabled(commandName)) || (pid == 0)) { #endif //executes valid command + mout->changedSeqNames = false; mout->runParse = true; mout->clearGroups(); mout->clearAllGroups(); @@ -413,6 +417,8 @@ bool ScriptEngine::getInput(){ input = getNextCommand(listOfCommands); if (input == "") { input = "quit()"; } + + if (mout->changedSeqNames) { mout->mothurOut("[WARNING]: your sequence names contained ':'. I changed them to '_' to avoid problems in your downstream analysis.\n"); } if (mout->gui) { if ((input.find("quit") != string::npos) || (input.find("set.logfile") != string::npos)) {} @@ -468,6 +474,7 @@ bool ScriptEngine::getInput(){ //cout << pid << " is in execute" << endl; #endif //executes valid command + mout->changedSeqNames = false; mout->runParse = true; mout->clearGroups(); mout->clearAllGroups();