X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=getmetacommunitycommand.h;fp=getmetacommunitycommand.h;h=62070d6191ca75a09b6980f6cd5aabe73af89023;hp=0000000000000000000000000000000000000000;hb=4a760c2d164aa955dee7d3d38da323822763d906;hpb=feb0fbef36b8a681efc04e9b5e3efb1647b99021 diff --git a/getmetacommunitycommand.h b/getmetacommunitycommand.h new file mode 100644 index 0000000..62070d6 --- /dev/null +++ b/getmetacommunitycommand.h @@ -0,0 +1,64 @@ +// +// getmetacommunitycommand.h +// Mothur +// +// Created by SarahsWork on 4/9/13. +// Copyright (c) 2013 Schloss Lab. All rights reserved. +// + +#ifndef Mothur_getmetacommunitycommand_h +#define Mothur_getmetacommunitycommand_h + +#include "command.hpp" +#include "inputdata.h" + +/**************************************************************************************************/ + +class GetMetaCommunityCommand : public Command { +public: + GetMetaCommunityCommand(string); + GetMetaCommunityCommand(); + ~GetMetaCommunityCommand(){} + + vector setParameters(); + string getCommandName() { return "get.metacommunity"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + + string getOutputPattern(string); + + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Get.metacommunity"; } + string getDescription() { return "brief description"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + +private: + bool abort, allLines; + string outputDir; + vector outputNames; + string sharedfile; + int minpartitions, maxpartitions, optimizegap; + vector Groups; + set labels; + + int process(vector&); + vector generateDesignFile(int, string); + int generateSummaryFile(int, string, string, string, string); + +}; + +/**************************************************************************************************/ +struct summaryData { + + string name; + double refMean, difference; + vector partMean, partLCI, partUCI; + +}; +/**************************************************************************************************/ + + + + +#endif