]> git.donarmstrong.com Git - mothur.git/blob - parsimony.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[mothur.git] / parsimony.h
1 #ifndef PARSIMONY_H
2 #define PARSIMONY_H
3
4
5 /*
6  *  parsimony.h
7  *  Mothur
8  *
9  *  Created by Sarah Westcott on 1/26/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 Parsimony : public TreeCalculator  {
20         
21         public:
22                 Parsimony(TreeMap* t) : tmap(t) {};
23                 ~Parsimony() {};
24                 EstOutput getValues(Tree*, int, string);
25                 //EstOutput getValues(Tree*, string, string) { return data; }
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                 TreeMap* tmap;
37                 int processors;
38                 string outputDir;
39         
40                 EstOutput driver(Tree*, vector< vector<string> >, int, int); 
41                 EstOutput createProcesses(Tree*, vector< vector<string> >);
42 };
43
44 /***********************************************************************/
45
46 #endif