]> git.donarmstrong.com Git - mothur.git/blob - summarysharedcommand.h
paralellized summary.shared
[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 "readotu.h"
18 #include "validcalculator.h"
19
20 class GlobalData;
21
22 class SummarySharedCommand : public Command {
23
24 public:
25         SummarySharedCommand(string);
26         ~SummarySharedCommand();
27         int execute();
28         void help();
29         
30 private:
31         struct linePair {
32                 int start;
33                 int end;
34         };
35         vector<linePair> lines;
36         GlobalData* globaldata;
37         ReadOTUFile* read;
38         vector<Calculator*> sumCalculators;     
39         InputData* input;
40         ValidCalculators* validCalculator;
41         
42         bool abort, allLines, mult, all;
43         set<string> labels; //holds labels to be used
44         string label, calc, groups;
45         vector<string>  Estimators, Groups, outputNames;
46         vector<SharedRAbundVector*> lookup;
47         string format, outputDir;
48         int numGroups, processors;
49         int process(vector<SharedRAbundVector*>, string, string);
50         int driver(vector<SharedRAbundVector*>, int, int, string, string);
51
52 };
53
54 #endif