]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
working on megastats
[mothur.git] / commandfactory.cpp
index 8562a8d65c0f9954f68a402dac873346e6dfc444..bbdd61692b7e328937d526e887ef5f0590528f2e 100644 (file)
@@ -86,6 +86,7 @@
 #include "sffinfocommand.h"
 #include "seqerrorcommand.h"
 #include "normalizesharedcommand.h"
+#include "metastatscommand.h"
 
 /*******************************************************/
 
@@ -176,6 +177,7 @@ CommandFactory::CommandFactory(){
        commands["get.relabund"]                = "get.relabund";
        commands["sffinfo"]                             = "sffinfo";
        commands["normalize.shared"]    = "normalize.shared";
+       commands["metastats"]                   = "metastats";
        commands["classify.seqs"]               = "MPIEnabled"; 
        commands["dist.seqs"]                   = "MPIEnabled";
        commands["filter.seqs"]                 = "MPIEnabled";
@@ -309,6 +311,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString){
                else if(commandName == "seq.error")                             {       command = new SeqErrorCommand(optionString);                            }
                else if(commandName == "sffinfo")                               {       command = new SffInfoCommand(optionString);                                     }
                else if(commandName == "normalize.shared")              {       command = new NormalizeSharedCommand(optionString);                     }
+               else if(commandName == "metastats")                             {       command = new MetaStatsCommand(optionString);                           }
                else                                                                                    {       command = new NoCommand(optionString);                                          }
 
                return command;