X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=screenseqscommand.h;h=b0d7c7c18f3852dd40395b0f699749fc885cc14b;hb=006601d68abe8d0061f77e8d28323b160750e343;hp=cbeed469b0b571a66f79238aaac6d758658c0ac0;hpb=43ed0accfbc2852849e104ff7eccdd2c42acd4ec;p=mothur.git diff --git a/screenseqscommand.h b/screenseqscommand.h index cbeed46..b0d7c7c 100644 --- a/screenseqscommand.h +++ b/screenseqscommand.h @@ -23,6 +23,7 @@ public: vector setParameters(); string getCommandName() { return "screen.seqs"; } string getCommandCategory() { return "Sequence Processing"; } + string getOutputFileNameTag(string, string); 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"; } @@ -43,6 +44,7 @@ private: int screenNameGroupFile(set); int screenGroupFile(set); + int screenCountFile(set); int screenAlignReport(set); int screenQual(set); int screenTaxonomy(set); @@ -55,12 +57,11 @@ private: #endif bool abort; - string fastafile, namefile, groupfile, alignreport, outputDir, qualfile, taxonomy; + string fastafile, namefile, groupfile, alignreport, outputDir, qualfile, taxonomy, countfile; 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); @@ -107,11 +108,11 @@ struct sumScreenData { int count; MothurOut* m; string goodFName, badAccnosFName, filename; - set* badSeqNames; + set badSeqNames; sumScreenData(){} - sumScreenData(int s, int e, int a, int h, int minl, int maxl, string f, MothurOut* mout, unsigned long long st, unsigned long long en, string gf, string bf, set* bn) { + sumScreenData(int s, int e, int a, int h, int minl, int maxl, string f, MothurOut* mout, unsigned long long st, unsigned long long en, string gf, string bf) { startPos = s; endPos = e; minLength = minl; @@ -124,7 +125,6 @@ struct sumScreenData { m = mout; start = st; end = en; - badSeqNames = bn; count = 0; } }; @@ -233,7 +233,7 @@ static DWORD WINAPI MySumScreenThreadFunction(LPVOID lpParam){ } else{ badAccnosFile << currSeq.getName() << endl; - pDataArray->badSeqNames->insert(currSeq.getName()); + pDataArray->badSeqNames.insert(currSeq.getName()); } }