]> git.donarmstrong.com Git - mothur.git/blob - catchallcommand.h
added citation function to commands
[mothur.git] / catchallcommand.h
1 #ifndef CATCHALLCOMMAND_H
2 #define CATCHALLCOMMAND_H
3
4 /*
5  *  catchallcommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 5/11/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13 #include "command.hpp"
14 #include "inputdata.h"
15 #include "sabundvector.hpp"
16
17 /* 
18  citation goes here
19  */ 
20
21 /****************************************************************************/
22
23 class CatchAllCommand : public Command {
24
25 public:
26
27         CatchAllCommand(string);
28         CatchAllCommand();
29         ~CatchAllCommand() {}
30         
31         vector<string> setParameters();
32         string getCommandName()                 { return "catchall";                    }
33         string getCommandCategory()             { return "OTU-Based Approaches";        }
34         string getHelpString(); 
35         string getCitation() { return "http://www.northeastern.edu/catchall/index.html http://www.mothur.org/wiki/Catchall"; }
36
37         int execute(); 
38         void help() { m->mothurOut(getHelpString()); }  
39         
40 private:
41         string outputDir, sharedfile, sabundfile, format, path, savedOutputDir;
42         bool abort, allLines;
43         set<string> labels;
44         vector<string> outputNames;
45         vector<string> groups;
46         
47         string process(SAbundVector*, string);
48         int createSummaryFile(string, string, ofstream&); 
49         vector<string> parseSharedFile(string);
50         string combineSummmary(vector<string>&);
51 };
52
53 /****************************************************************************/
54
55 #endif
56
57