]> git.donarmstrong.com Git - mothur.git/blob - homovacommand.h
added citation function to commands
[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         string getCitation() { return "Stewart CN, Excoffier L (1996). Assessing population genetic structure and variability with RAPD data: Application to Vaccinium macrocarpon (American Cranberry). J Evol Biol 9: 153-71. http://www.mothur.org/wiki/Homova"; }
31         
32         int execute();
33         void help() { m->mothurOut(getHelpString()); }  
34         
35 private:
36         double runHOMOVA(ofstream& , map<string, vector<int> >, double);
37         double calcSigleSSWithin(vector<int>);
38         double calcBValue(map<string, vector<int> >, vector<double>&);
39         map<string, vector<int> > getRandomizedGroups(map<string, vector<int> >);
40
41         bool abort;
42         vector<string> outputNames;
43
44         string outputDir, inputDir, designFileName, phylipFileName;
45         GroupMap* designMap;
46         vector< vector<double> > distanceMatrix;
47         int iters;
48         double experimentwiseAlpha;
49 };
50
51 #endif