X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=25d6cfe14e183ce072cb656322676babfdaa094f;hb=8173238f9f94af9baab8471de58bed7c8830948d;hp=8d038e0c08e6010d21188808b3ff3ad40087a7f7;hpb=794b3f789d6160c99b75edb9cf9af5cf3df4b9da;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index 8d038e0..25d6cfe 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -101,6 +101,7 @@ #include "getgroupscommand.h" #include "getotuscommand.h" #include "removeotuscommand.h" +#include "indicatorcommand.h" /*******************************************************/ @@ -206,6 +207,7 @@ CommandFactory::CommandFactory(){ commands["get.groups"] = "get.groups"; commands["get.otus"] = "get.otus"; commands["remove.otus"] = "remove.otus"; + commands["indicator"] = "indicator"; commands["pairwise.seqs"] = "MPIEnabled"; commands["pipeline.pds"] = "MPIEnabled"; commands["classify.seqs"] = "MPIEnabled"; @@ -358,6 +360,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString){ else if(commandName == "pairwise.seqs") { command = new PairwiseSeqsCommand(optionString); } else if(commandName == "cluster.classic") { command = new ClusterDoturCommand(optionString); } else if(commandName == "sub.sample") { command = new SubSampleCommand(optionString); } + else if(commandName == "indicator") { command = new IndicatorCommand(optionString); } else { command = new NoCommand(optionString); } return command; @@ -477,6 +480,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString, str else if(commandName == "pairwise.seqs") { pipecommand = new PairwiseSeqsCommand(optionString); } else if(commandName == "cluster.classic") { pipecommand = new ClusterDoturCommand(optionString); } else if(commandName == "sub.sample") { pipecommand = new SubSampleCommand(optionString); } + else if(commandName == "indicator") { pipecommand = new IndicatorCommand(optionString); } else { pipecommand = new NoCommand(optionString); } return pipecommand; @@ -584,6 +588,7 @@ Command* CommandFactory::getCommand(string commandName){ else if(commandName == "pairwise.seqs") { shellcommand = new PairwiseSeqsCommand(); } else if(commandName == "cluster.classic") { shellcommand = new ClusterDoturCommand(); } else if(commandName == "sub.sample") { shellcommand = new SubSampleCommand(); } + else if(commandName == "indicator") { shellcommand = new IndicatorCommand(); } else { shellcommand = new NoCommand(); } return shellcommand;