X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=phylotree.cpp;fp=phylotree.cpp;h=a9ef6cb0d85f44bde915606eb452db993ec40d8d;hb=53171f07cc0c0e560e2b4ba2946f690d59fc2dc4;hp=dba1e3b56951f8ae1c484ace22187a9b65053d35;hpb=8da8321bc4d705f6c156248d6229c60a0204f750;p=mothur.git diff --git a/phylotree.cpp b/phylotree.cpp index dba1e3b..a9ef6cb 100644 --- a/phylotree.cpp +++ b/phylotree.cpp @@ -128,8 +128,6 @@ PhyloTree::PhyloTree(string tfile){ maxLevel = 0; calcTotals = true; string name, tax; - addSeqToTree("unknown", "unknown;"); - #ifdef USE_MPI int pid, num, processors; @@ -193,7 +191,16 @@ PhyloTree::PhyloTree(string tfile){ #endif assignHeirarchyIDs(0); - + + + string unknownTax = "unknown;"; + //added last taxon until you get desired level + for (int i = 1; i < maxLevel; i++) { + unknownTax += "unclassfied;"; + } + + addSeqToTree("unknown", unknownTax); + //create file for summary if needed setUp(tfile); }