]> git.donarmstrong.com Git - mothur.git/blobdiff - binsequencecommand.h
added modify names parameter to set.dir
[mothur.git] / binsequencecommand.h
index e2ff648283a9c00569a8d2a4170a040b4a494902..c93041f348505d7482e9a18d2658d29919eae309 100644 (file)
 #include "command.hpp"
 #include "inputdata.h"
 #include "listvector.hpp"
-#include "readotu.h"
 #include "fastamap.h"
 #include "groupmap.h"
-
-
-class GlobalData;
+#include "counttable.h"
 
 class BinSeqCommand : public Command {
        
 public:
-       BinSeqCommand();        
+       BinSeqCommand(string);  
+       BinSeqCommand();
        ~BinSeqCommand();
-       int execute();  
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "bin.seqs";                    }
+       string getCommandCategory()             { return "Sequence Processing"; }
+       
+       string getHelpString(); 
+    string getOutputPattern(string);   
+       string getCitation() { return "http://www.mothur.org/wiki/Bin.seqs"; }
+       string getDescription()         { return "maps sequences to otus"; }
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }          
        
 private:
-       GlobalData* globaldata;
+       CountTable ct;
        ListVector* list;
-       ReadOTUFile* read;
        InputData* input;
        FastaMap* fasta;
        GroupMap* groupMap;
-       string filename, fastafile, namesfile, groupfile;
+       bool abort, allLines;
+       set<string> labels; //holds labels to be used
+       string filename, fastafile, listfile, namesfile, groupfile, countfile, label, outputDir;
        ofstream out;
        ifstream in, inNames;
+       vector<string> outputNames;
        
        void readNamesFile();
+       int process(ListVector*);
 };
 
 #endif