]> git.donarmstrong.com Git - mothur.git/blobdiff - phylodiversitycommand.cpp
fixed bug with tree reading
[mothur.git] / phylodiversitycommand.cpp
index 48d8555e1285ce854b0a45efbfdb75057bad5a1f..d15899c2f2f853ba9529c9b65f74ce67885c8a63 100644 (file)
@@ -136,6 +136,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 +214,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();