1 #ifndef HOMOVACOMMAND_H
2 #define HOMOVACOMMAND_H
8 * Created by westcott on 2/8/11.
9 * Copyright 2011 Schloss Lab. All rights reserved.
14 #include "command.hpp"
19 class HomovaCommand : public Command {
22 HomovaCommand(string);
26 vector<string> setParameters();
27 string getCommandName() { return "homova"; }
28 string getCommandCategory() { return "Hypothesis Testing"; }
29 string getOutputFileNameTag(string, string);
30 string getHelpString();
31 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. \nhttp://www.mothur.org/wiki/Homova"; }
32 string getDescription() { return "homova"; }
35 void help() { m->mothurOut(getHelpString()); }
38 double runHOMOVA(ofstream& , map<string, vector<int> >, double);
39 double calcSigleSSWithin(vector<int>);
40 double calcBValue(map<string, vector<int> >, vector<double>&);
41 map<string, vector<int> > getRandomizedGroups(map<string, vector<int> >);
44 vector<string> outputNames;
46 string outputDir, inputDir, designFileName, phylipFileName;
48 vector< vector<double> > distanceMatrix;
50 double experimentwiseAlpha;