]> git.donarmstrong.com Git - mothur.git/blobdiff - classifyseqscommand.h
added pipeline commands which involved change to command factory and command class...
[mothur.git] / classifyseqscommand.h
index 1dc4c1bf0353609f3a18bc547ba947587d965fa7..16549135aacbe25e36d89f21c503f1baae2fe659 100644 (file)
@@ -29,23 +29,31 @@ class ClassifySeqsCommand : public Command {
        
 public:
        ClassifySeqsCommand(string);
+       ClassifySeqsCommand();
        ~ClassifySeqsCommand();
+       vector<string> getRequiredParameters();
+       vector<string> getValidParameters();
+       vector<string> getRequiredFiles();
+       map<string, vector<string> > getOutputFiles() { return outputTypes; }
        int execute(); 
        void help();    
        
 private:
        struct linePair {
-               int start;
-               int numSeqs;
-               linePair(int i, int j) : start(i), numSeqs(j) {}
+               unsigned long int start;
+               unsigned long int end;
+               linePair(unsigned long int i, unsigned long int j) : start(i), end(j) {}
        };
+
        vector<int> processIDS;   //processid
        vector<linePair*> lines;
        vector<string> fastaFileNames;
        vector<string> namefileNames;
        vector<string> groupfileNames;
+       vector<string> outputNames;
        map<string, vector<string> > nameMap;
        map<string,  vector<string> >::iterator itNames;
+       map<string, vector<string> > outputTypes;
        
        Classify* classify;
        
@@ -56,12 +64,12 @@ private:
        
        int driver(linePair*, string, string, string);
        void appendTaxFiles(string, string);
-       void createProcesses(string, string, string); 
+       int createProcesses(string, string, string); 
        string addUnclassifieds(string, int);
        
        int MPIReadNamesFile(string);
        #ifdef USE_MPI
-       int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector<long>&);
+       int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&);
        #endif
 };