]> git.donarmstrong.com Git - mothur.git/blob - treegroupscommand.h
added get.repseqs command, started matrix output 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 "inputdata.h"
15 #include "groupmap.h"
16 #include "readotu.h"
17 #include "validcalculator.h"
18 #include "tree.h"
19 #include "treemap.h"
20
21
22 /* This command create a tree file for each similarity calculator at distance level, using various calculators to find the similiarity between groups. 
23         The user can select the lines or labels they wish to use as well as the groups they would like included.
24         They can also use as many or as few calculators as they wish. */
25         
26 class GlobalData;
27
28 class TreeGroupCommand : public Command {
29         
30 public:
31         TreeGroupCommand();     
32         ~TreeGroupCommand();
33         int execute();  
34         
35 private:
36         void createTree();
37         void printSims(ostream&);
38         
39         GlobalData* globaldata;
40         ReadOTUFile* read;
41         TreeMap* tmap;
42         Tree* t;
43         vector<Calculator*> treeCalculators;
44         vector< vector<float> > simMatrix;
45         map<int, int> index;  //maps row in simMatrix to vector index in the tree       
46         InputData* input;
47         ValidCalculators* validCalculator;
48         vector<SharedRAbundVector*> lookup;
49         string format, outputFile, groupNames;
50         int numGroups;
51         ofstream out;
52
53 };
54         
55         
56 #endif
57
58