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