Repository navigation
Expand file tree
/
Copy pathcatchallcommand.h
More file actions
60 lines (44 loc) · 1.53 KB
/
Copy pathcatchallcommand.h
File metadata and controls
60 lines (44 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef CATCHALLCOMMAND_H
#define CATCHALLCOMMAND_H
/*
* catchallcommand.h
* Mothur
*
* Created by westcott on 5/11/10.
* Copyright 2010 Schloss Lab. All rights reserved.
*
*/
#include "command.hpp"
#include "inputdata.h"
#include "sabundvector.hpp"
/*
citation goes here
*/
/****************************************************************************/
class CatchAllCommand : public Command {
public:
CatchAllCommand(string);
CatchAllCommand();
~CatchAllCommand() {}
vector<string> setParameters();
string getCommandName() { return "catchall"; }
string getCommandCategory() { return "OTU-Based Approaches"; }
string getHelpString();
string getOutputPattern(string);
string getCitation() { return "Bunge J, Woodard L, Bohning D, Foster JA, Connolly S, Allen HK (2012). Estimating population diversity with CatchAll. Bioinformatics 28:1045.\nhttp://www.northeastern.edu/catchall/index.html\nhttp://www.mothur.org/wiki/Catchall"; }
string getDescription() { return "estimate number of species"; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
string outputDir, sharedfile, sabundfile, format, path, savedOutputDir;
bool abort, allLines;
set<string> labels;
vector<string> outputNames;
vector<string> groups;
string process(SAbundVector*, string);
int createSummaryFile(string, string, ofstream&);
vector<string> parseSharedFile(string);
string combineSummmary(vector<string>&);
};
/****************************************************************************/
#endif