]> git.donarmstrong.com Git - mothur.git/blob - rarefactcommand.h
working on citations
[mothur.git] / rarefactcommand.h
1 #ifndef RAREFACTCOMMAND_H
2 #define RAREFACTCOMMAND_H
3 /*
4  *  rarefactcommand.h
5  *  Dotur
6  *
7  *  Created by Sarah Westcott on 1/2/09.
8  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
9  *
10  */
11
12 #include "command.hpp"
13 #include "ordervector.hpp"
14 #include "inputdata.h"
15 #include "rarefact.h"
16 #include "display.h"
17 #include "validcalculator.h"
18
19 class RareFactCommand : public Command {
20         
21 public:
22         RareFactCommand(string);
23         RareFactCommand();      
24         ~RareFactCommand(){}
25         
26         vector<string> setParameters();
27         string getCommandName()                 { return "rarefaction.single";          }
28         string getCommandCategory()             { return "OTU-Based Approaches";        }
29         string getHelpString(); 
30         string getCitation() { return "Magurran AE (2004). Measuring biological diversity. Blackwell Pub.: Malden, Ma. \nhttp://www.mothur.org/wiki/Rarefaction.single"; }
31         
32         int execute(); 
33         void help() { m->mothurOut(getHelpString()); }  
34         
35 private:
36         
37         vector<Display*> rDisplays;
38         OrderVector* order;
39         InputData* input;
40         Rarefact* rCurve;
41         int nIters, abund, processors;
42         float freq;
43         
44         bool abort, allLines;
45         set<string> labels; //holds labels to be used
46         string label, calc, sharedfile, listfile, rabundfile, sabundfile, format, inputfile;
47         vector<string>  Estimators;
48         vector<string> inputFileNames, outputNames;
49         vector<string> groups;
50         string outputDir;
51         
52         vector<string> parseSharedFile(string);
53 };
54
55 #endif