]> git.donarmstrong.com Git - mothur.git/blob - bootstrapsharedcommand.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[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 "validcalculator.h"
18 #include "tree.h"
19 #include "treemap.h"
20 #include "sharedutilities.h"
21 #include "consensuscommand.h"
22
23 class BootSharedCommand : public Command {
24         
25 public:
26         BootSharedCommand(string);      
27         BootSharedCommand();
28         ~BootSharedCommand();
29         
30         vector<string> setParameters();
31         string getCommandName()                 { return "bootstrap.shared";    }
32         string getCommandCategory()             { return "Hidden";                              }
33         string getHelpString(); 
34         
35         int execute(); 
36         void help() { m->mothurOut(getHelpString()); }  
37         
38 private:
39         int createTree(ostream*, Tree*);
40         void printSims();
41         int process(SharedOrderVector*);
42         
43         SharedUtil* util;
44         TreeMap* tmap;
45         Tree* t;
46         Tree* tempTree;
47         ConcensusCommand* consensus;
48         vector< vector<Tree*> > trees;  //a vector of trees for each calculator chosen
49         vector<Calculator*> treeCalculators;
50         vector<ofstream*> out;
51         vector< vector<float> > simMatrix;
52         map<int, int> index;  //maps row in simMatrix to vector index in the tree       
53         InputData* input;
54         ValidCalculators* validCalculator;
55         SharedOrderVector* order;
56         vector<SharedRAbundVector*> lookup;
57
58         bool abort, allLines;
59         set<string> labels; //holds labels to be used
60         string outputFile, calc, groups, label, outputDir, sharedfile;
61         int numGroups, iters;
62         vector<string>  Estimators, Groups, outputNames; //holds estimators to be used
63 };
64         
65         
66 #endif
67
68