]> git.donarmstrong.com Git - mothur.git/blobdiff - errorchecking.cpp
added concensus command and updated calcs
[mothur.git] / errorchecking.cpp
index aa223a20379d1fd590908fbb5aa92c7a38cbf03b..16933549c7539e73460ef7f8a84dd068f60d98be 100644 (file)
@@ -196,9 +196,9 @@ bool ErrorCheck::checkInput(string input) {
                        }
                }
                
-               if ((commandName == "unifrac.weighted") || (commandName == "unifrac.unweighted")) {
+               if ((commandName == "unifrac.weighted") || (commandName == "unifrac.unweighted") || (commandName == "concensus")) {
                        if (globaldata->gTree.size() == 0) {//no trees were read
-                               cout << "You must execute the read.tree command, before you may execute the unifrac.weighted or unifrac.unweighted command." << endl; return false;  }
+                               cout << "You must execute the read.tree command, before you may execute the unifrac.weighted, unifrac.unweighted or concensus command." << endl; return false;  }
                }
                
                //check for valid method