]> git.donarmstrong.com Git - mothur.git/blob - matrixoutputcommand.h
added smart distance feature and optimized all commands using line by line processing
[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 /* This command create a tree file for each similarity calculator at distance level, using various calculators to find the similiarity between groups. 
19         The user can select the lines or labels they wish to use as well as the groups they would like included.
20         They can also use as many or as few calculators as they wish. */
21         
22 class GlobalData;
23
24 class MatrixOutputCommand : public Command {
25         
26 public:
27         MatrixOutputCommand();  
28         ~MatrixOutputCommand();
29         int execute();  
30         
31 private:
32         void printSims(ostream&);
33         void process(vector<SharedRAbundVector*>);
34         
35         GlobalData* globaldata;
36         ReadOTUFile* read;
37         vector<Calculator*> matrixCalculators;
38         vector< vector<float> > simMatrix;
39         InputData* input;
40         ValidCalculators* validCalculator;
41         vector<SharedRAbundVector*> lookup;
42         string exportFileName;
43         int numGroups;
44         ofstream out;
45         
46
47 };
48         
49         
50 #endif
51