]> git.donarmstrong.com Git - mothur.git/blob - validcalculator.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[mothur.git] / validcalculator.h
1 #ifndef VALIDCALCULATOR_H
2 #define VALIDCALCULATOR_H
3
4 /*
5  *  validcalculator.h
6  *  Dotur
7  *
8  *  Created by Sarah Westcott on 1/5/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */
12
13 #include "mothur.h"
14 #include "mothurout.h"
15
16 //This class contains a list of all valid calculators in Mothur.  
17 //It has a function which will tell you if your calculator is valid for the given parameter.
18 //When adding a new calculator you must add it to the valid list.
19
20
21 class ValidCalculators {
22         public:
23                 ValidCalculators();
24                 ~ValidCalculators();
25                 bool isValidCalculator(string, string);
26                 void printCalc(string, ostream&);
27                 string printCalc(string);
28                 
29         private:
30                 map<string, string> single;
31                 map<string, string> shared;
32                 map<string, string> rarefaction;
33                 map<string, string> summary;
34                 map<string, string> sharedrarefaction;
35                 map<string, string> sharedsummary;
36                 map<string, string> vennsingle;
37                 map<string, string> vennshared;
38                 map<string, string> treegroup;
39                 map<string, string> matrix;
40                 map<string, string> heat;
41                 map<string, string> boot;
42                 map<string, string> distance;
43                 map<string, string>::iterator it;
44                 
45                 void initialSingle();
46                 void initialShared();
47                 void initialRarefaction();
48                 void initialSharedRarefact();
49                 void initialSummary();
50                 void initialSharedSummary();
51                 void initialVennSingle();
52                 void initialVennShared();
53                 void initialTreeGroups();
54                 void initialMatrix();
55                 void initialBoot();
56                 void initialDistance();
57                 void initialHeat();
58                 
59                 MothurOut* m;
60 };
61
62 #endif