X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=screenseqscommand.h;h=071724f79cb45c69bb4c4237c072ddc462188439;hb=cd4c86f68cb53017f0f98a82dd2c2e56a64c67bd;hp=425b473d4e1e7204ff460a00220bacc023dd0333;hpb=74c78f9abd9e733f0c2f812efec97a76632fcbf8;p=mothur.git diff --git a/screenseqscommand.h b/screenseqscommand.h index 425b473..071724f 100644 --- a/screenseqscommand.h +++ b/screenseqscommand.h @@ -11,24 +11,40 @@ */ #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; + int numSeqs; + linePair(unsigned long int i, int j) : start(i), numSeqs(j) {} + }; + vector processIDS; //processid + vector lines; + + int screenNameGroupFile(set); + int screenGroupFile(set); + int screenAlignReport(set); + + int driver(linePair*, string, string, string, string, set&); + int createProcesses(string, string, string, string, set&); + + #ifdef USE_MPI + int driverMPI(int, int, MPI_File&, 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