X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=collectsharedcommand.cpp;h=f3a320b89e0695483a5124b6336d68cf89179293;hb=e0ce7cbc93d7d2fbb753ca694182db092a0ea0e7;hp=3b43a40f4cd33c4f006776ba764c04fa3866d96b;hpb=19fcbbdba99658f5eca244803280f9ee7f9f6607;p=mothur.git diff --git a/collectsharedcommand.cpp b/collectsharedcommand.cpp index 3b43a40..f3a320b 100644 --- a/collectsharedcommand.cpp +++ b/collectsharedcommand.cpp @@ -270,11 +270,11 @@ CollectSharedCommand::CollectSharedCommand(string option) { else { m->splitAtDash(groups, Groups); } - m->Groups = Groups; + m->setGroups(Groups); string temp; temp = validParameter.validFile(parameters, "freq", false); if (temp == "not found") { temp = "100"; } - convert(temp, freq); + m->mothurConvert(temp, freq); temp = validParameter.validFile(parameters, "all", false); if (temp == "not found") { temp = "false"; } all = m->isTrue(temp); @@ -440,7 +440,11 @@ int CollectSharedCommand::execute(){ //set users groups SharedUtil* util = new SharedUtil(); - util->setGroups(m->Groups, m->namesOfGroups, "collect"); + Groups = m->getGroups(); + vector allGroups = m->getAllGroups(); + util->setGroups(Groups, allGroups, "collect"); + m->setGroups(Groups); + m->setAllGroups(allGroups); delete util; while((order != NULL) && ((allLines == 1) || (userLabels.size() != 0))) { @@ -448,7 +452,7 @@ int CollectSharedCommand::execute(){ for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } outputTypes.clear(); for(int i=0;iGroups.clear(); + m->clearGroups(); return 0; } @@ -495,7 +499,7 @@ int CollectSharedCommand::execute(){ if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) { m->mothurRemove(outputNames[i]); } outputTypes.clear(); for(int i=0;iGroups.clear(); + m->clearGroups(); delete input; return 0; } @@ -528,7 +532,7 @@ int CollectSharedCommand::execute(){ for(int i=0;iGroups.clear(); + m->clearGroups(); return 0; } @@ -538,7 +542,7 @@ int CollectSharedCommand::execute(){ for(int i=0;iGroups.clear(); + m->clearGroups(); delete input; m->mothurOutEndLine();