X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=phylotypecommand.cpp;h=2d2db08a40ea5e1aa8712902dcd419ddb1ad757a;hb=2c97dd48b8e27ee0a6a86c7a082f4c504c3357c6;hp=f402f2a8ab15a1808a461d376818d97d98c5c5c7;hpb=a626c629e4d4840cd2ce04d98055dcfef1f8593a;p=mothur.git diff --git a/phylotypecommand.cpp b/phylotypecommand.cpp index f402f2a..2d2db08 100644 --- a/phylotypecommand.cpp +++ b/phylotypecommand.cpp @@ -232,6 +232,7 @@ int PhylotypeCommand::execute(){ ListVector list; list.setLabel(level); + //go through nodes and build listvector for (itCurrent = currentNodes.begin(); itCurrent != currentNodes.end(); itCurrent++) { @@ -244,6 +245,7 @@ int PhylotypeCommand::execute(){ //make the names compatable with listvector string name = ""; for (int i = 0; i < names.size(); i++) { + if (names[i] != "unknown") { if (namefile != "") { map::iterator itNames = namemap.find(names[i]); //make sure this name is in namefile @@ -255,9 +257,8 @@ int PhylotypeCommand::execute(){ } } name = name.substr(0, name.length()-1); //rip off extra ',' - //add bin to list vector - list.push_back(name); + if (name != "") { list.push_back(name); } //caused by unknown } //print listvector