1 #ifndef CLASSIFYOTUSCOMMAND_H
2 #define CLASSIFYOTUSCOMMAND_H
8 * Created by westcott on 6/1/10.
9 * Copyright 2010 Schloss Lab. All rights reserved.
13 #include "command.hpp"
14 #include "listvector.hpp"
15 #include "inputdata.h"
18 class ClassifyOtuCommand : public Command {
21 ClassifyOtuCommand(string);
23 ~ClassifyOtuCommand() {}
25 vector<string> setParameters();
26 string getCommandName() { return "classify.otu"; }
27 string getCommandCategory() { return "Phylotype Analysis"; }
28 string getHelpString();
31 void help() { m->mothurOut(getHelpString()); }
37 string listfile, namefile, taxfile, label, outputDir, refTaxonomy, groupfile, basis;
38 bool abort, allLines, probs;
40 set<string> labels; //holds labels to be used
41 vector<string> outputNames;
42 map<string, string> nameMap;
43 map<string, string> taxMap;
46 int readTaxonomyFile();
47 void removeConfidences(string&);
48 int process(ListVector*);
49 vector<string> findConsensusTaxonomy(int, ListVector*, int&, string&); // returns the name of the "representative" taxonomy of given bin