]> git.donarmstrong.com Git - mothur.git/blob - deuniquetreecommand.h
added tree reader class to handle reading trees. Reworked the tree map to tree class...
[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 "sharedutilities.h"
16 #include "readtree.h"
17
18 class DeuniqueTreeCommand : public Command {
19         
20 public:
21         DeuniqueTreeCommand(string);    
22         DeuniqueTreeCommand();
23         ~DeuniqueTreeCommand() {}
24         
25         vector<string> setParameters();
26         string getCommandName()                 { return "deunique.tree";               }
27         string getCommandCategory()             { return "Hypothesis Testing";          }
28         string getHelpString(); 
29         string getCitation() { return "http://www.mothur.org/wiki/Deunique.tree"; }
30         string getDescription()         { return "add the redundant sequence names back into a tree of unique sequences"; }
31         
32         int execute();
33         void help() { m->mothurOut(getHelpString()); }
34         
35         
36 private:
37         int numUniquesInName;
38         
39         bool abort;
40         string outputDir, treefile, namefile;
41         vector<string> outputNames;
42         map<string, string> nameMap;
43         int readNamesFile();
44 };
45
46 #endif