X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=summarysharedcommand.h;h=3d177e7a71967225011f6077a6597b4ac3b2486c;hb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;hp=9e4a8c87963289644f17a10ce07c3a55f7cfbb7b;hpb=c5c7502f435e1413c19e373dab1dfebcaa67588d;p=mothur.git diff --git a/summarysharedcommand.h b/summarysharedcommand.h index 9e4a8c8..3d177e7 100644 --- a/summarysharedcommand.h +++ b/summarysharedcommand.h @@ -14,47 +14,42 @@ #include "sharedrabundvector.h" #include "inputdata.h" #include "calculator.h" -#include "readmatrix.hpp" -#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(); + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: - GlobalData* globaldata; - ReadMatrix* 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 >&); };