]> git.donarmstrong.com Git - mothur.git/blobdiff - removeotulabelscommand.h
added get.otulabels and remove.otulabels commands per user request
[mothur.git] / removeotulabelscommand.h
diff --git a/removeotulabelscommand.h b/removeotulabelscommand.h
new file mode 100644 (file)
index 0000000..da2441d
--- /dev/null
@@ -0,0 +1,55 @@
+#ifndef Mothur_removeotulabelscommand_h
+#define Mothur_removeotulabelscommand_h
+
+
+//
+//  removeotulabelscommand.h
+//  Mothur
+//
+//  Created by Sarah Westcott on 5/21/12.
+//  Copyright (c) 2012 Schloss Lab. All rights reserved.
+//
+
+#include "command.hpp"
+
+/**************************************************************************************************/
+
+class RemoveOtuLabelsCommand : public Command {
+public:
+    RemoveOtuLabelsCommand(string);
+    RemoveOtuLabelsCommand();
+    ~RemoveOtuLabelsCommand(){}
+    
+    vector<string> setParameters();
+    string getCommandName()                    { return "remove.otulabels";          }
+    string getCommandCategory()                { return "OTU-Based Approaches";        } 
+    string getHelpString();    
+    string getCitation() { return "http://www.mothur.org/wiki/Get.otulabels"; }
+    string getDescription()            { return "Can be used with output from classify.otu, otu.association, or corr.axes to remove specific otus."; }
+    
+    int execute(); 
+    void help() { m->mothurOut(getHelpString()); }     
+    
+private:
+    bool abort;
+    string outputDir, accnosfile, constaxonomyfile, otucorrfile, corraxesfile;
+    vector<string> outputNames;
+    set<string> labels;
+    
+    int readClassifyOtu();
+    int readOtuAssociation();
+    int readCorrAxes();
+    int readAccnos();
+    
+};
+
+/**************************************************************************************************/
+
+
+
+
+
+
+
+
+#endif