]> git.donarmstrong.com Git - mothur.git/blob - bootstrapsharedcommand.h
added smart distance feature and optimized all commands using line by line processing
[mothur.git] / bootstrapsharedcommand.h
1 #ifndef BOOTSTRAPSHAREDCOMMAND_H
2 #define BOOTSTRAPSHAREDCOMMAND_H
3
4 /*
5  *  bootstrapsharedcommand.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 4/16/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14 #include "sharedordervector.h"
15 #include "inputdata.h"
16 #include "groupmap.h"
17 #include "readotu.h"
18 #include "validcalculator.h"
19 #include "tree.h"
20 #include "treemap.h"
21 #include "sharedutilities.h"
22         
23 class GlobalData;
24
25 class BootSharedCommand : public Command {
26         
27 public:
28         BootSharedCommand();    
29         ~BootSharedCommand();
30         int execute();  
31         
32 private:
33         void createTree(ostream*);
34         void printSims();
35         void process(SharedOrderVector*);
36         
37         
38         GlobalData* globaldata;
39         SharedUtil* util;
40         ReadOTUFile* read;
41         TreeMap* tmap;
42         Tree* t;
43         vector<Calculator*> treeCalculators;
44         vector<ofstream*> out;
45         vector< vector<float> > simMatrix;
46         map<int, int> index;  //maps row in simMatrix to vector index in the tree       
47         InputData* input;
48         ValidCalculators* validCalculator;
49         SharedOrderVector* order;
50         vector<SharedRAbundVector*> lookup;
51         string format, outputFile;
52         int numGroups, iters;
53
54 };
55         
56         
57 #endif
58
59