]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
fixed clearcut version bug, added group count output to get.groups and remove.groups
[mothur.git] / commandfactory.cpp
index 525d81b2aaf360853aca14c8f3ec796c79fd0249..e18e6ac1956e3f21f990d6c5b1c45be42dafebf9 100644 (file)
 #include "amovacommand.h"
 #include "homovacommand.h"
 #include "mantelcommand.h"
+#include "makefastqcommand.h"
+#include "anosimcommand.h"
+#include "getcurrentcommand.h"
+#include "setcurrentcommand.h"
 
 /*******************************************************/
 
@@ -226,7 +230,11 @@ CommandFactory::CommandFactory(){
        commands["amova"]                               = "amova";
        commands["homova"]                              = "homova";
        commands["mantel"]                              = "mantel";
+       commands["anosim"]                              = "anosim";
+       commands["make.fastq"]                  = "make.fastq";
        commands["merge.groups"]                = "merge.groups";
+       commands["get.current"]                 = "get.current";
+       commands["set.current"]                 = "set.current";
        commands["pairwise.seqs"]               = "MPIEnabled";
        commands["pipeline.pds"]                = "MPIEnabled";
        commands["classify.seqs"]               = "MPIEnabled"; 
@@ -391,6 +399,10 @@ Command* CommandFactory::getCommand(string commandName, string optionString){
                else if(commandName == "amova")                                 {       command = new AmovaCommand(optionString);                                       }
                else if(commandName == "homova")                                {       command = new HomovaCommand(optionString);                                      }
                else if(commandName == "mantel")                                {       command = new MantelCommand(optionString);                                      }
+               else if(commandName == "make.fastq")                    {       command = new MakeFastQCommand(optionString);                           }
+               else if(commandName == "get.current")                   {       command = new GetCurrentCommand(optionString);                          }
+               else if(commandName == "set.current")                   {       command = new SetCurrentCommand(optionString);                          }
+               else if(commandName == "anosim")                                {       command = new AnosimCommand(optionString);                                      }
                else                                                                                    {       command = new NoCommand(optionString);                                          }
 
                return command;
@@ -521,6 +533,10 @@ Command* CommandFactory::getCommand(string commandName, string optionString, str
                else if(commandName == "amova")                                 {       pipecommand = new AmovaCommand(optionString);                                   }
                else if(commandName == "homova")                                {       pipecommand = new HomovaCommand(optionString);                                  }
                else if(commandName == "mantel")                                {       pipecommand = new MantelCommand(optionString);                                  }
+               else if(commandName == "anosim")                                {       pipecommand = new AnosimCommand(optionString);                                  }
+               else if(commandName == "make.fastq")                    {       pipecommand = new MakeFastQCommand(optionString);                               }
+               else if(commandName == "get.current")                   {       pipecommand = new GetCurrentCommand(optionString);                              }
+               else if(commandName == "set.current")                   {       pipecommand = new SetCurrentCommand(optionString);                              }
                else                                                                                    {       pipecommand = new NoCommand(optionString);                                              }
 
                return pipecommand;
@@ -639,6 +655,10 @@ Command* CommandFactory::getCommand(string commandName){
                else if(commandName == "amova")                                 {       shellcommand = new AmovaCommand();                                      }
                else if(commandName == "homova")                                {       shellcommand = new HomovaCommand();                                     }
                else if(commandName == "mantel")                                {       shellcommand = new MantelCommand();                                     }
+               else if(commandName == "anosim")                                {       shellcommand = new AnosimCommand();                                     }
+               else if(commandName == "make.fastq")                    {       shellcommand = new MakeFastQCommand();                          }
+               else if(commandName == "get.current")                   {       shellcommand = new GetCurrentCommand();                         }
+               else if(commandName == "set.current")                   {       shellcommand = new SetCurrentCommand();                         }
                else                                                                                    {       shellcommand = new NoCommand();                                         }
 
                return shellcommand;