]> git.donarmstrong.com Git - mothur.git/blobdiff - screenseqscommand.h
changed how we break up the files on parallelized commands to avoid scanning file.
[mothur.git] / screenseqscommand.h
index 9b987261d10cc62f5296d1717752eb5d7c587dae..8f62ae48af466148c56b2b7b53aef7240cb95761 100644 (file)
  */
 #include "mothur.h"
 #include "command.hpp"
-#include "globaldata.hpp"
 
 class ScreenSeqsCommand : public Command {
        
 public:
-       ScreenSeqsCommand();
+       ScreenSeqsCommand(string);
        ~ScreenSeqsCommand();
        int execute();
+       void help();
+       
 private:
-       void screenNameGroupFile(set<string>);
-       void screenGroupFile(set<string>);
 
-       GlobalData* globaldata; 
+       struct linePair {
+               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;
+
+       int screenNameGroupFile(set<string>);
+       int screenGroupFile(set<string>);
+       int screenAlignReport(set<string>);
+       
+       int driver(linePair*, string, string, string, string, set<string>&);
+       int createProcesses(string, string, string, string, set<string>&);
+       
+       #ifdef USE_MPI
+       int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, MPI_File&, vector<unsigned long int>&, set<string>&);
+       #endif
+
+       bool abort;
+       string fastafile, namefile, groupfile, alignreport, outputDir;
+       int startPos, endPos, maxAmbig, maxHomoP, minLength, maxLength, processors;
+       vector<string> outputNames;
 };
 
 #endif