]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurout.cpp
pat's fixes to pca command
[mothur.git] / mothurout.cpp
index 0c25f2a62ed8961cfc8c29080ae37cd2f2d6b77a..7309c174c83027437e67026869f53161101e11bc 100644 (file)
@@ -1730,7 +1730,23 @@ bool MothurOut::checkReleaseVersion(ifstream& file, string version) {
                exit(1);
        }
 }
-
+/**************************************************************************************************/
+bool MothurOut::isContainingOnlyDigits(string input) {
+       try{
+               
+               //are you a digit in ascii code
+               for (int i = 0;i < input.length(); i++){
+                       if( input[i]>47 && input[i]<58){}
+                       else { return false; }
+               }
+               
+               return true;
+       }
+       catch(exception& e) {
+               errorOut(e, "MothurOut", "isContainingOnlyDigits");             
+               exit(1);
+       }
+}
 /**************************************************************************************************/