X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=1241a04e998537fe33446a1c9ba3d933e690e557;hb=e339f9008daa7d37c9a9034829565620a6abe783;hp=0c9504d09a109a39168af9b9d582ef20732e6647;hpb=bb8d942036365d2a66330944269f17841ed2388a;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index 0c9504d..1241a04 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -130,6 +130,10 @@ #include "cooccurrencecommand.h" #include "pcrseqscommand.h" #include "createdatabasecommand.h" +#include "makebiomcommand.h" +#include "getcoremicrobiomecommand.h" +#include "listotulabelscommand.h" +#include "makecontigscommand.h" /*******************************************************/ @@ -281,6 +285,10 @@ CommandFactory::CommandFactory(){ commands["cooccurrence"] = "cooccurrence"; commands["pcr.seqs"] = "pcr.seqs"; commands["create.database"] = "create.database"; + commands["make.biom"] = "make.biom"; + commands["get.coremicrobiome"] = "get.coremicrobiome"; + commands["list.otulabels"] = "list.otulabels"; + commands["make.contigs"] = "make.contigs"; commands["quit"] = "MPIEnabled"; } @@ -304,7 +312,49 @@ CommandFactory::~CommandFactory(){ delete shellcommand; delete pipecommand; } +/***********************************************************/ +/***********************************************************/ +int CommandFactory::checkForRedirects(string optionString) { + try { + + int pos = optionString.find("outputdir"); + if (pos != string::npos) { //user has set outputdir in command option string + string outputOption = ""; + bool foundEquals = false; + for(int i=pos;i