]> git.donarmstrong.com Git - mothur.git/blob - deuniquetreecommand.h
added modify names parameter to set.dir
[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         
29         string getHelpString(); 
30     string getOutputPattern(string);    
31         string getCitation() { return "http://www.mothur.org/wiki/Deunique.tree"; }
32         string getDescription()         { return "add the redundant sequence names back into a tree of unique sequences"; }
33         
34         int execute();
35         void help() { m->mothurOut(getHelpString()); }
36         
37         
38 private:
39         int numUniquesInName;
40         
41         bool abort;
42         string outputDir, treefile, namefile;
43         vector<string> outputNames;
44         map<string, string> nameMap;
45         int readNamesFile();
46 };
47
48 #endif