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"
17 /**************************************************************************************************/
20 map<string, int> children; //childs name to index in tree
23 map<string, int> groupCount;
26 rawTaxNode(string n) : name(n), level(0), parent(-1), total(0) {}
30 /**************************************************************************************************/
31 //doesn't use MPI ifdefs since only pid 0 uses this class
36 PhyloSummary(string, string);
37 ~PhyloSummary() { if (groupmap != NULL) { delete groupmap; } }
39 int summarize(string); //pass it a taxonomy file and a group file and it makes the tree
40 int addSeqToTree(string, string);
41 int addSeqToTree(string, vector<string>);
42 void print(ofstream&);
43 int getMaxLevel() { return maxLevel; }
46 string getNextTaxon(string&);
47 vector<rawTaxNode> tree;
48 void print(int, ofstream&);
50 void readTreeStruct(ifstream&);
60 /**************************************************************************************************/