5 * Created by Pat Schloss on 8/14/08.
6 * Copyright 2008 Patrick D. Schloss. All rights reserved.
12 #include "globaldata.hpp"
14 /**************************************************************************************************/
16 GlobalData* GlobalData::_uniqueInstance = 0;
18 int main(int argc, char *argv[]){
22 string logFileName = "mothur.logFile";
23 remove(logFileName.c_str());
26 #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
28 #if defined (__APPLE__) || (__MACH__)
29 mothurOutJustToLog("Mac version");
30 mothurOutEndLine(); mothurOutEndLine();
32 mothurOutJustToLog("Linux version");
33 mothurOutEndLine(); mothurOutEndLine();
38 mothurOutJustToLog("Windows version");
39 mothurOutEndLine(); mothurOutEndLine();
44 mothurOut("mothur v.1.5.1");
46 mothurOut("Last updated: 9/02/2009");
51 mothurOut("Patrick D. Schloss");
54 mothurOut("Department of Microbiology & Immunology");
56 mothurOut("University of Michigan");
58 mothurOut("pschloss@umich.edu");
60 mothurOut("http://www.mothur.org");
64 mothurOut("Distributed under the GNU General Public License");
67 mothurOut("Type 'help()' for information on the commands that are available");
70 mothurOut("Type 'quit()' to exit program");
75 srand( (unsigned)time( NULL ) );
84 if (input[0] == '#') {
85 mothur = new ScriptEngine(argv[0], argv[1]);
87 mothur = new BatchEngine(argv[0], argv[1]);
91 mothur = new InteractEngine(argv[0]);
94 while(bail == 0) { bail = mothur->getInput(); }
100 catch(exception& e) {
101 errorOut(e, "mothur", "main");
106 /**************************************************************************************************/