]> git.donarmstrong.com Git - mothur.git/blobdiff - createdatabasecommand.h
minor changes to pcr.seqs. Added filterToPos and filterFromPos to sequence class...
[mothur.git] / createdatabasecommand.h
diff --git a/createdatabasecommand.h b/createdatabasecommand.h
new file mode 100644 (file)
index 0000000..9fc84d7
--- /dev/null
@@ -0,0 +1,49 @@
+#ifndef Mothur_createdatabasecommand_h
+#define Mothur_createdatabasecommand_h
+
+//
+//  createdatabasecommand.h
+//  Mothur
+//
+//  Created by Sarah Westcott on 3/28/12.
+//  Copyright (c) 2012 Schloss Lab. All rights reserved.
+//
+
+#include "command.hpp"
+#include "listvector.hpp"
+
+class CreateDatabaseCommand : public Command {
+public:
+       CreateDatabaseCommand(string);
+       CreateDatabaseCommand();
+       ~CreateDatabaseCommand(){}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "create.database";             }
+       string getCommandCategory()             { return "OTU-Based Approaches"; }
+       string getHelpString(); 
+       string getCitation() { return "http://www.mothur.org/wiki/Create.database"; }
+       string getDescription()         { return "creates database file that includes, abundances across groups, representative sequences, and taxonomy for each OTU"; }
+    
+       
+       int execute() {}; 
+       void help() { m->mothurOut(getHelpString()); }  
+       
+private:
+       
+       bool abort;
+       string listfile, groupfile, repfastafile, repnamesfile, constaxonomyfile, label, outputDir;
+       
+       vector<string> outputNames;
+               
+       int readFasta();
+       int readNames();
+    int readTax();
+       int processList(ListVector*&);
+       
+};
+
+
+
+
+#endif