]> git.donarmstrong.com Git - mothur.git/blob - phylodiversity.h
added phylo.diversity command. added hard parameter to cluster, hcluster and read...
[mothur.git] / phylodiversity.h
1 #ifndef PHYLODIVERSITY_H
2 #define PHYLODIVERSITY_H
3
4
5 /*
6  *  phylodiversity.h
7  *  Mothur
8  *
9  *  Created by westcott on 4/30/10.
10  *  Copyright 2010 Schloss Lab. All rights reserved.
11  *
12  */
13
14 #include "treemap.h"
15 #include "globaldata.hpp"
16 #include "mothurout.h"
17
18 typedef vector<double> EstOutput; 
19
20 /***********************************************************************/
21
22 class PhyloDiversity  {
23         
24         public:
25                 PhyloDiversity(TreeMap* t) : tmap(t) { globaldata = GlobalData::getInstance();  m = MothurOut::getInstance(); }
26                 ~PhyloDiversity() {};
27                 
28                 EstOutput getValues(Tree*, vector<int>);
29                 void setTotalGroupBranchLengths(Tree*);
30                 
31         private:
32                 GlobalData* globaldata;
33                 MothurOut* m;
34                 EstOutput data;
35                 TreeMap* tmap;
36                 map<string, float> groupTotals;
37 };
38
39 /***********************************************************************/
40
41
42 #endif
43