X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=2822d0b9920a0f5cc5005cf01ce653b38b9ede6d;hb=ee8403d4eb5760187d62b42a9cf4272de8fc0ec4;hp=e73d60b3683acb5b8b3d25ea583be045354adce7;hpb=bdd77df6a7df8a5775b57d0a7ec8b55de45e7b5b;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index e73d60b..2822d0b 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -133,6 +133,9 @@ #include "makebiomcommand.h" #include "getcoremicrobiomecommand.h" #include "listotulabelscommand.h" +#include "getotulabelscommand.h" +#include "removeotulabelscommand.h" +#include "makecontigscommand.h" /*******************************************************/ @@ -287,6 +290,9 @@ CommandFactory::CommandFactory(){ commands["make.biom"] = "make.biom"; commands["get.coremicrobiome"] = "get.coremicrobiome"; commands["list.otulabels"] = "list.otulabels"; + commands["get.otulabels"] = "get.otulabels"; + commands["remove.otulabels"] = "remove.otulabels"; + commands["make.contigs"] = "make.contigs"; commands["quit"] = "MPIEnabled"; } @@ -499,6 +505,9 @@ Command* CommandFactory::getCommand(string commandName, string optionString){ else if(commandName == "make.biom") { command = new MakeBiomCommand(optionString); } else if(commandName == "get.coremicrobiome") { command = new GetCoreMicroBiomeCommand(optionString); } else if(commandName == "list.otulabels") { command = new ListOtuLabelsCommand(optionString); } + else if(commandName == "get.otulabels") { command = new GetOtuLabelsCommand(optionString); } + else if(commandName == "remove.otulabels") { command = new RemoveOtuLabelsCommand(optionString); } + else if(commandName == "make.contigs") { command = new MakeContigsCommand(optionString); } else { command = new NoCommand(optionString); } return command; @@ -652,6 +661,9 @@ Command* CommandFactory::getCommand(string commandName, string optionString, str else if(commandName == "make.biom") { pipecommand = new MakeBiomCommand(optionString); } else if(commandName == "get.coremicrobiome") { pipecommand = new GetCoreMicroBiomeCommand(optionString); } else if(commandName == "list.otulabels") { pipecommand = new ListOtuLabelsCommand(optionString); } + else if(commandName == "get.otulabels") { pipecommand = new GetOtuLabelsCommand(optionString); } + else if(commandName == "remove.otulabels") { pipecommand = new RemoveOtuLabelsCommand(optionString); } + else if(commandName == "make.contigs") { pipecommand = new MakeContigsCommand(optionString); } else { pipecommand = new NoCommand(optionString); } return pipecommand; @@ -791,6 +803,9 @@ Command* CommandFactory::getCommand(string commandName){ else if(commandName == "make.biom") { shellcommand = new MakeBiomCommand(); } else if(commandName == "get.coremicrobiome") { shellcommand = new GetCoreMicroBiomeCommand(); } else if(commandName == "list.otulabels") { shellcommand = new ListOtuLabelsCommand(); } + else if(commandName == "get.otulabels") { shellcommand = new GetOtuLabelsCommand(); } + else if(commandName == "remove.otulabels") { shellcommand = new RemoveOtuLabelsCommand(); } + else if(commandName == "make.contigs") { shellcommand = new MakeContigsCommand(); } else { shellcommand = new NoCommand(); } return shellcommand;