]> git.donarmstrong.com Git - mothur.git/blob - summarysharedcommand.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[mothur.git] / summarysharedcommand.h
1 #ifndef SUMMARYSHAREDCOMMAND_H
2 #define SUMMARYSHAREDCOMMAND_H
3 /*
4  *  summarysharedcommand.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
13 #include "command.hpp"
14 #include "sharedrabundvector.h"
15 #include "inputdata.h"
16 #include "calculator.h"
17 #include "validcalculator.h"
18
19 class SummarySharedCommand : public Command {
20
21 public:
22         SummarySharedCommand(string);
23         SummarySharedCommand();
24         ~SummarySharedCommand() {}
25         
26         vector<string> setParameters();
27         string getCommandName()                 { return "summary.shared";                      }
28         string getCommandCategory()             { return "OTU-Based Approaches";        }
29         string getHelpString(); 
30         
31         int execute(); 
32         void help() { m->mothurOut(getHelpString()); }  
33         
34         
35 private:
36         struct linePair {
37                 int start;
38                 int end;
39         };
40         vector<linePair> lines;
41         vector<Calculator*> sumCalculators;     
42         InputData* input;
43         
44         bool abort, allLines, mult, all, createPhylip;
45         set<string> labels; //holds labels to be used
46         string label, calc, groups, sharedfile;
47         vector<string>  Estimators, Groups, outputNames;
48         vector<SharedRAbundVector*> lookup;
49         string format, outputDir;
50         int numGroups, processors;
51         int process(vector<SharedRAbundVector*>, string, string);
52         int driver(vector<SharedRAbundVector*>, int, int, string, string, vector< vector<seqDist> >&);
53
54 };
55
56 #endif