]> git.donarmstrong.com Git - mothur.git/blob - unweighted.h
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / unweighted.h
1 #ifndef UNWEIGHTED_H
2 #define UNWEIGHTED_H
3
4
5 /*
6  *  unweighted.h
7  *  Mothur
8  *
9  *  Created by Sarah Westcott on 2/9/09.
10  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
11  *
12  */
13
14 #include "treecalculator.h"
15 #include "counttable.h"
16
17 /***********************************************************************/
18
19 class Unweighted : public TreeCalculator  {
20         
21         public:
22         Unweighted(bool r) : includeRoot(r) {};
23                 ~Unweighted() {};
24                 EstOutput getValues(Tree*, int, string);
25                 EstOutput getValues(Tree*, string, string, int, string);
26                 
27         private:
28                 struct linePair {
29                         int start;
30                         int num;
31                         linePair(int i, int j) : start(i), num(j) {}
32                 };
33                 vector<linePair> lines;
34                 
35                 EstOutput data;
36                 int processors;
37                 string outputDir;
38                 map< vector<string>, set<int> > rootForGrouping;  //maps a grouping combo to the roots for that combo
39                 bool includeRoot;
40                 
41                 EstOutput driver(Tree*, vector< vector<string> >, int, int, CountTable*); 
42                 EstOutput createProcesses(Tree*, vector< vector<string> >, CountTable*);
43                 EstOutput driver(Tree*, vector< vector<string> >, int, int, bool, CountTable*); 
44                 EstOutput createProcesses(Tree*, vector< vector<string> >, bool, CountTable*);
45                 int getRoot(Tree*, int, vector<string>);
46 };
47
48 /***********************************************************************/
49
50 #endif