X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=pipelinepdscommand.h;fp=pipelinepdscommand.h;h=8a8a195eef38c9787332c2b029c889f693c55639;hp=0000000000000000000000000000000000000000;hb=8bc3e5b38c2317a1715f53be22fa96455868c281;hpb=f663afa231c9bc1b5e18e0ea3bdd2b2ee784f5b2 diff --git a/pipelinepdscommand.h b/pipelinepdscommand.h new file mode 100644 index 0000000..8a8a195 --- /dev/null +++ b/pipelinepdscommand.h @@ -0,0 +1,52 @@ +#ifndef PIPELINEPDSCOMMAND_H +#define PIPELINEPDSCOMMAND_H + +/* + * pipelinepdscommand.h + * Mothur + * + * Created by westcott on 10/5/10. + * Copyright 2010 Schloss Lab. All rights reserved. + * + */ + + +#include "command.hpp" +#include "commandfactory.hpp" + +/****************************************************/ + +class PipelineCommand : public Command { + +public: + PipelineCommand(string); + PipelineCommand() {} + ~PipelineCommand(); + vector getRequiredParameters(); + vector getValidParameters(); + vector getRequiredFiles(); + map > getOutputFiles() { return outputTypes; } //empty + int execute(); + void help(); + +private: + bool abort; + CommandFactory* cFactory; + vector outputNames; + map > outputTypes; + vector commands; + string outputDir, sffFile, alignFile, oligosFile, taxonomyFile, pipeFilename, classifyFile, chimeraFile; + int processors; + + bool readUsersPipeline(); + int runUsersPipeline(); + void createPatsPipeline(); + bool parseCommand(string, string&, string&); + bool checkForValidAndRequiredParameters(string, string, map >&); + bool fillInMothurMade(string&, map >); +}; + +/****************************************************/ + +#endif +