]> git.donarmstrong.com Git - mothur.git/blob - cooccurrencecommand.h
Revert to previous commit
[mothur.git] / cooccurrencecommand.h
1 #ifndef COOCCURRENCECOMMAND_H
2 #define COOCCURRENCECOMMAND_H
3
4 /*
5  *  COOCCURRENCE.h
6  *  Mothur
7  *
8  *  Created by westcott on 11/10/10.
9  *  Copyright 2010 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "command.hpp"
15 #include "trialswap2.h"
16 #include "inputdata.h"
17 #include "sharedrabundvector.h"
18
19
20 class CooccurrenceCommand : public Command {
21         
22 public:
23         
24         CooccurrenceCommand(string);    
25         CooccurrenceCommand();
26         ~CooccurrenceCommand(){}
27         
28         vector<string> setParameters();
29         string getCommandName()                 { return "Cooccurrence";                        }
30         string getCommandCategory()             { return "Hypothesis Testing";  }
31         string getHelpString(); 
32         string getCitation() { return "http://www.mothur.org/wiki/Cooccurrence"; }
33         string getDescription()         { return "calculates four metrics and tests their significance to assess whether presence-absence patterns are different than what one would expect by chance."; }
34         
35         int execute(); 
36         void help() { m->mothurOut(getHelpString()); }  
37         
38         
39 private:
40     string metric, matrix, outputDir;
41     string label, sharedfile, groups;
42     bool abort, allLines;
43     set<string> labels;
44     vector<string> outputNames, Groups;
45     int runs;
46     
47     int getCooccurrence(vector<SharedRAbundVector*>&, ofstream&);
48         
49 };
50
51 #endif
52
53