]> git.donarmstrong.com Git - mothur.git/blobdiff - commandfactory.cpp
added classify.otu command
[mothur.git] / commandfactory.cpp
index a40c432f54d18c19e549e9370253fb52dd9ddfa3..bd519eebfd6eaa24134dad9ac08f2193004e6386 100644 (file)
@@ -79,6 +79,7 @@
 #include "catchallcommand.h"
 #include "splitabundcommand.h"
 #include "clustersplitcommand.h"
+#include "classifyotucommand.h"
 
 /*******************************************************/
 
@@ -165,6 +166,7 @@ CommandFactory::CommandFactory(){
        commands["catchall"]                    = "catchall";
        commands["split.abund"]                 = "split.abund";
        commands["cluster.split"]               = "cluster.split";
+       commands["classify.otu"]                = "classify.otu";
        commands["classify.seqs"]               = "MPIEnabled"; 
        commands["dist.seqs"]                   = "MPIEnabled";
        commands["filter.seqs"]                 = "MPIEnabled";
@@ -288,6 +290,7 @@ Command* CommandFactory::getCommand(string commandName, string optionString){
                else if(commandName == "catchall")                              {       command = new CatchAllCommand(optionString);                            }
                else if(commandName == "split.abund")                   {       command = new SplitAbundCommand(optionString);                          }
                else if(commandName == "cluster.split")                 {       command = new ClusterSplitCommand(optionString);                        }
+               else if(commandName == "classify.otu")                  {       command = new ClassifyOtuCommand(optionString);                         }
                else                                                                                    {       command = new NoCommand(optionString);                                          }
 
                return command;
@@ -339,9 +342,9 @@ bool CommandFactory::isValidCommand(string command) {
 /***********************************************************************/
 void CommandFactory::printCommands(ostream& out) {
        try {   
-               out << "Valid commands are ";
+               out << "Valid commands are: ";
                for (it = commands.begin(); it != commands.end(); it++) {
-                       out << it->first << ", ";
+                       out << it->first << ",";
                }
                out << endl;
        }