X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=phylotree.h;h=a57cf256ecf0e0eded1182681f7ab91601e0a1a5;hb=cd9dbd8b53bbe32af3e9c6bead4aa6d796a278a5;hp=b65a651b7a864f45ee04617ef447f344005a3aba;hpb=6f4b9401f7deb8aaf0d87659298308f4138cc3b0;p=mothur.git diff --git a/phylotree.h b/phylotree.h index b65a651..a57cf25 100644 --- a/phylotree.h +++ b/phylotree.h @@ -32,15 +32,14 @@ class PhyloTree { public: PhyloTree(); PhyloTree(string); //pass it a taxonomy file and it makes the tree - PhyloTree(ifstream&); //pass it a taxonomy file and it makes the train.tree + PhyloTree(ifstream&, string); //pass it a taxonomy file and it makes the train.tree ~PhyloTree() {}; int addSeqToTree(string, string); void assignHeirarchyIDs(int); - void print(ofstream&); void printTreeNodes(string); //used by bayesian to save time vector getGenusNodes(); vector getGenusTotals(); - void binUnclassified(); + void setUp(string); //used to create file needed for summary file if you use () constructor and add seqs manually instead of passing taxonomyfile TaxNode get(int i) { return tree[i]; } TaxNode get(string seqName) { return tree[name2Taxonomy[seqName]]; } @@ -52,12 +51,15 @@ public: private: string getNextTaxon(string&); + void print(ofstream&, vector&); + void binUnclassified(string); + vector tree; vector genusIndex; //holds the indexes in tree where the genus level taxonomies are stored vector totals; //holds the numSeqs at each genus level taxonomy map name2Taxonomy; //maps name to index in tree map uniqueTaxonomies; //map of unique taxonomies - void print(int, ofstream&); + //void print(int, ofstream&); int numNodes; int numSeqs; int maxLevel;