]> git.donarmstrong.com Git - mothur.git/blob - matrixoutputcommand.h
removed read.dist, read.otu, read.tree and globaldata. added current to defaults...
[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 "validcalculator.h"
16
17 // aka. dist.shared()
18
19 /* This command create a tree file for each similarity calculator at distance level, using various calculators to find the similiarity between groups. 
20         The user can select the labels they wish to use as well as the groups they would like included.
21         They can also use as many or as few calculators as they wish. */
22         
23
24 class MatrixOutputCommand : public Command {
25         
26 public:
27         MatrixOutputCommand(string);
28         MatrixOutputCommand();  
29         ~MatrixOutputCommand();
30         
31         vector<string> setParameters();
32         string getCommandName()                 { return "dist.shared";                         }
33         string getCommandCategory()             { return "OTU-Based Approaches";        }
34         string getHelpString(); 
35         
36         int execute(); 
37         void help() { m->mothurOut(getHelpString()); }  
38         
39 private:
40         void printSims(ostream&);
41         int process(vector<SharedRAbundVector*>);
42         
43         vector<Calculator*> matrixCalculators;
44         vector< vector<float> > simMatrix;
45         InputData* input;
46         ValidCalculators* validCalculator;
47         vector<SharedRAbundVector*> lookup;
48         string exportFileName, output, sharedfile;
49         int numGroups;
50         ofstream out;
51
52         bool abort, allLines;
53         set<string> labels; //holds labels to be used
54         string outputFile, calc, groups, label, outputDir;
55         vector<string>  Estimators, Groups, outputNames; //holds estimators to be used
56 };
57         
58         
59 #endif
60