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