]> git.donarmstrong.com Git - mothur.git/blobdiff - classifyotucommand.h
working on pam
[mothur.git] / classifyotucommand.h
index e81c246201f36b7904d26b702748e1ba653dff66..c0a822070fa9a8b0b570f05e1ede727e19ead48b 100644 (file)
@@ -13,6 +13,7 @@
 #include "command.hpp"
 #include "listvector.hpp"
 #include "inputdata.h"
+#include "counttable.h"
 
 
 class ClassifyOtuCommand : public Command {
@@ -20,32 +21,36 @@ class ClassifyOtuCommand : public Command {
 public:
        ClassifyOtuCommand(string);
        ClassifyOtuCommand();
-       ~ClassifyOtuCommand();
-       vector<string> getRequiredParameters();
-       vector<string> getValidParameters();
-       vector<string> getRequiredFiles();
-       map<string, vector<string> > getOutputFiles() { return outputTypes; }
-       int execute();
-       void help();
+       ~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;
-       bool abort, allLines, probs;
+       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;
+       vector<string> outputNames, groups;
        map<string, string> nameMap;
        map<string, string> taxMap;
-       map<string, vector<string> > outputTypes;
 
-       int readNamesFile();
-       int readTaxonomyFile();
-       void removeConfidences(string&);
        int process(ListVector*);
-       vector<string> findConsensusTaxonomy(int, ListVector*, int&, string&);  // returns the name of the "representative" taxonomy of given bin
+       string addUnclassifieds(string, int);
+       vector<string> findConsensusTaxonomy(vector<string>, int&, string&);    // returns the name of the "representative" taxonomy of given bin
        
                                                                                                
 };