]> git.donarmstrong.com Git - mothur.git/blob - matrixoutputcommand.h
merged pat's trim seqs edits with sarah's major overhaul of global data; also added...
[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 lines or 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         int execute();  
32         void help();
33         
34 private:
35         void printSims(ostream&);
36         void process(vector<SharedRAbundVector*>);
37         
38         GlobalData* globaldata;
39         ReadOTUFile* read;
40         vector<Calculator*> matrixCalculators;
41         vector< vector<float> > simMatrix;
42         InputData* input;
43         ValidCalculators* validCalculator;
44         vector<SharedRAbundVector*> lookup;
45         string exportFileName;
46         int numGroups;
47         ofstream out;
48
49         bool abort, allLines;
50         set<int> lines; //hold lines to be used
51         set<string> labels; //holds labels to be used
52         string outputFile, calc, groups, line, label;
53         vector<string>  Estimators, Groups; //holds estimators to be used
54         
55
56 };
57         
58         
59 #endif
60