]> git.donarmstrong.com Git - mothur.git/blob - getsharedotucommand.h
added citation function to commands
[mothur.git] / getsharedotucommand.h
1 #ifndef GETSHAREDOTUCOMMAND_H
2 #define GETSHAREDOTUCOMMAND_H
3
4 /*
5  *  getsharedotucommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 9/22/09.
9  *  Copyright 2009 Schloss Lab. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14 #include "listvector.hpp"
15 #include "sequence.hpp"
16 #include "groupmap.h"
17
18 //**********************************************************************************************************************
19 class GetSharedOTUCommand : public Command {
20         
21         public:
22         
23                 GetSharedOTUCommand(string);    
24                 GetSharedOTUCommand();  
25                 ~GetSharedOTUCommand() {}
26         
27                 vector<string> setParameters();
28                 string getCommandName()                 { return "get.sharedseqs";                      }
29                 string getCommandCategory()             { return "OTU-Based Approaches";        }
30                 string getRequiredCommand()             { return "none";                                        }
31                 string getHelpString(); 
32                 string getCitation() { return "http://www.mothur.org/wiki/Get.sharedseqs"; }
33         
34                 int execute(); 
35                 void help() { m->mothurOut(getHelpString()); }  
36         
37         
38                 
39         private:
40                 ListVector* list;
41                 GroupMap* groupMap;
42                 
43                 set<string> labels;
44                 string fastafile, label, groups, listfile, groupfile, output, userGroups, outputDir, format;
45                 bool abort, allLines, unique;
46                 vector<string> Groups;
47                 map<string, string> groupFinder;
48                 map<string, string>::iterator it;
49                 vector<Sequence> seqs;
50                 vector<string> outputNames;
51                 
52                 int process(ListVector*);
53                 
54 };
55 //**********************************************************************************************************************
56
57 #endif
58