]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
fixed some bugs and added mgcluster command
[mothur.git] / commandfactory.cpp
index c33de86f5c5a97fe9599a8871b190194170e1a6c..b361b6600655ff57a987cf7bce9b2b543d96c854 100644 (file)
@@ -60,6 +60,7 @@
 #include "hclustercommand.h"
 #include "classifyseqscommand.h"
 #include "phylotypecommand.h"
+#include "mgclustercommand.h"
 
 /*******************************************************/
 
@@ -129,6 +130,7 @@ CommandFactory::CommandFactory(){
        commands["hcluster"]                    = "hcluster"; 
        commands["classify.seqs"]               = "classify.seqs"; 
        commands["phylotype"]                   = "phylotype";
+       commands["mgcluster"]                   = "mgcluster";
 
 }
 /***********************************************************/
@@ -196,6 +198,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString){
                else if(commandName == "hcluster")                              {       command = new HClusterCommand(optionString);                    }
                else if(commandName == "classify.seqs")                 {       command = new ClassifySeqsCommand(optionString);                }
                else if(commandName == "phylotype")                             {       command = new PhylotypeCommand(optionString);                   }
+               else if(commandName == "mgcluster")                             {       command = new MGClusterCommand(optionString);                   }
                else                                                                                    {       command = new NoCommand(optionString);                                  }
 
                return command;