X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=commandfactory.cpp;h=a0796a34fc243916081632e54a54233bef679a5f;hb=ef4c1b4dfeecc17a0ad5c1c114c748a0443a88ac;hp=6c6bc17bb3dfd47f31b68facd01d6e0724cf3d8d;hpb=4a760c2d164aa955dee7d3d38da323822763d906;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index 6c6bc17..a0796a3 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -142,6 +142,9 @@ #include "removedistscommand.h" #include "mergetaxsummarycommand.h" #include "getmetacommunitycommand.h" +#include "sparcccommand.h" +#include "makelookupcommand.h" +#include "renameseqscommand.h" /*******************************************************/ @@ -307,6 +310,9 @@ CommandFactory::CommandFactory(){ commands["remove.dists"] = "remove.dists"; commands["merge.taxsummary"] = "merge.taxsummary"; commands["get.metacommunity"] = "get.metacommunity"; + commands["sparcc"] = "sparcc"; + commands["make.lookup"] = "make.lookup"; + commands["rename.seqs"] = "rename.seqs"; } @@ -528,6 +534,9 @@ Command* CommandFactory::getCommand(string commandName, string optionString){ else if(commandName == "remove.dists") { command = new RemoveDistsCommand(optionString); } else if(commandName == "merge.taxsummary") { command = new MergeTaxSummaryCommand(optionString); } else if(commandName == "get.metacommunity") { command = new GetMetaCommunityCommand(optionString); } + else if(commandName == "sparcc") { command = new SparccCommand(optionString); } + else if(commandName == "make.lookup") { command = new MakeLookupCommand(optionString); } + else if(commandName == "rename.seqs") { command = new RenameSeqsCommand(optionString); } else { command = new NoCommand(optionString); } return command; @@ -690,6 +699,9 @@ Command* CommandFactory::getCommand(string commandName, string optionString, str else if(commandName == "remove.dists") { pipecommand = new RemoveDistsCommand(optionString); } else if(commandName == "merge.taxsummary") { pipecommand = new MergeTaxSummaryCommand(optionString); } else if(commandName == "get.metacommunity") { pipecommand = new GetMetaCommunityCommand(optionString); } + else if(commandName == "sparcc") { pipecommand = new SparccCommand(optionString); } + else if(commandName == "make.lookup") { pipecommand = new MakeLookupCommand(optionString); } + else if(commandName == "rename.seqs") { pipecommand = new RenameSeqsCommand(optionString); } else { pipecommand = new NoCommand(optionString); } return pipecommand; @@ -838,6 +850,9 @@ Command* CommandFactory::getCommand(string commandName){ else if(commandName == "remove.dists") { shellcommand = new RemoveDistsCommand(); } else if(commandName == "merge.taxsummary") { shellcommand = new MergeTaxSummaryCommand(); } else if(commandName == "get.metacommunity") { shellcommand = new GetMetaCommunityCommand(); } + else if(commandName == "sparcc") { shellcommand = new SparccCommand(); } + else if(commandName == "make.lookup") { shellcommand = new MakeLookupCommand(); } + else if(commandName == "rename.seqs") { shellcommand = new RenameSeqsCommand(); } else { shellcommand = new NoCommand(); } return shellcommand;