]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
added pcr.seqs command. fixed bug in rarefacftion.single that caused parsing error...
[mothur.git] / commandfactory.cpp
index bdcfbbab528a785abce1330a3bb6b19d8212fdd6..579abe82cd4019ab265dcce4220d58aea6924e67 100644 (file)
 #include "sortseqscommand.h"
 #include "classifytreecommand.h"
 #include "cooccurrencecommand.h"
+#include "pcrseqscommand.h"
 
 /*******************************************************/
 
@@ -281,6 +282,7 @@ CommandFactory::CommandFactory(){
     commands["sort.seqs"]           = "sort.seqs";
     commands["classify.tree"]       = "classify.tree";
     commands["cooccurrence"]        = "cooccurrence";
+    commands["pcr.seqs"]            = "pcr.seqs";
        commands["quit"]                                = "MPIEnabled"; 
 
 }
@@ -445,6 +447,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString){
         else if(commandName == "sort.seqs")             {      command = new SortSeqsCommand(optionString);                }
         else if(commandName == "classify.tree")         {      command = new ClassifyTreeCommand(optionString);            }
         else if(commandName == "cooccurrence")          {      command = new CooccurrenceCommand(optionString);            }
+        else if(commandName == "pcr.seqs")              {      command = new PcrSeqsCommand(optionString);                 }
                else                                                                                    {       command = new NoCommand(optionString);                                          }
 
                return command;
@@ -593,6 +596,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString, str
         else if(commandName == "sort.seqs")             {      pipecommand = new SortSeqsCommand(optionString);                }
         else if(commandName == "classify.tree")         {      pipecommand = new ClassifyTreeCommand(optionString);            }
         else if(commandName == "cooccurrence")          {      pipecommand = new CooccurrenceCommand(optionString);            }
+        else if(commandName == "pcr.seqs")              {      pipecommand = new PcrSeqsCommand(optionString);                 }
                else                                                                                    {       pipecommand = new NoCommand(optionString);                                              }
 
                return pipecommand;
@@ -729,6 +733,7 @@ Command* CommandFactory::getCommand(string commandName){
         else if(commandName == "sort.seqs")             {      shellcommand = new SortSeqsCommand();               }
         else if(commandName == "classify.tree")         {      shellcommand = new ClassifyTreeCommand();           }
         else if(commandName == "cooccurrence")          {      shellcommand = new CooccurrenceCommand();           }
+        else if(commandName == "pcr.seqs")              {      shellcommand = new PcrSeqsCommand();                }
                else                                                                                    {       shellcommand = new NoCommand();                                         }
 
                return shellcommand;