+//**********************************************************************************************************************
+vector<string> GetgroupCommand::setParameters(){
+ try {
+ CommandParameter pshared("shared", "InputTypes", "", "current", "none", "none", "none",false,true); parameters.push_back(pshared);
+ CommandParameter pinputdir("inputdir", "String", "", "", "", "", "",false,false); parameters.push_back(pinputdir);
+ CommandParameter poutputdir("outputdir", "String", "", "", "", "", "",false,false); parameters.push_back(poutputdir);
+
+ vector<string> myArray;
+ for (int i = 0; i < parameters.size(); i++) { myArray.push_back(parameters[i].name); }
+ return myArray;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "GetgroupCommand", "setParameters");
+ exit(1);
+ }
+}
+//**********************************************************************************************************************
+string GetgroupCommand::getHelpString(){
+ try {
+ string helpString = "";
+ helpString += "The get.group command parameter is shared and it's required if you have no valid current file.\n";
+ //m->mothurOut("The get.group command outputs a .bootGroups file to you can use in addition to the tree file generated by the bootstrap.shared command to run the consensus command.\n");
+ helpString += "You may not use any parameters with the get.group command.\n";
+ helpString += "The get.group command should be in the following format: \n";
+ helpString += "get.group()\n";
+ helpString += "Example get.group().\n";
+ return helpString;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "GetgroupCommand", "getHelpString");
+ exit(1);
+ }
+}
+//**********************************************************************************************************************
+GetgroupCommand::GetgroupCommand(){
+ try {
+ abort = true; calledHelp = true;
+ setParameters();
+ vector<string> tempOutNames;
+ outputTypes["bootgroup"] = tempOutNames;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "GetgroupCommand", "GetgroupCommand");
+ exit(1);
+ }
+}