]> git.donarmstrong.com Git - mothur.git/blob - getgroupscommand.h
changing command name classify.shared to classifyrf.shared
[mothur.git] / getgroupscommand.h
1 #ifndef GETGROUPSCOMMAND_H
2 #define GETGROUPSCOMMAND_H
3
4 /*
5  *  getgroupscommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 11/10/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "command.hpp"
15 #include "groupmap.h"
16
17 class GetGroupsCommand : public Command {
18         
19 public:
20         
21         GetGroupsCommand(string);       
22         GetGroupsCommand();
23         ~GetGroupsCommand(){}
24         
25         vector<string> setParameters();
26         string getCommandName()                 { return "get.groups";                          }
27         string getCommandCategory()             { return "OTU-Based Approaches";        }
28         
29         string getHelpString(); 
30     string getOutputPattern(string);    
31         string getCitation() { return "http://www.mothur.org/wiki/Get.groups"; }
32         string getDescription()         { return "gets sequences from a list, fasta, name, group, shared, design or taxonomy file from a given group or set of groups"; }
33
34         
35         int execute(); 
36         void help() { m->mothurOut(getHelpString()); }  
37         
38         
39 private:
40         set<string> names;
41         map<string, string> uniqueToRedundant; //if a namefile is given and the first column name is not selected
42                                                                                    //then the other files need to change the unique name in their file to match.
43                                                                                    //only add the names that need to be changed to keep the map search quick
44         string accnosfile, countfile, fastafile, namefile, groupfile, listfile, designfile, taxfile, outputDir, groups, sharedfile;
45         bool abort;
46         vector<string> outputNames, Groups;
47         GroupMap* groupMap;
48         
49         int readFasta();
50         int readName();
51         int readGroup();
52     int readCount();
53         int readList();
54         int readTax();
55         int fillNames();
56         int readShared();
57     int readDesign();
58         
59 };
60
61 #endif
62
63
64