X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=e73d60b3683acb5b8b3d25ea583be045354adce7;hb=4c302368ef34f0d897afefc7853edf86fb45b9f3;hp=527f7bfe4fddf6ecf1ddce45ab7c93a161f52ad1;hpb=d2390ede25cc211f95f99e377d5654bad7e6950e;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index 527f7bf..e73d60b 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -131,6 +131,8 @@ #include "pcrseqscommand.h" #include "createdatabasecommand.h" #include "makebiomcommand.h" +#include "getcoremicrobiomecommand.h" +#include "listotulabelscommand.h" /*******************************************************/ @@ -283,6 +285,8 @@ CommandFactory::CommandFactory(){ commands["pcr.seqs"] = "pcr.seqs"; commands["create.database"] = "create.database"; commands["make.biom"] = "make.biom"; + commands["get.coremicrobiome"] = "get.coremicrobiome"; + commands["list.otulabels"] = "list.otulabels"; commands["quit"] = "MPIEnabled"; } @@ -493,6 +497,8 @@ Command* CommandFactory::getCommand(string commandName, string optionString){ else if(commandName == "pcr.seqs") { command = new PcrSeqsCommand(optionString); } else if(commandName == "create.database") { command = new CreateDatabaseCommand(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 { command = new NoCommand(optionString); } return command; @@ -644,6 +650,8 @@ Command* CommandFactory::getCommand(string commandName, string optionString, str else if(commandName == "pcr.seqs") { pipecommand = new PcrSeqsCommand(optionString); } else if(commandName == "create.database") { pipecommand = new CreateDatabaseCommand(optionString); } 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 { pipecommand = new NoCommand(optionString); } return pipecommand; @@ -781,6 +789,8 @@ Command* CommandFactory::getCommand(string commandName){ else if(commandName == "pcr.seqs") { shellcommand = new PcrSeqsCommand(); } else if(commandName == "create.database") { shellcommand = new CreateDatabaseCommand(); } 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 { shellcommand = new NoCommand(); } return shellcommand;