]> git.donarmstrong.com Git - mothur.git/blobdiff - errorchecking.cpp
fixed xp user bug with rarefact commands and cluster error checking
[mothur.git] / errorchecking.cpp
index aa223a20379d1fd590908fbb5aa92c7a38cbf03b..728d4d27303a3c3b9d9ad602693ba4b309a36202 100644 (file)
@@ -177,7 +177,7 @@ bool ErrorCheck::checkInput(string input) {
                        validateReadFiles();
                }
                
-               //are you trying to cluster before you have read something                      
+               //are you trying to cluster before you have read something      
                if (((commandName == "cluster") && (globaldata->gSparseMatrix == NULL)) ||
                        ((commandName == "cluster") && (globaldata->gListVector == NULL))) {
                                cout << "Before you use the cluster command, you first need to read in a distance matrix." << endl; 
@@ -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