]> git.donarmstrong.com Git - mothur.git/blobdiff - phylodiversitycommand.cpp
fixed bug with trim.seqs allfiles=t
[mothur.git] / phylodiversitycommand.cpp
index 48d8555e1285ce854b0a45efbfdb75057bad5a1f..bf502abe715baadd43112377c374ba218414d3d8 100644 (file)
@@ -84,6 +84,7 @@ PhyloDiversityCommand::PhyloDiversityCommand(string option)  {
                
                //allow user to run help
                if(option == "help") { help(); abort = true; calledHelp = true; }
+               else if(option == "citation") { citation(); abort = true; calledHelp = true;}
                
                else {
                        vector<string> myArray = setParameters();;
@@ -136,6 +137,10 @@ PhyloDiversityCommand::PhyloDiversityCommand(string option)  {
                        }
                        
                        m->runParse = true;
+                       m->Groups.clear();
+                       m->namesOfGroups.clear();
+                       m->Treenames.clear();
+                       m->names.clear();
                        
                        //check for required parameters
                        treefile = validParameter.validFile(parameters, "tree", true);
@@ -210,6 +215,8 @@ int PhyloDiversityCommand::execute(){
                
                if (abort == true) { if (calledHelp) { return 0; }  return 2;   }
                
+               m->setTreeFile(treefile);
+               
                //read in group map info.
                tmap = new TreeMap(groupfile);
                tmap->readMap();