#include "pcacommand.h"
#include "otuhierarchycommand.h"
#include "setdircommand.h"
+#include "parselistscommand.h"
/*******************************************************/
commands["phylotype"] = "phylotype";
commands["mgcluster"] = "mgcluster";
commands["pre.cluster"] = "pre.cluster";
- commands["pca"] = "pca";
+ commands["pcoa"] = "pcoa";
commands["otu.hierarchy"] = "otu.hierarchy";
commands["set.dir"] = "set.dir";
+ commands["merge.files"] = "merge.files";
+ commands["parse.list"] = "parse.list";
}
/***********************************************************/
delete command; //delete the old command
//user has opted to redirect output from dir where input files are located to some other place
- if (outputDir != "") { optionString += ", outputdir=" + outputDir; }
+ if (outputDir != "") {
+ if (optionString != "") { optionString += ", outputdir=" + outputDir; }
+ else { optionString += "outputdir=" + outputDir; }
+ }
//user has opted to redirect input from dir where mothur.exe is located to some other place
- if (inputDir != "") { optionString += ", inputdir=" + inputDir; }
-
+ if (inputDir != "") {
+ if (optionString != "") { optionString += ", inputdir=" + inputDir; }
+ else { optionString += "inputdir=" + inputDir; }
+ }
if(commandName == "read.dist") { command = new ReadDistCommand(optionString); }
else if(commandName == "read.otu") { command = new ReadOtuCommand(optionString); }
else if(commandName == "phylotype") { command = new PhylotypeCommand(optionString); }
else if(commandName == "mgcluster") { command = new MGClusterCommand(optionString); }
else if(commandName == "pre.cluster") { command = new PreClusterCommand(optionString); }
- else if(commandName == "pca") { command = new PCACommand(optionString); }
+ else if(commandName == "pcoa") { command = new PCACommand(optionString); }
else if(commandName == "otu.hierarchy") { command = new OtuHierarchyCommand(optionString); }
- else if(commandName == "set.dir") { command = new SetDirectoryCommand(optionString); }
+ else if(commandName == "set.dir") { command = new SetDirectoryCommand(optionString); }
+ else if(commandName == "parse.list") { command = new ParseListCommand(optionString); }
else { command = new NoCommand(optionString); }
return command;