]> git.donarmstrong.com Git - mothur.git/blobdiff - validparameter.cpp
started heatmap command
[mothur.git] / validparameter.cpp
index 61fd0445e81f9ae277f3c54f9c69ce313646e66d..6d325f7ccc8c7dd2d51a72c787d84f4902f7ce74 100644 (file)
@@ -214,6 +214,18 @@ bool ValidParameters::isValidParameter(string parameter, string command) {
                                }
                                cout << endl;
                                return false; }
+               }else if (command == "heatmap") {
+                       //is it valid
+                       if ((heatmap.find(parameter)) != (heatmap.end())) {
+                               return true;
+                       }else { 
+                               cout << parameter << " is not a valid parameter for the " + command + " command. Valid parameters are ";
+                               for (it = heatmap.begin(); it != heatmap.end(); it++) {
+                                       cout << it->first << ", ";
+                               }
+                               cout << endl;
+                               return false; }
+
                //not a valid paramter
                }else if (command == "help") { cout << parameter << " is not a valid parameter for the " + command + " command. There are no vaild parameters." << endl;  
                }else if (command == "quit") { cout << parameter << " is not a valid parameter for the " + command + " command. There are no vaild parameters." << endl; 
@@ -339,3 +351,9 @@ void ValidParameters::initialLibshuff() {
        libshuff["form"]                = "form";
 }
 /***********************************************************************/
+void ValidParameters::initialHeatmap() {
+       heatmap["label"]        = "label"; 
+       heatmap["line"]         = "line";
+}
+
+/***********************************************************************/