]> git.donarmstrong.com Git - mothur.git/blobdiff - splitgroupscommand.h
Revert to previous commit
[mothur.git] / splitgroupscommand.h
diff --git a/splitgroupscommand.h b/splitgroupscommand.h
new file mode 100644 (file)
index 0000000..a6b8854
--- /dev/null
@@ -0,0 +1,54 @@
+#ifndef SPLITGROUPSCOMMAND_H
+#define SPLITGROUPSCOMMAND_H
+
+/*
+ *  splitgroupscommand.h
+ *  Mothur
+ *
+ *  Created by westcott on 9/20/10.
+ *  Copyright 2010 Schloss Lab. All rights reserved.
+ *
+ */
+
+
+/* split.groups - given a group file, split sequences and names files in to separate files *.group1.fasta and .group1.names. */
+
+
+#include "command.hpp"
+#include "groupmap.h"
+#include "sequence.hpp"
+
+/***************************************************************************************/
+
+class SplitGroupCommand : public Command {
+       
+public:
+       SplitGroupCommand(string);      
+       SplitGroupCommand();
+       ~SplitGroupCommand() {}
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "split.group";                         }
+       string getCommandCategory()             { return "Sequence Processing";         }
+       string getHelpString(); 
+       string getCitation() { return "http://www.mothur.org/wiki/Split.group"; }
+       string getDescription()         { return "split a name or fasta file by group"; }
+
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
+       
+private:
+       vector<string> outputNames;
+               
+       string outputDir, namefile, groupfile, groups, fastafile;
+       vector<string> Groups;
+       bool abort;
+};
+
+/***************************************************************************************/
+
+#endif
+
+
+