]> git.donarmstrong.com Git - mothur.git/blob - phylotypecommand.h
fixed bug with tree reading
[mothur.git] / phylotypecommand.h
1 #ifndef PHYLOTYPECOMMAND_H
2 #define PHYLOTYPECOMMAND_H
3
4
5 /*
6  *  phylotypecommand.h
7  *  Mothur
8  *
9  *  Created by westcott on 11/20/09.
10  *  Copyright 2009 Schloss Lab. All rights reserved.
11  *
12  */
13
14 #include "taxonomyequalizer.h"
15 #include "command.hpp"
16
17 /*************************************************************************/
18
19 class PhylotypeCommand : public Command {
20         
21 public:
22         PhylotypeCommand(string);       
23         PhylotypeCommand();
24         ~PhylotypeCommand(){}
25         
26         vector<string> setParameters();
27         string getCommandName()                 { return "phylotype";           }
28         string getCommandCategory()             { return "Clustering";          }
29         string getHelpString(); 
30         
31         int execute();
32         void help() { m->mothurOut(getHelpString()); }
33         
34 private:
35         bool abort, allLines;
36         string taxonomyFileName, label, outputDir, namefile;
37         set<string> labels; //holds labels to be used
38         int cutoff;
39         map<string, string> namemap;
40         vector<string> outputNames;
41         map<string, vector<string> > outputTypes;
42         
43         map<int, int> currentNodes;
44         map<int, int> parentNodes;
45         map<int, int>::iterator itCurrent;
46         
47         int readNamesFile();
48
49 };
50
51
52 /*************************************************************************/
53
54
55 #endif
56
57
58