]> git.donarmstrong.com Git - mothur.git/blob - phylotypecommand.h
added citation function to commands
[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         string getCitation() { return "http://www.mothur.org/wiki/Phylotype"; }
31         
32         int execute();
33         void help() { m->mothurOut(getHelpString()); }
34         
35 private:
36         bool abort, allLines;
37         string taxonomyFileName, label, outputDir, namefile;
38         set<string> labels; //holds labels to be used
39         int cutoff;
40         map<string, string> namemap;
41         vector<string> outputNames;
42         map<string, vector<string> > outputTypes;
43         
44         map<int, int> currentNodes;
45         map<int, int> parentNodes;
46         map<int, int>::iterator itCurrent;
47         
48         int readNamesFile();
49
50 };
51
52
53 /*************************************************************************/
54
55
56 #endif
57
58
59