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)
27 #if defined (__APPLE__) || (__MACH__)
28 mothurOutJustToLog("Mac version");
29 mothurOutEndLine(); mothurOutEndLine();
31 mothurOutJustToLog("Linux version");
32 mothurOutEndLine(); mothurOutEndLine();
36 mothurOutJustToLog("Windows version");
37 mothurOutEndLine(); mothurOutEndLine();
42 mothurOut("mothur v.1.4.1");
44 mothurOut("Last updated: 6/23/2009");
49 mothurOut("Patrick D. Schloss");
52 mothurOut("Department of Microbiology");
54 mothurOut("pschloss@micro.umass.edu");
56 mothurOut("http://schloss.micro.umass.edu/mothur");
60 mothurOut("Distributed under the GNU General Public License");
63 mothurOut("Type 'help()' for information on the commands that are available");
66 mothurOut("Type 'quit()' to exit program");
71 srand( (unsigned)time( NULL ) );
80 if (input[0] == '#') {
81 mothur = new ScriptEngine(argv[0], argv[1]);
83 mothur = new BatchEngine(argv[0], argv[1]);
87 mothur = new InteractEngine(argv[0]);
90 while(bail == 0) { bail = mothur->getInput(); }
97 errorOut(e, "mothur", "main");
102 /**************************************************************************************************/