X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=screenseqscommand.h;h=602326c42e2ff75afbeb8050479cf7e188b8b634;hb=86c838c428a9e7d26f902f5492738241fa72c4e7;hp=f1b72051250d07a389ed332b0690cbcda3b807c0;hpb=89d6711c2beed6ee75fb00e5e57f1a91564d3e89;p=mothur.git diff --git a/screenseqscommand.h b/screenseqscommand.h index f1b7205..602326c 100644 --- a/screenseqscommand.h +++ b/screenseqscommand.h @@ -16,35 +16,52 @@ 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(); + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: struct linePair { - int start; - int numSeqs; - linePair(long int i, int j) : start(i), numSeqs(j) {} + 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, string, set&); - int createProcesses(string, string, string, string, 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&, MPI_File&, vector&, set&); + 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; + 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