]> git.donarmstrong.com Git - mothur.git/blobdiff - treegroupscommand.cpp
classify.seqs allows sequences to be in taxonomy file that are not in template. ...
[mothur.git] / treegroupscommand.cpp
index bba6289ada54856c25d683126b0d181badab4c15..8ee11d3421f19a19b49ad9d797dfb25db0abc405 100644 (file)
@@ -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();