#include "tree.h"
-
+/*****************************************************************/
+Tree::Tree(string g) {
+ try {
+ globaldata = GlobalData::getInstance();
+ m = MothurOut::getInstance();
+
+ parseTreeFile(); globaldata->runParse = false;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "Tree", "Tree - just parse");
+ exit(1);
+ }
+}
/*****************************************************************/
Tree::Tree() {
try {
//go through each leaf and update its pcounts and pgroups
- float A = clock();
+ //float A = clock();
for (int i = 0; i < numLeaves; i++) {
}//end else
}//end for
- float B = clock();
- cout << "addNamesToCounts\t" << (B - A) / CLOCKS_PER_SEC << endl;
+ //float B = clock();
+ //cout << "addNamesToCounts\t" << (B - A) / CLOCKS_PER_SEC << endl;
}
catch(exception& e) {
/*****************************************************************/
int Tree::assembleTree() {
try {
- float A = clock();
+ //float A = clock();
//if user has given a names file we want to include that info in the pgroups and pcount info.
if(globaldata->names.size() != 0) { addNamesToCounts(); }
tree[i].pGroups = (mergeGroups(i));
tree[i].pcount = (mergeGcounts(i));
}
- float B = clock();
- cout << "assembleTree\t" << (B-A) / CLOCKS_PER_SEC << endl;
+ //float B = clock();
+ //cout << "assembleTree\t" << (B-A) / CLOCKS_PER_SEC << endl;
return 0;
}
catch(exception& e) {