X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=summarysharedcommand.h;h=bcd8ab671f2727331179dbe3511d4acd72f72417;hb=7a8fc1115b3871107c09a4b9b307b1f2ab7d3fcf;hp=ab1d7ac4d8af610748c5dab7c26f42e2ff320da5;hpb=44c1323a88b2a697c7047df1b3bb8c59eadd15b1;p=mothur.git diff --git a/summarysharedcommand.h b/summarysharedcommand.h index ab1d7ac..bcd8ab6 100644 --- a/summarysharedcommand.h +++ b/summarysharedcommand.h @@ -9,53 +9,39 @@ * */ -#include -#include -#include + #include "command.hpp" #include "sharedrabundvector.h" #include "inputdata.h" #include "calculator.h" -#include "readmatrix.hpp" -#include "sharedlistvector.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. */ - +#include "readotu.h" +#include "validcalculator.h" class GlobalData; - class SummarySharedCommand : public Command { public: - SummarySharedCommand(); + SummarySharedCommand(string); ~SummarySharedCommand(); int execute(); + void help(); private: - void getSharedVectors(); - GlobalData* globaldata; - ReadMatrix* read; + ReadOTUFile* read; vector sumCalculators; InputData* input; - SharedListVector* SharedList; - SharedOrderVector* order; + ValidCalculators* validCalculator; + + bool abort, allLines, mult, all; + set labels; //holds labels to be used + string label, calc, groups; + vector Estimators, Groups, outputNames; vector lookup; - SharedRAbundVector* shared1, shared2; - string outputFileName; - ofstream outputFileHandle; + string outputFileName, format, outAllFileName, outputDir; + ofstream outputFileHandle, outAll; + int process(vector); };