1 #ifndef MATRIXOUTPUTCOMMAND_H
2 #define MATRIXOUTPUTCOMMAND_H
5 * matrixoutputcommand.h
8 * Created by Sarah Westcott on 5/20/09.
9 * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved.
12 #include "command.hpp"
13 #include "inputdata.h"
16 #include "validcalculator.h"
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. */
26 class MatrixOutputCommand : public Command {
29 MatrixOutputCommand(string);
30 ~MatrixOutputCommand();
35 void printSims(ostream&);
36 void process(vector<SharedRAbundVector*>);
38 GlobalData* globaldata;
40 vector<Calculator*> matrixCalculators;
41 vector< vector<float> > simMatrix;
43 ValidCalculators* validCalculator;
44 vector<SharedRAbundVector*> lookup;
45 string exportFileName;
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