]> git.donarmstrong.com Git - mothur.git/blob - homovacommand.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[mothur.git] / homovacommand.h
1 #ifndef HOMOVACOMMAND_H
2 #define HOMOVACOMMAND_H
3
4 /*
5  *  homovacommand.h
6  *  mothur
7  *
8  *  Created by westcott on 2/8/11.
9  *  Copyright 2011 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "command.hpp"
15
16 //class GlobalData;
17 class GroupMap;
18
19 class HomovaCommand : public Command {
20         
21 public:
22         HomovaCommand(string);
23         HomovaCommand();
24         ~HomovaCommand(){}
25         
26         vector<string> setParameters();
27         string getCommandName()                 { return "homova";                                      }
28         string getCommandCategory()             { return "Hypothesis Testing";          }
29         string getHelpString(); 
30         
31         int execute();
32         void help() { m->mothurOut(getHelpString()); }  
33         
34 private:
35         double runHOMOVA(ofstream& , map<string, vector<int> >, double);
36         double calcSigleSSWithin(vector<int>);
37         double calcBValue(map<string, vector<int> >, vector<double>&);
38         map<string, vector<int> > getRandomizedGroups(map<string, vector<int> >);
39
40         bool abort;
41         vector<string> outputNames;
42
43         string outputDir, inputDir, designFileName, phylipFileName;
44         GroupMap* designMap;
45         vector< vector<double> > distanceMatrix;
46         int iters;
47         double experimentwiseAlpha;
48 };
49
50 #endif