X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=phylosummary.h;h=65a467483ddab1ae58757629644162dc83bab254;hb=70491a12902e89b85cfa6b44a7b7fbe066ee2ac1;hp=3adcc3f5fb0ed1f31bf0f2c223dff553f487a61a;hpb=763d07b1c215b1bdc9d5d63431f78cfecc60acf5;p=mothur.git diff --git a/phylosummary.h b/phylosummary.h index 3adcc3f..65a4674 100644 --- a/phylosummary.h +++ b/phylosummary.h @@ -13,6 +13,7 @@ #include "mothur.h" #include "mothurout.h" #include "groupmap.h" +#include "counttable.h" /**************************************************************************************************/ @@ -32,13 +33,15 @@ struct rawTaxNode { class PhyloSummary { public: - PhyloSummary(string); - PhyloSummary(string, string); - ~PhyloSummary() { if (groupmap != NULL) { delete groupmap; } } + PhyloSummary(GroupMap*); + PhyloSummary(string, GroupMap*); + PhyloSummary(CountTable*); + PhyloSummary(string, CountTable*); + ~PhyloSummary() {} int summarize(string); //pass it a taxonomy file and a group file and it makes the tree int addSeqToTree(string, string); - int addSeqToTree(string, vector); + int addSeqToTree(string, map); void print(ofstream&); int getMaxLevel() { return maxLevel; } @@ -49,14 +52,13 @@ private: void assignRank(int); void readTreeStruct(ifstream&); GroupMap* groupmap; + CountTable* ct; bool ignore; int numNodes; int numSeqs; int maxLevel; MothurOut* m; - - void removeConfidences(string&); }; /**************************************************************************************************/