]> git.donarmstrong.com Git - mothur.git/blob - validcalculator.h
added heatmap.sim command and changed heatmap to heatmap.bin
[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
15 //This class contains a list of all valid calculators in Mothur.  
16 //It has a function which will tell you if your calculator is valid for the given parameter.
17 //When adding a new calculator you must add it to the valid list.
18
19
20 class ValidCalculators {
21         public:
22                 ValidCalculators();
23                 ~ValidCalculators();
24                 bool isValidCalculator(string, string);
25                 void printCalc(string, ostream&);
26                 
27         private:
28                 map<string, string> single;
29                 map<string, string> shared;
30                 map<string, string> rarefaction;
31                 map<string, string> summary;
32                 map<string, string> sharedrarefaction;
33                 map<string, string> sharedsummary;
34                 map<string, string> vennsingle;
35                 map<string, string> vennshared;
36                 map<string, string> treegroup;
37                 map<string, string> matrix;
38                 map<string, string> heat;
39                 map<string, string> boot;
40                 map<string, string> distance;
41                 map<string, string>::iterator it;
42                 
43                 void initialSingle();
44                 void initialShared();
45                 void initialRarefaction();
46                 void initialSharedRarefact();
47                 void initialSummary();
48                 void initialSharedSummary();
49                 void initialVennSingle();
50                 void initialVennShared();
51                 void initialTreeGroups();
52                 void initialMatrix();
53                 void initialBoot();
54                 void initialDistance();
55                 void initialHeat();
56 };
57
58 #endif