X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarefactsharedcommand.h;fp=rarefactsharedcommand.h;h=d81ff6dc2d1c6588d86f9cccbb0251778bd85011;hb=0470f6d037aacb3563c3f7010708120a4a67d4e6;hp=1935398ac1c312020e03edc32b30fc7ce10045fb;hpb=bede5752eaeedb5a7e339439b6ba2f6670bca2b9;p=mothur.git diff --git a/rarefactsharedcommand.h b/rarefactsharedcommand.h index 1935398..d81ff6d 100644 --- a/rarefactsharedcommand.h +++ b/rarefactsharedcommand.h @@ -19,11 +19,11 @@ /* The rarefaction.shared() command: The rarefaction command generates a rarefaction curve from a given file representing several groups. The rarefaction.shared command can only be executed after a successful read.shared command. It outputs a file for each estimator you choose to use. - The rarefaction.shared command parameters are label, line, iters, jumble and sharedrarefaction. + The rarefaction.shared command parameters are label, line, iters and sharedrarefaction. No parameters are required, but you may not use both the line and label parameters at the same time. The rarefaction command should be in the following format: rarefaction.shared(label=yourLabel, line=yourLines, iters=yourIters, - jumble= yourJumble, sharedrarefaction=yourEstimators). Example rarefaction.shared(label=unique-.01-.03, line=0,5,10, iters=10000, - jumble=1, sharedrarefaction =sharedobserved). The default values for jumble is 0 (meaning don’t jumble, if it’s set to 1 then it will jumble), + sharedrarefaction=yourEstimators). Example rarefaction.shared(label=unique-.01-.03, line=0,5,10, iters=10000, + sharedrarefaction =sharedobserved). The default values for iters is 1000 and sharedrarefaction is sharedobserved which calculates the shared rarefaction curve for the observed richness. The valid sharedrarefaction estimator is sharedobserved. The label and line parameters are used to analyze specific lines in your input. */ @@ -33,9 +33,10 @@ class GlobalData; class RareFactSharedCommand : public Command { public: - RareFactSharedCommand(); + RareFactSharedCommand(string); ~RareFactSharedCommand(); int execute(); + void help(); private: GlobalData* globaldata; @@ -47,6 +48,15 @@ private: vector rDisplays; int freq, nIters; string format; + OptionParser* parser; + map parameters; + map::iterator it; + bool abort, allLines; + set lines; //hold lines to be used + set labels; //holds labels to be used + string line, label, calc, groups; + vector Estimators, Groups; + };