]> git.donarmstrong.com Git - mothur.git/blob - parselistscommand.h
added citation function to commands
[mothur.git] / parselistscommand.h
1 #ifndef PARSELISTCOMMAND_H
2 #define PARSELISTCOMMAND_H
3 /*
4  *  parselistcommand.h
5  *  Mothur
6  *
7  *  Created by westcott on 2/24/10.
8  *  Copyright 2010 Schloss Lab. All rights reserved.
9  *
10  */
11
12 #include "command.hpp"
13 #include "groupmap.h"
14 #include "inputdata.h"
15 #include "listvector.hpp"
16
17 /***************************************************************************************/
18
19 class ParseListCommand : public Command {
20         
21 public:
22         ParseListCommand(string);
23         ParseListCommand();     
24         ~ParseListCommand() {}
25         
26         vector<string> setParameters();
27         string getCommandName()                 { return "parse.list";                          }
28         string getCommandCategory()             { return "OTU-Based Approaches";        }
29         string getHelpString(); 
30         string getCitation() { return "http://www.mothur.org/wiki/Parse.list"; }
31         
32         int execute(); 
33         void help() { m->mothurOut(getHelpString()); }  
34         
35 private:
36         int parse(ListVector*);
37                 
38         ListVector* list;
39         GroupMap* groupMap;
40         InputData* input;
41         
42         ofstream out;
43         string outputDir, listfile, groupfile, label;
44         set<string> labels;
45         bool abort, allLines;
46         vector<string> outputNames;
47         
48         map<string, ofstream*> filehandles;
49         map<string, ofstream*>::iterator it3;
50
51 };
52
53 /***************************************************************************************/
54
55 #endif
56