1 #ifndef RAWTRAININGDATAMAKER_H
2 #define RAWTRAININGDATAMAKER_H
5 * rawTrainingDataMaker.h
8 * Created by westcott on 4/21/10.
9 * Copyright 2010 Schloss Lab. All rights reserved.
14 #include "mothurout.h"
16 #include "counttable.h"
18 /**************************************************************************************************/
21 map<string, int> children; //childs name to index in tree
24 map<string, int> groupCount;
27 rawTaxNode(string n) : name(n), level(0), parent(-1), total(0) {}
31 /**************************************************************************************************/
32 //doesn't use MPI ifdefs since only pid 0 uses this class
36 PhyloSummary(GroupMap*);
37 PhyloSummary(string, GroupMap*);
38 PhyloSummary(CountTable*);
39 PhyloSummary(string, CountTable*);
42 int summarize(string); //pass it a taxonomy file and a group file and it makes the tree
43 int addSeqToTree(string, string);
44 int addSeqToTree(string, map<string, bool>);
45 void print(ofstream&);
46 int getMaxLevel() { return maxLevel; }
49 string getNextTaxon(string&);
50 vector<rawTaxNode> tree;
51 void print(int, ofstream&);
53 void readTreeStruct(ifstream&);
64 /**************************************************************************************************/