X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=commandfactory.cpp;h=d70c10a597d265c631665c7ab61ab9ea1ce940a7;hb=8e3e7b1e124f45cb1f2ca9d764ff67fa9b2e532b;hp=0c9504d09a109a39168af9b9d582ef20732e6647;hpb=bb8d942036365d2a66330944269f17841ed2388a;p=mothur.git diff --git a/commandfactory.cpp b/commandfactory.cpp index 0c9504d..d70c10a 100644 --- a/commandfactory.cpp +++ b/commandfactory.cpp @@ -130,6 +130,8 @@ #include "cooccurrencecommand.h" #include "pcrseqscommand.h" #include "createdatabasecommand.h" +#include "makebiomcommand.h" +#include "getcoremicrobiomecommand.h" /*******************************************************/ @@ -281,6 +283,8 @@ 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["quit"] = "MPIEnabled"; } @@ -304,7 +308,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