]> git.donarmstrong.com Git - mothur.git/blobdiff - errorchecking.cpp
started heatmap command
[mothur.git] / errorchecking.cpp
index cb2dce42fbf4f40e4c5e2a5107a6e1d33c1b89c7..b9b3100b20f6b840f5f296964a7dc6f8aefd5d3d 100644 (file)
@@ -218,6 +218,12 @@ bool ErrorCheck::checkInput(string input) {
                                else if (globaldata->getGroupFile() == "") { cout << "You must read a list and a group, or a shared before you can use the collect.shared, rarefaction.shared or summary.shared commands." << endl; return false; }
                        }
                }
+               
+               if (commandName == "heatmap"){ 
+                       if ((globaldata->getListFile() == "") && (globaldata->getSharedFile() == "")) {
+                                cout << "You must read a list, or a list and a group, or a shared before you can use the heatmap command." << endl; return false; 
+                       }
+               }
 
                return errorFree;
 }