X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=filterseqscommand.h;h=90c13f8ee82722570d129d74874b519cc4ee9a60;hp=4405c33f52165d5c89cbe47e8513147cb14dd879;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=0caf3fbabaa3ece404f8ce77f4c883dc5b1bf1dc diff --git a/filterseqscommand.h b/filterseqscommand.h index 4405c33..90c13f8 100644 --- a/filterseqscommand.h +++ b/filterseqscommand.h @@ -24,7 +24,9 @@ public: vector setParameters(); string getCommandName() { return "filter.seqs"; } string getCommandCategory() { return "Sequence Processing"; } + string getHelpString(); + string getOutputPattern(string); string getCitation() { return "http://www.mothur.org/wiki/Filter.seqs"; } string getDescription() { return "removes columns from alignments based on a criteria defined by the user"; } @@ -151,7 +153,7 @@ static DWORD WINAPI MyCreateFilterThreadFunction(LPVOID lpParam){ in.seekg(pDataArray->start-1); pDataArray->m->gobble(in); } - pDataArray->count = pDataArray->end; + pDataArray->count = 0; for(int i = 0; i < pDataArray->end; i++){ //end is the number of sequences to process if (pDataArray->m->control_pressed) { in.close(); pDataArray->count = 1; return 1; } @@ -164,7 +166,7 @@ static DWORD WINAPI MyCreateFilterThreadFunction(LPVOID lpParam){ if(pDataArray->trump != '*') { pDataArray->F.doTrump(current); } if(pDataArray->m->isTrue(pDataArray->vertical) || pDataArray->soft != 0) { pDataArray->F.getFreqs(current); } } - + pDataArray->count++; //report progress if((i) % 100 == 0){ pDataArray->m->mothurOut(toString(i)); pDataArray->m->mothurOutEndLine(); } } @@ -201,7 +203,7 @@ static DWORD WINAPI MyRunFilterThreadFunction(LPVOID lpParam){ in.seekg(pDataArray->start-1); pDataArray->m->gobble(in); } - pDataArray->count = pDataArray->end; + pDataArray->count = 0; for(int i = 0; i < pDataArray->end; i++){ //end is the number of sequences to process if (pDataArray->m->control_pressed) { in.close(); out.close(); pDataArray->count = 1; return 1; } @@ -219,7 +221,7 @@ static DWORD WINAPI MyRunFilterThreadFunction(LPVOID lpParam){ out << '>' << seq.getName() << endl << filterSeq << endl; } - + pDataArray->count++; //report progress if((i) % 100 == 0){ pDataArray->m->mothurOut(toString(i)); pDataArray->m->mothurOutEndLine(); } }