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.4.1");
46 mothurOut("Last updated: 6/23/2009");
51 mothurOut("Patrick D. Schloss");
54 mothurOut("Department of Microbiology");
56 mothurOut("pschloss@micro.umass.edu");
58 mothurOut("http://schloss.micro.umass.edu/mothur");
62 mothurOut("Distributed under the GNU General Public License");
65 mothurOut("Type 'help()' for information on the commands that are available");
68 mothurOut("Type 'quit()' to exit program");
73 srand( (unsigned)time( NULL ) );
82 if (input[0] == '#') {
83 mothur = new ScriptEngine(argv[0], argv[1]);
85 mothur = new BatchEngine(argv[0], argv[1]);
89 mothur = new InteractEngine(argv[0]);
92 while(bail == 0) { bail = mothur->getInput(); }
99 errorOut(e, "mothur", "main");
104 /**************************************************************************************************/