]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmapsimcommand.cpp
added load.logfile command. changed summary.single output for subsample=t.
[mothur.git] / heatmapsimcommand.cpp
index de35075e98ee938e67f1880cada0ebfb1e0ba26a..3de10e6a8cd9411d6829ac699ffd11991af81007 100644 (file)
@@ -72,6 +72,28 @@ string HeatMapSimCommand::getHelpString(){
                exit(1);
        }
 }
+//**********************************************************************************************************************
+
+string HeatMapSimCommand::getOutputFileNameTag(string type, string inputName=""){      
+       try {
+        string outputFileName = "";
+               map<string, vector<string> >::iterator it;
+        
+        //is this a type this command creates
+        it = outputTypes.find(type);
+        if (it == outputTypes.end()) {  m->mothurOut("[ERROR]: this command doesn't create a " + type + " output file.\n"); }
+        else {
+            if (type == "svg")            {   outputFileName =  "svg";   }
+            else { m->mothurOut("[ERROR]: No definition for type " + type + " output file tag.\n"); m->control_pressed = true;  }
+        }
+        return outputFileName;
+       }
+       catch(exception& e) {
+               m->errorOut(e, "HeatMapSimCommand", "getOutputFileNameTag");
+               exit(1);
+       }
+}
+
 //**********************************************************************************************************************
 HeatMapSimCommand::HeatMapSimCommand(){        
        try {