X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=summarysharedcommand.h;h=f366d0f62432e0bc34c475b190f946a04ba26335;hb=2bb9267aa4b4ecdf8488b06605cc9f3f36fa4332;hp=8f37eeb9cb1a907c7db1b2c6549ad19bda591a6b;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0;p=mothur.git diff --git a/summarysharedcommand.h b/summarysharedcommand.h index 8f37eeb..f366d0f 100644 --- a/summarysharedcommand.h +++ b/summarysharedcommand.h @@ -14,34 +14,44 @@ #include "sharedrabundvector.h" #include "inputdata.h" #include "calculator.h" -#include "readotu.h" #include "validcalculator.h" -class GlobalData; - class SummarySharedCommand : public Command { public: SummarySharedCommand(string); - ~SummarySharedCommand(); - int execute(); - void help(); + SummarySharedCommand(); + ~SummarySharedCommand() {} + + vector setParameters(); + string getCommandName() { return "summary.shared"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Summary.shared"; } + string getDescription() { return "generate a summary file containing calculator values for each line in the OTU data and for all possible comparisons between groups"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: - GlobalData* globaldata; - ReadOTUFile* read; + struct linePair { + int start; + int end; + }; + vector lines; vector sumCalculators; InputData* input; - ValidCalculators* validCalculator; - bool abort, allLines, mult, all; + bool abort, allLines, mult, all, createPhylip; set labels; //holds labels to be used - string label, calc, groups; + string label, calc, groups, sharedfile; vector Estimators, Groups, outputNames; vector lookup; - string outputFileName, format, outAllFileName, outputDir; - ofstream outputFileHandle, outAll; - void process(vector); + string format, outputDir; + int numGroups, processors; + int process(vector, string, string); + int driver(vector, int, int, string, string, vector< vector >&); };