]> git.donarmstrong.com Git - mothur.git/blobdiff - matrixoutputcommand.h
added current as option is lists of file names, processors now outputted with current...
[mothur.git] / matrixoutputcommand.h
index ff7519ee00751dcad80ebdb9bc04e384f54cd45b..2871d5e31511572ad30fd9a19f28e50ae4c8bb67 100644 (file)
@@ -12,7 +12,6 @@
 #include "command.hpp"
 #include "inputdata.h"
 #include "groupmap.h"
-#include "readotu.h"
 #include "validcalculator.h"
 
 // aka. dist.shared()
        The user can select the labels they wish to use as well as the groups they would like included.
        They can also use as many or as few calculators as they wish. */
        
-class GlobalData;
 
 class MatrixOutputCommand : public Command {
        
 public:
-       MatrixOutputCommand(string);    
+       MatrixOutputCommand(string);
+       MatrixOutputCommand();  
        ~MatrixOutputCommand();
-       int execute();  
-       void help();
+       
+       vector<string> setParameters();
+       string getCommandName()                 { return "dist.shared";                         }
+       string getCommandCategory()             { return "OTU-Based Approaches";        }
+       string getHelpString(); 
+       
+       int execute(); 
+       void help() { m->mothurOut(getHelpString()); }  
        
 private:
        void printSims(ostream&);
-       void process(vector<SharedRAbundVector*>);
+       int process(vector<SharedRAbundVector*>);
        
-       GlobalData* globaldata;
-       ReadOTUFile* read;
        vector<Calculator*> matrixCalculators;
        vector< vector<float> > simMatrix;
        InputData* input;
-       ValidCalculators* validCalculator;
        vector<SharedRAbundVector*> lookup;
-       string exportFileName, output;
+       string exportFileName, output, sharedfile;
        int numGroups;
        ofstream out;
 
        bool abort, allLines;
        set<string> labels; //holds labels to be used
        string outputFile, calc, groups, label, outputDir;
-       vector<string>  Estimators, Groups; //holds estimators to be used
-       
-
+       vector<string>  Estimators, Groups, outputNames; //holds estimators to be used
 };