X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=heatmapcommand.cpp;h=7d9b482564287916f599b0f3148ee4d6a80861f2;hb=dec4333b64891e0b923c862446cf2e3befa7e3d3;hp=9051a5d94ffd07d1ba5444f5d777556faf7fab77;hpb=19fcbbdba99658f5eca244803280f9ee7f9f6607;p=mothur.git diff --git a/heatmapcommand.cpp b/heatmapcommand.cpp index 9051a5d..7d9b482 100644 --- a/heatmapcommand.cpp +++ b/heatmapcommand.cpp @@ -222,14 +222,14 @@ HeatMapCommand::HeatMapCommand(string option) { if (groups == "not found") { groups = ""; } else { m->splitAtDash(groups, Groups); - m->Groups = Groups; + m->setGroups(Groups); } string temp = validParameter.validFile(parameters, "numotu", false); if (temp == "not found") { temp = "0"; } - convert(temp, numOTU); + m->mothurConvert(temp, numOTU); temp = validParameter.validFile(parameters, "fontsize", false); if (temp == "not found") { temp = "24"; } - convert(temp, fontSize); + m->mothurConvert(temp, fontSize); sorted = validParameter.validFile(parameters, "sorted", false); if (sorted == "not found") { @@ -287,7 +287,7 @@ int HeatMapCommand::execute(){ if (m->control_pressed) { for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; } for (int i = 0; i < outputNames.size(); i++) { if (outputNames[i] != "control") { m->mothurRemove(outputNames[i]); } } outputTypes.clear(); - m->Groups.clear(); + m->clearGroups(); delete input; delete heatmap; return 0; } @@ -330,7 +330,7 @@ int HeatMapCommand::execute(){ if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { if (outputNames[i] != "control") { m->mothurRemove(outputNames[i]); } } outputTypes.clear(); - m->Groups.clear(); + m->clearGroups(); delete input; delete heatmap; return 0; } @@ -359,7 +359,7 @@ int HeatMapCommand::execute(){ } //reset groups parameter - m->Groups.clear(); + m->clearGroups(); }else if ((format == "list") || (format == "rabund") || (format == "sabund")) { @@ -440,7 +440,7 @@ int HeatMapCommand::execute(){ if (m->control_pressed) { for (int i = 0; i < lookupFloat.size(); i++) { delete lookupFloat[i]; } for (int i = 0; i < outputNames.size(); i++) { if (outputNames[i] != "control") { m->mothurRemove(outputNames[i]); } } outputTypes.clear(); - m->Groups.clear(); + m->clearGroups(); delete input; delete heatmap; return 0; } @@ -482,7 +482,7 @@ int HeatMapCommand::execute(){ if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { if (outputNames[i] != "control") { m->mothurRemove(outputNames[i]); } } outputTypes.clear(); - m->Groups.clear(); + m->clearGroups(); delete input; delete heatmap; return 0; } @@ -511,7 +511,7 @@ int HeatMapCommand::execute(){ } //reset groups parameter - m->Groups.clear(); + m->clearGroups(); }