X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=phylosummary.h;h=65a467483ddab1ae58757629644162dc83bab254;hp=cdec0d0a4ac7ca83cb0845988adb90152bcae07b;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=74dc92cf53df65fd8b14d8eaf35489bbecbccac6 diff --git a/phylosummary.h b/phylosummary.h index cdec0d0..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,6 +52,7 @@ private: void assignRank(int); void readTreeStruct(ifstream&); GroupMap* groupmap; + CountTable* ct; bool ignore; int numNodes;