]> git.donarmstrong.com Git - mothur.git/blob - pcoacommand.h
working on pam
[mothur.git] / pcoacommand.h
1 #ifndef PCOACOMMAND_H
2 #define PCOACOMMAND_H
3
4 /*
5  *  pcoacommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 1/4/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12  
13 #include "command.hpp"
14 #include "linearalgebra.h"
15
16
17 /*****************************************************************/
18 class PCOACommand : public Command {
19         
20 public:
21         PCOACommand(string);    
22         PCOACommand();
23         ~PCOACommand(){}
24         
25         vector<string> setParameters();
26         string getCommandName()                 { return "pcoa";                                        }
27         string getCommandCategory()             { return "Hypothesis Testing";          }
28         
29         string getHelpString(); 
30     string getOutputPattern(string);    
31         string getCitation() { return "McCune B, Grace JB, Urban DL (2002). Analysis of ecological communities. MjM Software Design: Gleneden Beach, OR. \nLegendre P, Legendre L (1998). Numerical Ecology. Elsevier: New York. \nhttp://www.mothur.org/wiki/Pcoa"; }
32         string getDescription()         { return "pcoa"; }
33
34         int execute();
35         void help() { m->mothurOut(getHelpString()); }
36         
37 private:
38
39         bool abort, metric;
40         string phylipfile, filename, fbase, outputDir;
41         vector<string> outputNames;
42         LinearAlgebra linearCalc;
43         
44         void get_comment(istream&, char, char);
45         void output(string, vector<string>, vector<vector<double> >&, vector<double>);
46         
47 };
48         
49 /*****************************************************************/
50         
51 #endif
52