]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
fixed order of unifrac commands so that it matches the summary commands
[mothur.git] / commandfactory.cpp
index 8562a8d65c0f9954f68a402dac873346e6dfc444..4651a07e4ab462aab2c409b53d5ae387543638bf 100644 (file)
@@ -86,6 +86,9 @@
 #include "sffinfocommand.h"
 #include "seqerrorcommand.h"
 #include "normalizesharedcommand.h"
+#include "metastatscommand.h"
+#include "splitgroupscommand.h"
+#include "clusterfragmentscommand.h"
 
 /*******************************************************/
 
@@ -176,6 +179,9 @@ CommandFactory::CommandFactory(){
        commands["get.relabund"]                = "get.relabund";
        commands["sffinfo"]                             = "sffinfo";
        commands["normalize.shared"]    = "normalize.shared";
+       commands["metastats"]                   = "metastats";
+       commands["split.groups"]                = "split.groups";
+       commands["cluster.fragments"]   = "cluster.fragments";
        commands["classify.seqs"]               = "MPIEnabled"; 
        commands["dist.seqs"]                   = "MPIEnabled";
        commands["filter.seqs"]                 = "MPIEnabled";
@@ -309,6 +315,9 @@ 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 if(commandName == "split.groups")                  {       command = new SplitGroupCommand(optionString);                          }
+               else if(commandName == "cluster.fragments")             {       command = new ClusterFragmentsCommand(optionString);            }
                else                                                                                    {       command = new NoCommand(optionString);                                          }
 
                return command;