]> git.donarmstrong.com Git - mothur.git/blob - summarycommand.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[mothur.git] / summarycommand.h
1 #ifndef SUMMARYCOMMAND_H
2 #define SUMMARYCOMMAND_H
3 /*
4  *  summarycommand.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 "sabundvector.hpp"
14 #include "inputdata.h"
15 #include "calculator.h"
16 #include "validcalculator.h"
17
18 class SummaryCommand : public Command {
19
20 public:
21         SummaryCommand(string);
22         SummaryCommand();
23         ~SummaryCommand(){}
24         
25         vector<string> setParameters();
26         string getCommandName()                 { return "summary.single";                      }
27         string getCommandCategory()             { return "OTU-Based Approaches";        }
28         string getHelpString(); 
29         
30         int execute(); 
31         void help() { m->mothurOut(getHelpString()); }  
32         
33 private:
34         vector<Calculator*> sumCalculators;     
35         InputData* input;
36         SAbundVector* sabund;
37         int abund, size;
38
39         bool abort, allLines, groupMode;
40         set<string> labels; //holds labels to be used
41         string label, calc, outputDir, sharedfile, listfile, rabundfile, sabundfile, format, inputfile;
42         vector<string>  Estimators;
43         vector<string> inputFileNames, outputNames;
44         vector<string> groups;
45         
46         vector<string> parseSharedFile(string);
47         string createGroupSummaryFile(int, int, vector<string>&);
48
49
50 };
51 #endif