]> git.donarmstrong.com Git - mothur.git/blobdiff - mothur.h
pat's edits of screen.seqs and summary.seqs
[mothur.git] / mothur.h
index 670a32c8326a76da2cf894cac0d7ad10a9a10825..f07f343b05d91148c64ebccc79b7d165bf51c8f7 100644 (file)
--- a/mothur.h
+++ b/mothur.h
@@ -316,6 +316,16 @@ inline int openOutputFileAppend(string fileName, ofstream& fileHandle){
 }
 
 
+/***********************************************************************/
+
+inline int getNumSeqs(ifstream& file){
+       
+       int numSeqs = count(istreambuf_iterator<char>(file),istreambuf_iterator<char>(), '>');
+       file.seekg(0);
+       return numSeqs;
+
+}
+
 /***********************************************************************/
 
 //This function parses the estimator options and puts them in a vector