]> git.donarmstrong.com Git - mothur.git/blob - unweighted.h
working on parallelizing unifrac.unweighted.
[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 "treemap.h"
16
17 /***********************************************************************/
18
19 class Unweighted : public TreeCalculator  {
20         
21         public:
22                 Unweighted(TreeMap* t) : tmap(t) {};
23                 ~Unweighted() {};
24                 EstOutput getValues(Tree*, int, string);
25                 EstOutput getValues(Tree*, string, 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                 GlobalData* globaldata;
36                 Tree* copyTree;
37                 EstOutput data;
38                 TreeMap* tmap;
39                 int processors;
40                 string outputDir;
41                 
42                 EstOutput driver(Tree*, vector< vector<string> >, int, int); 
43                 EstOutput createProcesses(Tree*, vector< vector<string> >);
44
45 };
46
47 /***********************************************************************/
48
49 #endif