]> git.donarmstrong.com Git - mothur.git/blob - getdistscommand.h
added modify names parameter to set.dir
[mothur.git] / getdistscommand.h
1 //
2 //  getdistscommand.h
3 //  Mothur
4 //
5 //  Created by Sarah Westcott on 1/28/13.
6 //  Copyright (c) 2013 Schloss Lab. All rights reserved.
7 //
8
9 #ifndef Mothur_getdistscommand_h
10 #define Mothur_getdistscommand_h
11
12 #include "command.hpp"
13
14 class GetDistsCommand : public Command {
15         
16 public:
17         
18         GetDistsCommand(string);        
19         GetDistsCommand();
20         ~GetDistsCommand(){}
21         
22         vector<string> setParameters();
23         string getCommandName()                 { return "get.dists";                           }
24         string getCommandCategory()             { return "General";                 }
25         
26         string getHelpString(); 
27     string getOutputPattern(string);    
28         string getCitation() { return "http://www.mothur.org/wiki/Get.dists"; }
29         string getDescription()         { return "gets distances from a phylip or column file related to groups or sequences listed in an accnos file"; }
30     
31         
32         int execute(); 
33         void help() { m->mothurOut(getHelpString()); }  
34         
35         
36 private:
37         set<string> names;
38         string accnosfile, phylipfile, columnfile, outputDir;
39         bool abort;
40         vector<string> outputNames;
41         
42         int readPhylip();
43         int readColumn();
44         
45 };
46
47
48 #endif