]> git.donarmstrong.com Git - mothur.git/blob - deuniquetreecommand.h
added deunique.tree command
[mothur.git] / deuniquetreecommand.h
1 #ifndef DEUNIQUETREECOMMAND_H
2 #define DEUNIQUETREECOMMAND_H
3
4 /*
5  *  deuniquetreecommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 5/27/11.
9  *  Copyright 2011 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "command.hpp"
15 #include "treemap.h"
16 #include "sharedutilities.h"
17 #include "readtree.h"
18
19 class DeuniqueTreeCommand : public Command {
20         
21 public:
22         DeuniqueTreeCommand(string);    
23         DeuniqueTreeCommand();
24         ~DeuniqueTreeCommand() {}
25         
26         vector<string> setParameters();
27         string getCommandName()                 { return "deunique.tree";               }
28         string getCommandCategory()             { return "Hypothesis Testing";          }
29         string getHelpString(); 
30         string getCitation() { return "http://www.mothur.org/wiki/Deunique.tree"; }
31         
32         int execute();
33         void help() { m->mothurOut(getHelpString()); }
34         
35         
36 private:
37         TreeMap* tmap;
38         int numUniquesInName;
39         
40         bool abort;
41         string outputDir, treefile, namefile;
42         vector<string> outputNames;
43         map<string, string> nameMap;
44         int readNamesFile();
45 };
46
47 #endif