#include "mothur.h"
#include "mothurout.h"
#include "groupmap.h"
+#include "counttable.h"
/**************************************************************************************************/
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<string>);
+ int addSeqToTree(string, map<string, bool>);
void print(ofstream&);
+ void print(ofstream&, bool);
int getMaxLevel() { return maxLevel; }
private:
string getNextTaxon(string&);
vector<rawTaxNode> tree;
void print(int, ofstream&);
+ void print(int, ofstream&, bool);
void assignRank(int);
void readTreeStruct(ifstream&);
GroupMap* groupmap;
+ CountTable* ct;
bool ignore;
int numNodes;
int numSeqs;
int maxLevel;
MothurOut* m;
-
- void removeConfidences(string&);
};
/**************************************************************************************************/