X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=summarysharedcommand.h;h=515c776716100358d9369e21ff2e400d4458101f;hb=b7cce6e0a45013919e76a266533fcca4052cf157;hp=248c1c8ecb81f2bbc069b25151c3908e05330907;hpb=7e0cf6431e287072c40b2c10c9e08199fce29ef4;p=mothur.git diff --git a/summarysharedcommand.h b/summarysharedcommand.h index 248c1c8..515c776 100644 --- a/summarysharedcommand.h +++ b/summarysharedcommand.h @@ -14,20 +14,19 @@ #include "sharedrabundvector.h" #include "inputdata.h" #include "calculator.h" -#include "readmatrix.hpp" -#include "sharedlistvector.h" +#include "readotu.h" #include "validcalculator.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. + line 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 + line=yourLines, sharedsummary=yourEstimators). + Example summary.shared(label=unique-.01-.03, line=0,5,10, 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 default value for 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. */ @@ -38,25 +37,30 @@ class GlobalData; class SummarySharedCommand : public Command { public: - SummarySharedCommand(); + SummarySharedCommand(string); ~SummarySharedCommand(); int execute(); + void help(); private: - void getSharedVectors(); - void setGroups(); - GlobalData* globaldata; - ReadMatrix* read; + ReadOTUFile* read; vector sumCalculators; InputData* input; ValidCalculators* validCalculator; SharedListVector* SharedList; - SharedOrderVector* order; + OptionParser* parser; + map parameters; + map::iterator it; + bool abort, allLines, mult; + set lines; //hold lines to be used + set labels; //holds labels to be used + string line, label, calc, groups; + vector Estimators, Groups; vector lookup; - SharedRAbundVector* shared1, shared2; - string outputFileName, format; - ofstream outputFileHandle; + string outputFileName, format, outAllFileName; + ofstream outputFileHandle, outAll; + void process(vector); };