]> git.donarmstrong.com Git - mothur.git/blob - pcoacommand.h
added command descriptions
[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         string getHelpString(); 
29         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"; }
30         string getDescription()         { return "pcoa"; }
31
32         int execute();
33         void help() { m->mothurOut(getHelpString()); }
34         
35 private:
36
37         bool abort, metric;
38         string phylipfile, filename, fbase, outputDir;
39         vector<string> outputNames;
40         LinearAlgebra linearCalc;
41         
42         void get_comment(istream&, char, char);
43         void output(string, vector<string>, vector<vector<double> >&, vector<double>);
44         
45 };
46         
47 /*****************************************************************/
48         
49 #endif
50