]> git.donarmstrong.com Git - mothur.git/blob - otuassociationcommand.h
added metadata parameter to otu.association
[mothur.git] / otuassociationcommand.h
1 #ifndef OTUASSOCIATIONCOMMAND_H
2 #define OTUASSOCIATIONCOMMAND_H
3
4 /*
5  *  otuassociationcommand.h
6  *  Mothur
7  *
8  *  Created by westcott on 1/19/12.
9  *  Copyright 2012 Schloss Lab. All rights reserved.
10  *
11  */
12
13
14 #include "command.hpp"
15 #include "sharedrabundfloatvector.h"
16 #include "inputdata.h"
17
18
19 class OTUAssociationCommand : public Command {
20 public:
21         OTUAssociationCommand(string);
22         OTUAssociationCommand();
23         ~OTUAssociationCommand(){}
24         
25         vector<string> setParameters();
26         string getCommandName()                 { return "otu.association";                     }
27         string getCommandCategory()             { return "Hypothesis Testing";          }
28         string getHelpString(); 
29         string getCitation() { return "http://www.mothur.org/wiki/Otu.association"; }
30         string getDescription()         { return "calculate the correlation coefficient for the otus in a shared/relabund file"; }
31         
32         int execute();
33         void help() { m->mothurOut(getHelpString()); }  
34 private:
35         
36         string sharedfile, relabundfile, metadatafile, groups, label, inputFileName, outputDir, method;
37         bool abort, pickedGroups, allLines;
38         set<string> labels;
39     vector<SharedRAbundFloatVector*> metadataLookup;
40     vector< vector< double> > metadata;
41         
42         vector<string> outputNames, Groups, metadataLabels;
43         int processShared();
44         int process(vector<SharedRAbundVector*>&);
45         int processRelabund();
46         int process(vector<SharedRAbundFloatVector*>&);
47     int readMetadata();
48     int getMetadata();
49         
50 };
51
52
53 #endif
54
55
56