X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=heatmapsimcommand.cpp;h=1b6fc5bc427f48e68171f47654b18363afc21e9e;hb=55386dddad84cc1140d736cabaf4dd0ae16f2e01;hp=e791f0c65c88e55b8eaf7a022c3d6be454633f69;hpb=19fcbbdba99658f5eca244803280f9ee7f9f6607;p=mothur.git diff --git a/heatmapsimcommand.cpp b/heatmapsimcommand.cpp index e791f0c..1b6fc5b 100644 --- a/heatmapsimcommand.cpp +++ b/heatmapsimcommand.cpp @@ -234,7 +234,7 @@ HeatMapSimCommand::HeatMapSimCommand(string option) { if (groups == "not found") { groups = ""; } else { m->splitAtDash(groups, Groups); - m->Groups = Groups; + m->setGroups(Groups); } @@ -325,12 +325,12 @@ int HeatMapSimCommand::runCommandShared() { set processedLabels; set userLabels = labels; - if (m->control_pressed) { delete input; for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; } m->Groups.clear(); return 0; } + if (m->control_pressed) { delete input; for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; } m->clearGroups(); return 0; } //as long as you are not at the end of the file or done wih the lines you want while((lookup[0] != NULL) && ((allLines == 1) || (userLabels.size() != 0))) { - if (m->control_pressed) { delete input; for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; } m->Groups.clear(); return 0; } + if (m->control_pressed) { delete input; for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; } m->clearGroups(); return 0; } if(allLines == 1 || labels.count(lookup[0]->getLabel()) == 1){ @@ -370,7 +370,7 @@ int HeatMapSimCommand::runCommandShared() { } - if (m->control_pressed) { delete input; m->Groups.clear(); return 0; } + if (m->control_pressed) { delete input; m->clearGroups(); return 0; } //output error messages about any remaining user labels set::iterator it; @@ -385,7 +385,7 @@ int HeatMapSimCommand::runCommandShared() { } } - if (m->control_pressed) { delete input; m->Groups.clear(); return 0; } + if (m->control_pressed) { delete input; m->clearGroups(); return 0; } //run last label if you need to if (needToRun == true) { @@ -399,10 +399,10 @@ int HeatMapSimCommand::runCommandShared() { for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; } } - if (m->control_pressed) { delete input; m->Groups.clear(); return 0; } + if (m->control_pressed) { delete input; m->clearGroups(); return 0; } //reset groups parameter - m->Groups.clear(); + m->clearGroups(); delete input;