]> git.donarmstrong.com Git - mothur.git/blob - treegroupscommand.h
started shared utilities, updates to venn and heatmap added tree.groups command
[mothur.git] / treegroupscommand.h
1 #ifndef TREEGROUPCOMMAND_H
2 #define TREEGROUPCOMMAND_H
3
4 /*
5  *  treegroupscommand.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 4/8/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14 #include "sharedordervector.h"
15 #include "sharedlistvector.h"
16 #include "inputdata.h"
17 #include "groupmap.h"
18 #include "readmatrix.hpp"
19 #include "validcalculator.h"
20 #include "tree.h"
21 #include "treemap.h"
22 #include "sharedutilities.h"
23
24
25 /* This command create a tree file for each similarity calculator at distance level, using various calculators to find the similiarity between groups. 
26         The user can select the lines or labels they wish to use as well as the groups they would like included.
27         They can also use as many or as few calculators as they wish. */
28         
29 class GlobalData;
30
31 class TreeGroupCommand : public Command {
32         
33 public:
34         TreeGroupCommand();     
35         ~TreeGroupCommand();
36         int execute();  
37         
38 private:
39         void createTree();
40         void printSims();
41         
42         GlobalData* globaldata;
43         SharedUtil* util;
44         ReadMatrix* read;
45         TreeMap* tmap;
46         Tree* t;
47         vector<Calculator*> treeCalculators;
48         vector< vector<float> > simMatrix;
49         map<int, int> index;  //maps row in simMatrix to vector index in the tree       
50         InputData* input;
51         ValidCalculators* validCalculator;
52         SharedListVector* SharedList;
53         SharedOrderVector* order;
54         vector<SharedRAbundVector*> lookup;
55         string format, outputFile, groupNames;
56         int numGroups;
57
58 };
59         
60         
61 #endif
62
63