X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=summarysharedcommand.h;h=f366d0f62432e0bc34c475b190f946a04ba26335;hb=8dd3c225255d7084e3aff8740aa4f1f1cabb367a;hp=e87e75e6412a36239f3c1b1e19066609aaef4527;hpb=154e089bcd37c2c2f773e53ffb88a20170b27037;p=mothur.git diff --git a/summarysharedcommand.h b/summarysharedcommand.h index e87e75e..f366d0f 100644 --- a/summarysharedcommand.h +++ b/summarysharedcommand.h @@ -14,47 +14,44 @@ #include "sharedrabundvector.h" #include "inputdata.h" #include "calculator.h" -#include "readotu.h" -#include "sharedlistvector.h" #include "validcalculator.h" -#include "sharedutilities.h" - -/*The summary.shared() command - The summary.shared command can only be executed after a successful read.shared command. - It outputs a file for each estimator you choose to use. The summary.shared command parameters are label, - line, jumble and sharedsummary. No parameters are required, but you may not use both the line and label parameters at the same time. - The summary.shared command should be in the following format: summary.shared(label=yourLabel, - line=yourLines, jumble=yourJumble, sharedsummary=yourEstimators). - Example summary.shared(label=unique-.01-.03, line=0,5,10, jumble=1, sharedsummary=sharedChao-sharedAce-sharedJabund - -sharedSorensonAbund-sharedJclass-sharedSorClass-sharedJest-sharedSorEst-SharedThetaYC-SharedThetaN). - The default value for jumble is 0 (meaning don’t jumble, if it’s set to 1 then it will jumble) and - sharedsummary is sharedChao-sharedAce-sharedJabund-sharedSorensonAbund-sharedJclass-sharedSorClass-sharedJest-sharedSorEst-SharedThetaYC-SharedThetaN. - The valid sharedsummary estimators are: sharedChao-sharedAce-sharedJabund-sharedSorensonAbund-sharedJclass-sharedSorClass - -sharedJest-sharedSorEst-SharedThetaYC-SharedThetaN. The label and line parameters are used to analyze specific lines in your input. */ - - -class GlobalData; - class SummarySharedCommand : public Command { public: + SummarySharedCommand(string); SummarySharedCommand(); - ~SummarySharedCommand(); - int execute(); + ~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; - SharedUtil* util; + struct linePair { + int start; + int end; + }; + vector lines; vector sumCalculators; InputData* input; - ValidCalculators* validCalculator; - SharedListVector* SharedList; - SharedOrderVector* order; + + bool abort, allLines, mult, all, createPhylip; + set labels; //holds labels to be used + string label, calc, groups, sharedfile; + vector Estimators, Groups, outputNames; vector lookup; - string outputFileName, format; - ofstream outputFileHandle; + string format, outputDir; + int numGroups, processors; + int process(vector, string, string); + int driver(vector, int, int, string, string, vector< vector >&); };