1 #ifndef RAREFACTSHAREDCOMMAND_H
2 #define RAREFACTSHAREDCOMMAND_H
4 * rarefactsharedcommand.h
7 * Created by Sarah Westcott on 1/6/09.
8 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
12 #include "command.hpp"
13 #include "sharedordervector.h"
14 #include "sharedlistvector.h"
15 #include "inputdata.h"
18 #include "readmatrix.hpp"
19 #include "validcalculator.h"
21 /* The rarefaction.shared() command:
22 The rarefaction command generates a rarefaction curve from a given file representing several groups.
23 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.
24 The rarefaction.shared command parameters are label, line, iters, jumble and sharedrarefaction.
25 No parameters are required, but you may not use both the line and label parameters at the same time.
26 The rarefaction command should be in the following format: rarefaction.shared(label=yourLabel, line=yourLines, iters=yourIters,
27 jumble= yourJumble, sharedrarefaction=yourEstimators). Example rarefaction.shared(label=unique-.01-.03, line=0,5,10, iters=10000,
28 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),
29 iters is 1000 and sharedrarefaction is sharedobserved which calculates the shared rarefaction curve for the observed richness.
30 The valid sharedrarefaction estimator is sharedobserved. The label and line parameters are used to analyze specific lines in your input. */
35 class RareFactSharedCommand : public Command {
38 RareFactSharedCommand();
39 ~RareFactSharedCommand();
44 GlobalData* globaldata;
45 SharedListVector* SharedList;
47 SharedOrderVector* order;
49 ValidCalculators* validCalculator;
51 vector<Display*> rDisplays;