X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=screenseqscommand.h;h=49d992ac193c7aa42ad4492c9190bda40671fc0b;hb=8dd3c225255d7084e3aff8740aa4f1f1cabb367a;hp=97b36155af670c3d038c882e742356a1c6ee9a03;hpb=0470f6d037aacb3563c3f7010708120a4a67d4e6;p=mothur.git diff --git a/screenseqscommand.h b/screenseqscommand.h index 97b3615..49d992a 100644 --- a/screenseqscommand.h +++ b/screenseqscommand.h @@ -11,27 +11,60 @@ */ #include "mothur.h" #include "command.hpp" -#include "globaldata.hpp" class ScreenSeqsCommand : public Command { public: ScreenSeqsCommand(string); - ~ScreenSeqsCommand(); - int execute(); - void help(); + ScreenSeqsCommand(); + ~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; - OptionParser* parser; - map parameters; - map::iterator it; + struct linePair { + unsigned long long start; + unsigned long long end; + linePair(unsigned long long i, unsigned long long j) : start(i), end(j) {} + }; + + vector processIDS; //processid + vector lines; + + int screenNameGroupFile(set); + int screenGroupFile(set); + int screenAlignReport(set); + int screenQual(set); + int screenTaxonomy(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; - int startPos, endPos, maxAmbig, maxHomoP, minLength, maxLength; + string fastafile, namefile, groupfile, alignreport, outputDir, qualfile, taxonomy; + 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