X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classifytreecommand.cpp;h=79a82454d14304d997a2a46efbc62ffbeac63f60;hb=bd27c2b0612942815b7417c79f7ee41f669a2a34;hp=f1f1ffdda61422ab11d9c04bb507411e2ee9da59;hpb=deba0af0ccdcb6005ed5b2b82649b137c63fbdf7;p=mothur.git diff --git a/classifytreecommand.cpp b/classifytreecommand.cpp index f1f1ffd..79a8245 100644 --- a/classifytreecommand.cpp +++ b/classifytreecommand.cpp @@ -303,7 +303,7 @@ int ClassifyTreeCommand::getClassifications(Tree*& T){ //create a map from tree node index to names of descendants, save time later map > > nodeToDescendants; //node# -> (groupName -> groupMembers) for (int i = 0; i < T->getNumNodes(); i++) { - if (m->control_pressed) { return 0; } + if (m->control_pressed) { return 0; } nodeToDescendants[i] = getDescendantList(T, i, nodeToDescendants); } @@ -327,7 +327,7 @@ int ClassifyTreeCommand::getClassifications(Tree*& T){ tax = getTaxonomy(nodeToDescendants[i][group], size); out << (i+1) << '\t' << size << '\t' << tax << endl; } - + T->tree[i].setLabel((i+1)); } out.close(); @@ -356,7 +356,6 @@ string ClassifyTreeCommand::getTaxonomy(set names, int& size) { for (set::iterator it = names.begin(); it != names.end(); it++) { - //if namesfile include the names if (namefile != "") { @@ -377,7 +376,7 @@ string ClassifyTreeCommand::getTaxonomy(set names, int& size) { }else{ //add seq to tree int num = nameCount[(*it)]; // we know its there since we found it in nameMap - for (int i = 0; i < num; i++) { phylo->addSeqToTree((*it)+toString(i), it2->second); } + for (int i = 0; i < num; i++) { phylo->addSeqToTree((*it)+toString(i), itTax->second); } size += num; } }