forked from mothur/mothur
-
Notifications
You must be signed in to change notification settings - Fork 1
/
classifyotucommand.h
60 lines (45 loc) · 1.62 KB
/
classifyotucommand.h
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 CLASSIFYOTUSCOMMAND_H
#define CLASSIFYOTUSCOMMAND_H
/*
* classifyotucommand.h
* Mothur
*
* Created by westcott on 6/1/10.
* Copyright 2010 Schloss Lab. All rights reserved.
*
*/
#include "command.hpp"
#include "listvector.hpp"
#include "inputdata.h"
#include "counttable.h"
class ClassifyOtuCommand : public Command {
public:
ClassifyOtuCommand(string);
ClassifyOtuCommand();
~ClassifyOtuCommand() {}
vector<string> setParameters();
string getCommandName() { return "classify.otu"; }
string getCommandCategory() { return "Phylotype Analysis"; }
string getHelpString();
string getOutputPattern(string);
string getCitation() { return "Schloss PD, Westcott SL (2011). Assessing and improving methods used in OTU-based approaches for 16S rRNA gene sequence analysis. Appl Environ Microbiol 77:3219.\nhttp://www.mothur.org/wiki/Classify.otu"; }
string getDescription() { return "find the concensus taxonomy for each OTU"; }
int execute();
void help() { m->mothurOut(getHelpString()); }
private:
GroupMap* groupMap;
CountTable* ct;
ListVector* list;
InputData* input;
string listfile, namefile, taxfile, label, outputDir, refTaxonomy, groupfile, basis, countfile;
bool abort, allLines, probs, persample;
int cutoff;
set<string> labels; //holds labels to be used
vector<string> outputNames, groups;
map<string, string> nameMap;
map<string, string> taxMap;
int process(ListVector*);
string addUnclassifieds(string, int);
vector<string> findConsensusTaxonomy(vector<string>, int&, string&); // returns the name of the "representative" taxonomy of given bin
};
#endif