X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=screenseqscommand.h;h=3642295b54af9d46fd246ad642065952af7295ab;hb=f5ef644ce76074de08b2bbb64097619b2b16d60d;hp=425b473d4e1e7204ff460a00220bacc023dd0333;hpb=74c78f9abd9e733f0c2f812efec97a76632fcbf8;p=mothur.git diff --git a/screenseqscommand.h b/screenseqscommand.h index 425b473..3642295 100644 --- a/screenseqscommand.h +++ b/screenseqscommand.h @@ -11,24 +11,59 @@ */ #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(string); ScreenSeqsCommand(); - ~ScreenSeqsCommand(); - int execute(); + ~ScreenSeqsCommand() {} + + vector setParameters(); + string getCommandName() { return "screen.seqs"; } + string getCommandCategory() { return "Sequence Processing"; } + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Screen.seqs"; } + string getDescription() { return "enables you to keep sequences that fulfill certain user defined criteria"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + + 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 screenQual(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, qualfile; + int startPos, endPos, maxAmbig, maxHomoP, minLength, maxLength, processors, criteria; + vector outputNames; + vector optimize; + map nameMap; + int readNames(); + + int getSummary(vector&); + int createProcessesCreateSummary(vector&, vector&, vector&, vector&, vector&, string); + int driverCreateSummary(vector&, vector&, vector&, vector&, vector&, string, linePair*); }; #endif