X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=screenseqscommand.h;h=2c31ba2245b523b7f18c0a3559ee9cd6f85890df;hb=4745a956b3116a719f52f341d2a2db84df4817da;hp=425b473d4e1e7204ff460a00220bacc023dd0333;hpb=74c78f9abd9e733f0c2f812efec97a76632fcbf8;p=mothur.git diff --git a/screenseqscommand.h b/screenseqscommand.h index 425b473..2c31ba2 100644 --- a/screenseqscommand.h +++ b/screenseqscommand.h @@ -11,24 +11,41 @@ */ #include "mothur.h" #include "command.hpp" -#include "globaldata.hpp" -#include "readfasta.h" -#include "readnexus.h" -#include "readclustal.h" -#include "readseqsphylip.h" - class ScreenSeqsCommand : public Command { public: - ScreenSeqsCommand(); + ScreenSeqsCommand(string); ~ScreenSeqsCommand(); int execute(); + void help(); + private: - void screenNameGroupFile(set); - void screenGroupFile(set); - 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 processIDS; //processid + vector lines; + + int screenNameGroupFile(set); + int screenGroupFile(set); + int screenAlignReport(set); + + int driver(linePair*, string, string, string, set&); + int createProcesses(string, string, string, set&); + + #ifdef USE_MPI + int driverMPI(int, int, MPI_File&, MPI_File&, MPI_File&, vector&, set&); + #endif + + bool abort; + string fastafile, namefile, groupfile, alignreport, outputDir; + int startPos, endPos, maxAmbig, maxHomoP, minLength, maxLength, processors; + vector outputNames; }; #endif