X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=countseqscommand.cpp;fp=countseqscommand.cpp;h=e83c6035731aa5509655dcd25a7a45995c1a0004;hp=9cdd033ac29609d6f763f52597a4809fea204326;hb=d6c0a11d1cecfac18b323285e7ffadb7f58e848f;hpb=731d19a6eaf81768ed35e4be25fbac5686a2a7a0 diff --git a/countseqscommand.cpp b/countseqscommand.cpp index 9cdd033..e83c603 100644 --- a/countseqscommand.cpp +++ b/countseqscommand.cpp @@ -174,7 +174,8 @@ int CountSeqsCommand::execute(){ //open input file ifstream in; m->openInputFile(namefile, in); - + + int total = 0; while (!in.eof()) { if (m->control_pressed) { break; } @@ -217,7 +218,7 @@ int CountSeqsCommand::execute(){ out << firstCol << '\t' << names.size() << endl; } - + total += names.size(); } in.close(); @@ -225,6 +226,8 @@ int CountSeqsCommand::execute(){ if (m->control_pressed) { m->mothurRemove(outputFileName); return 0; } + m->mothurOutEndLine(); + m->mothurOut("Total number of sequences: " + toString(total)); m->mothurOutEndLine(); m->mothurOutEndLine(); m->mothurOut("Output File Name: "); m->mothurOutEndLine(); m->mothurOut(outputFileName); m->mothurOutEndLine();