]> git.donarmstrong.com Git - mothur.git/blob - matrixoutputcommand.h
added pipeline commands which involved change to command factory and command class...
[mothur.git] / matrixoutputcommand.h
1 #ifndef MATRIXOUTPUTCOMMAND_H
2 #define MATRIXOUTPUTCOMMAND_H
3
4 /*
5  *  matrixoutputcommand.h
6  *  Mothur
7  *
8  *  Created by Sarah Westcott on 5/20/09.
9  *  Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
10  *
11  */ 
12 #include "command.hpp"
13 #include "inputdata.h"
14 #include "groupmap.h"
15 #include "readotu.h"
16 #include "validcalculator.h"
17
18 // aka. dist.shared()
19
20 /* This command create a tree file for each similarity calculator at distance level, using various calculators to find the similiarity between groups. 
21         The user can select the labels they wish to use as well as the groups they would like included.
22         They can also use as many or as few calculators as they wish. */
23         
24 class GlobalData;
25
26 class MatrixOutputCommand : public Command {
27         
28 public:
29         MatrixOutputCommand(string);
30         MatrixOutputCommand();  
31         ~MatrixOutputCommand();
32         vector<string> getRequiredParameters();
33         vector<string> getValidParameters();
34         vector<string> getRequiredFiles();
35         map<string, vector<string> > getOutputFiles() { return outputTypes; }
36         int execute();  
37         void help();
38         
39 private:
40         void printSims(ostream&);
41         int process(vector<SharedRAbundVector*>);
42         
43         GlobalData* globaldata;
44         ReadOTUFile* read;
45         vector<Calculator*> matrixCalculators;
46         vector< vector<float> > simMatrix;
47         InputData* input;
48         ValidCalculators* validCalculator;
49         vector<SharedRAbundVector*> lookup;
50         string exportFileName, output;
51         int numGroups;
52         ofstream out;
53
54         bool abort, allLines;
55         set<string> labels; //holds labels to be used
56         string outputFile, calc, groups, label, outputDir;
57         vector<string>  Estimators, Groups, outputNames; //holds estimators to be used
58         map<string, vector<string> > outputTypes;
59         
60
61 };
62         
63         
64 #endif
65