]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
added remove.seqs command
[mothur.git] / commandfactory.cpp
index db11f8c0dc890dff846787dee0fc48ea8930384a..c91dbf9abd520fc908698f68756d726d25002e95 100644 (file)
@@ -12,7 +12,6 @@
 #include "readtreecommand.h"
 #include "readotucommand.h"
 #include "clustercommand.h"
-#include "parselistcommand.h"
 #include "collectcommand.h"
 #include "collectsharedcommand.h"
 #include "getgroupcommand.h"
@@ -39,7 +38,7 @@
 #include "getoturepcommand.h"
 #include "treegroupscommand.h"
 #include "bootstrapsharedcommand.h"
-#include "concensuscommand.h"
+//#include "consensuscommand.h"
 #include "distancecommand.h"
 #include "aligncommand.h"
 #include "matrixoutputcommand.h"
 #include "reversecommand.h"
 #include "trimseqscommand.h"
 #include "mergefilecommand.h"
+#include "chimeraseqscommand.h"
+#include "listseqscommand.h"
+#include "getseqscommand.h"
+#include "removeseqscommand.h"
 
 /***********************************************************/
 
@@ -89,7 +92,7 @@ CommandFactory::CommandFactory(){
        commands["get.sabund"]          = "get.sabund";
        commands["get.rabund"]          = "get.rabund";
        commands["bootstrap.shared"]    = "bootstrap.shared";
-       commands["concensus"]                   = "concensus";
+       //commands["consensus"]                 = "consensus";
        commands["help"]                                = "help"; 
        commands["filter.seqs"]                 = "filter.seqs";
        commands["align.seqs"]                  = "align.seqs";
@@ -97,6 +100,10 @@ CommandFactory::CommandFactory(){
        commands["screen.seqs"]                 = "screen.seqs";
        commands["reverse.seqs"]                = "reverse.seqs";
        commands["trim.seqs"]                   = "trim.seqs";
+       commands["chimera.seqs"]                = "chimera.seqs";
+       commands["list.seqs"]                   = "list.seqs";
+       commands["get.seqs"]                    = "get.seqs";
+       commands["remove.seqs"]                 = "get.seqs";
        commands["quit"]                                = "quit"; 
 
 }
@@ -146,13 +153,17 @@ Command* CommandFactory::getCommand(string commandName, string optionString){
                else if(commandName == "tree.shared")                   {   command = new TreeGroupCommand(optionString);                       }
                else if(commandName == "dist.shared")                   {   command = new MatrixOutputCommand(optionString);            }
                else if(commandName == "bootstrap.shared")              {   command = new BootSharedCommand(optionString);                      }
-               else if(commandName == "concensus")                             {   command = new ConcensusCommand(optionString);                       }
+               //else if(commandName == "consensus")                   {   command = new ConcensusCommand(optionString);                       }
                else if(commandName == "dist.seqs")                             {   command = new DistanceCommand(optionString);                        }
                else if(commandName == "align.seqs")                    {   command = new AlignCommand(optionString);                           }
                else if(commandName == "summary.seqs")                  {       command = new SeqSummaryCommand(optionString);                  }
                else if(commandName == "screen.seqs")                   {       command = new ScreenSeqsCommand(optionString);                  }
                else if(commandName == "reverse.seqs")                  {       command = new ReverseSeqsCommand(optionString);                 }
                else if(commandName == "trim.seqs")                             {       command = new TrimSeqsCommand(optionString);                    }
+               else if(commandName == "chimera.seqs")                  {       command = new ChimeraSeqsCommand(optionString);                 }
+               else if(commandName == "list.seqs")                             {       command = new ListSeqsCommand(optionString);                    }
+               else if(commandName == "get.seqs")                              {       command = new GetSeqsCommand(optionString);                             }
+               else if(commandName == "remove.seqs")                   {       command = new RemoveSeqsCommand(optionString);                  }
                else if(commandName == "merge.files")                   {       command = new MergeFileCommand(optionString);                   }
                else                                                                                    {       command = new NoCommand(optionString);                                  }