X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracunweightedcommand.cpp;h=a9ca4d01260340fbdc08ccf423c6022f8dd5abbc;hb=0e051b4cfda410b0d441da6ff2f96d4bbe1d9e5a;hp=eef37bd93b4dcc98fbf2bcadee93231be66b52ab;hpb=d4429ccc354708f3c9a13c809ba9b57c22908d2b;p=mothur.git diff --git a/unifracunweightedcommand.cpp b/unifracunweightedcommand.cpp index eef37bd..a9ca4d0 100644 --- a/unifracunweightedcommand.cpp +++ b/unifracunweightedcommand.cpp @@ -133,6 +133,10 @@ UnifracUnweightedCommand::UnifracUnweightedCommand(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); @@ -206,6 +210,8 @@ int UnifracUnweightedCommand::execute() { if (abort == true) { if (calledHelp) { return 0; } return 2; } + m->setTreeFile(treefile); + if (groupfile != "") { //read in group map info. tmap = new TreeMap(groupfile);