X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=deuniquetreecommand.cpp;h=d334f8f4ef107d12a57eaa4aff4d71b84808edb9;hb=cc19310422f125d6628980bd1148e1e816792382;hp=662282b1d05d57e25ee2c259f178d00c5ecf96ca;hpb=49d2b7459c5027557564b21e9487dadafbbbdc96;p=mothur.git diff --git a/deuniquetreecommand.cpp b/deuniquetreecommand.cpp index 662282b..d334f8f 100644 --- a/deuniquetreecommand.cpp +++ b/deuniquetreecommand.cpp @@ -161,7 +161,8 @@ int DeuniqueTreeCommand::execute() { TreeReader* reader = new TreeReader(treefile, "", namefile); vector T = reader->getTrees(); - map nameMap = reader->getNameMap(); + map nameMap; + m->readNames(namefile, nameMap); delete reader; //print new Tree @@ -172,7 +173,7 @@ int DeuniqueTreeCommand::execute() { T[0]->print(out, nameMap); out.close(); - delete (T[0]->getTreeMap()); + delete (T[0]->getCountTable()); for (int i = 0; i < T.size(); i++) { delete T[i]; } //set phylip file as new current phylipfile