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 /**************************************************************************************************/
19 map<string, int> children; //childs name to index in tree
23 rawTaxNode(string n) : name(n), level(0), parent(-1) { }
27 /**************************************************************************************************/
29 class RawTrainingDataMaker {
32 RawTrainingDataMaker();
33 RawTrainingDataMaker(string); //pass it a taxonomy file and it makes the tree
34 ~RawTrainingDataMaker() {};
35 int addSeqToTree(string, string);
37 void print(ofstream&);
40 string getNextTaxon(string&);
41 vector<rawTaxNode> tree;
42 void print(int, ofstream&);
46 //map<string, string> sanityCheck;
50 /**************************************************************************************************/