]> git.donarmstrong.com Git - mothur.git/blob - getotuscommand.h
added citation function to commands
[mothur.git] / getotuscommand.h
1 #ifndef GETOTUSCOMMAND_H
2 #define GETOTUSCOMMAND_H
3
4 /*
5  *  getotuscommand.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
15 #include "command.hpp"
16 #include "groupmap.h"
17 #include "listvector.hpp"
18
19 class GetOtusCommand : public Command {
20         
21 public:
22         
23         GetOtusCommand(string); 
24         GetOtusCommand();
25         ~GetOtusCommand(){}
26         
27         vector<string> setParameters();
28         string getCommandName()                 { return "get.otus";                            }
29         string getCommandCategory()             { return "OTU-Based Approaches";        }
30         string getHelpString(); 
31         string getCitation() { return "http://www.mothur.org/wiki/Get.otus"; }
32         
33         int execute(); 
34         void help() { m->mothurOut(getHelpString()); }  
35         
36         
37 private:
38         string accnosfile, groupfile, listfile, outputDir, groups, label;
39         bool abort;
40         vector<string> outputNames, Groups;
41         GroupMap* groupMap;
42         
43         void readAccnos();
44         int readListGroup();
45         int processList(ListVector*&, GroupMap*&, ofstream&, ofstream&, bool&);
46         
47 };
48
49 #endif
50
51
52