]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.cpp
fixed splash page citation
[mothur.git] / mothur.cpp
index 0314331287f0de7c466dc5cb4aacedece62fd56a..1c0c98f9f1caf4cec5de25f4c66ce7f9a3a3af8f 100644 (file)
@@ -17,6 +17,64 @@ GlobalData* GlobalData::_uniqueInstance = 0;
 
 int main(int argc, char *argv[]){
        try {
+               
+               //remove old logfile
+               string logFileName = "mothur.logFile";
+               remove(logFileName.c_str());
+               
+               //version
+               #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
+                       system("clear");
+                       #if defined (__APPLE__) || (__MACH__)
+                               mothurOutJustToLog("Mac version");
+                               mothurOutEndLine(); mothurOutEndLine();
+                       #else
+                               mothurOutJustToLog("Linux version");
+                               mothurOutEndLine(); mothurOutEndLine();
+                       #endif
+
+               #else
+                       system("CLS");
+                       mothurOutJustToLog("Windows version");
+                       mothurOutEndLine(); mothurOutEndLine();
+               #endif          
+
+               
+               //header
+               mothurOut("mothur v.1.7.0");
+               mothurOutEndLine();             
+               mothurOut("Last updated: 11/23/2009");
+               mothurOutEndLine();     
+               mothurOutEndLine();             
+               mothurOut("by");
+               mothurOutEndLine();             
+               mothurOut("Patrick D. Schloss");
+               mothurOutEndLine();
+               mothurOutEndLine();                     
+               mothurOut("Department of Microbiology & Immunology");
+               mothurOutEndLine();     
+               mothurOut("University of Michigan");
+               mothurOutEndLine();                     
+               mothurOut("pschloss@umich.edu");
+               mothurOutEndLine();             
+               mothurOut("http://www.mothur.org");
+               mothurOutEndLine();
+               mothurOutEndLine();
+               mothurOut("When using, please cite:");
+               mothurOutEndLine();
+               mothurOut("Schloss, P.D., et al., Introducing mothur: Open-source, platform-independent, community-supported software for describing and comparing microbial communities. Appl Environ Microbiol, 2009. 75(23):7537-41.");
+               mothurOutEndLine();     
+               mothurOutEndLine();             
+               mothurOut("Distributed under the GNU General Public License");
+               mothurOutEndLine();
+               mothurOutEndLine();                     
+               mothurOut("Type 'help()' for information on the commands that are available");
+               mothurOutEndLine();
+               mothurOutEndLine();                     
+               mothurOut("Type 'quit()' to exit program");
+               mothurOutEndLine();     
+
+                               
                //srand(54321);
                srand( (unsigned)time( NULL ) );