X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treegroupscommand.cpp;h=8ee11d3421f19a19b49ad9d797dfb25db0abc405;hb=006601d68abe8d0061f77e8d28323b160750e343;hp=bba6289ada54856c25d683126b0d181badab4c15;hpb=96dbe925073caefaed6e6db85659c144a806aeb1;p=mothur.git diff --git a/treegroupscommand.cpp b/treegroupscommand.cpp index bba6289..8ee11d3 100644 --- a/treegroupscommand.cpp +++ b/treegroupscommand.cpp @@ -453,6 +453,7 @@ int TreeGroupCommand::execute(){ readMatrix->setCutoff(cutoff); ct = NULL; + nameMap = NULL; if(namefile != ""){ nameMap = new NameAssignment(namefile); nameMap->readMap(); @@ -461,6 +462,8 @@ int TreeGroupCommand::execute(){ ct = new CountTable(); ct->readTable(countfile); readMatrix->read(ct); + }else { + readMatrix->read(nameMap); } list = readMatrix->getListVector();