]> git.donarmstrong.com Git - mothur.git/blobdiff - errorchecking.cpp
finishing the container classes, combining read.otu and read.list commands. some...
[mothur.git] / errorchecking.cpp
index 8a56c15c9d977de80c230922405c97589251324a..41c1db9e678c5890472d9259017a16f6d6b84dc3 100644 (file)
@@ -210,10 +210,13 @@ bool ErrorCheck::checkInput(string input) {
                        validateReadFiles();
                        validateReadDist();
                }else if (commandName == "read.otu") { 
-                       validateReadFiles();
-                       validateReadPhil();     
-               }else if (commandName == "read.list") { 
-                       validateParseFiles(); //checks the listfile and groupfile parameters
+                       //you want to do shared commands
+                       if ((listfile != "") && (groupfile != ""))      {
+                               validateParseFiles(); //checks the listfile and groupfile parameters
+                       }else { //you want to do single commands
+                               validateReadFiles();
+                               validateReadPhil();
+                       }
                }else if (commandName == "deconvolute") {
                        validateReadFiles();
                }