]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
added phylotype command which reads a taxonomy file and creates a .list, .rabund...
[mothur.git] / commandfactory.cpp
index 030079ed21e3a6d4f35263f45d46a67878715e5b..ed1801a8bd58bb46fc9afc5e714072547ae4305f 100644 (file)
@@ -59,6 +59,7 @@
 #include "getlistcountcommand.h"
 #include "hclustercommand.h"
 #include "classifyseqscommand.h"
+#include "phylotypecommand.h"
 
 /***********************************************************/
 
@@ -117,6 +118,7 @@ CommandFactory::CommandFactory(){
        commands["quit"]                                = "quit"; 
        commands["hcluster"]                    = "hcluster"; 
        commands["classify.seqs"]               = "classify.seqs"; 
+       commands["phylotype"]                   = "phylotype";
 
 }
 /***********************************************************/
@@ -183,6 +185,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString){
                else if(commandName == "get.listcount")                 {       command = new GetListCountCommand(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                                                                                    {       command = new NoCommand(optionString);                                  }
 
                return command;