X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=chimeracheckcommand.cpp;h=4947dc97939b6b147718968bb70e544ca262cc00;hp=66cf12fb8768bcc9c4995256544761e2d8baf820;hb=cd985cf388dcc4c7de8251339206aec5f7e12f1e;hpb=54a6cb0ef32b761ebd7ae35f1e60947edf44d699 diff --git a/chimeracheckcommand.cpp b/chimeracheckcommand.cpp index 66cf12f..4947dc9 100644 --- a/chimeracheckcommand.cpp +++ b/chimeracheckcommand.cpp @@ -245,7 +245,7 @@ int ChimeraCheckCommand::execute(){ if(processors == 1){ ifstream inFASTA; openInputFile(fastafile, inFASTA); - numSeqs=count(istreambuf_iterator(inFASTA),istreambuf_iterator(), '>'); + getNumSeqs(inFASTA, numSeqs); inFASTA.close(); lines.push_back(new linePair(0, numSeqs)); @@ -309,7 +309,7 @@ int ChimeraCheckCommand::execute(){ #else ifstream inFASTA; openInputFile(fastafile, inFASTA); - numSeqs=count(istreambuf_iterator(inFASTA),istreambuf_iterator(), '>'); + getNumSeqs(inFASTA, numSeqs); inFASTA.close(); lines.push_back(new linePair(0, numSeqs));