X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getsharedotucommand.cpp;h=cfa7a645dfe7859552d5e22bfe929f03b852ae28;hb=a89c6295ae9a35fcaaab7fa50dcb68360dd543b0;hp=9302d1d21dfc52dbe295754e38aa86de55e0a4cc;hpb=89cfcfcc9e648d2f956f2ff419e64ba7907106d2;p=mothur.git diff --git a/getsharedotucommand.cpp b/getsharedotucommand.cpp index 9302d1d..cfa7a64 100644 --- a/getsharedotucommand.cpp +++ b/getsharedotucommand.cpp @@ -233,6 +233,7 @@ GetSharedOTUCommand::GetSharedOTUCommand(string option) { else { userGroups = "unique." + groups; m->splitAtDash(groups, Groups); + if (Groups.size() > 4) { userGroups = "unique.selected_groups"; } //if too many groups then the filename becomes too big. } groups = validParameter.validFile(parameters, "sharedgroups", false); @@ -240,6 +241,7 @@ GetSharedOTUCommand::GetSharedOTUCommand(string option) { else { userGroups = groups; m->splitAtDash(groups, Groups); + if (Groups.size() > 4) { userGroups = "selected_groups"; } //if too many groups then the filename becomes too big. unique = false; } @@ -274,6 +276,7 @@ int GetSharedOTUCommand::execute(){ userGroups = "unique."; for(int i = 0; i < Groups.size(); i++) { userGroups += Groups[i] + "-"; } userGroups = userGroups.substr(0, userGroups.length()-1); + if (Groups.size() > 4) { userGroups = "unique.selected_groups"; } //if too many groups then the filename becomes too big. }else{ //sanity check for group names SharedUtil util; @@ -566,6 +569,7 @@ int GetSharedOTUCommand::runShared() { userGroups = "unique."; for(int i = 0; i < Groups.size(); i++) { userGroups += Groups[i] + "-"; } userGroups = userGroups.substr(0, userGroups.length()-1); + if (Groups.size() > 4) { userGroups = "unique.selected_groups"; } //if too many groups then the filename becomes too big. }else { //sanity check for group names SharedUtil util;