X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=heatmapsimcommand.cpp;h=3de10e6a8cd9411d6829ac699ffd11991af81007;hb=7a2c74cd89b3c21e9ec2207e529304db68f1391a;hp=d78b3cf1af17a3d10b25b7238e94b8b8ff69f002;hpb=88fbc534a92cb91900e98a3288dfa1f68828b69b;p=mothur.git diff --git a/heatmapsimcommand.cpp b/heatmapsimcommand.cpp index d78b3cf..3de10e6 100644 --- a/heatmapsimcommand.cpp +++ b/heatmapsimcommand.cpp @@ -72,6 +72,28 @@ string HeatMapSimCommand::getHelpString(){ exit(1); } } +//********************************************************************************************************************** + +string HeatMapSimCommand::getOutputFileNameTag(string type, string inputName=""){ + try { + string outputFileName = ""; + map >::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 { @@ -242,7 +264,7 @@ HeatMapSimCommand::HeatMapSimCommand(string option) { } string temp = validParameter.validFile(parameters, "fontsize", false); if (temp == "not found") { temp = "24"; } - convert(temp, fontsize); + m->mothurConvert(temp, fontsize); if (abort == false) { ValidCalculators validCalculator;