X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=getsharedotucommand.cpp;h=cfa7a645dfe7859552d5e22bfe929f03b852ae28;hp=9302d1d21dfc52dbe295754e38aa86de55e0a4cc;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=f6a58db15cdc7b90a601f8bf9c9d3b69d642f85d 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;