X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=matrixoutputcommand.h;h=ae38b46c5c1d60a1c6c97b5a618f1eca8d59a417;hb=8c8acb6218f58f662466e4111ab8aa4da0caf93c;hp=2c403aa1570895546ea1cbeb8e6c2e46d406c7e3;hpb=e150b0b0664caec517485ee6d69dcdade6dcae77;p=mothur.git diff --git a/matrixoutputcommand.h b/matrixoutputcommand.h index 2c403aa..ae38b46 100644 --- a/matrixoutputcommand.h +++ b/matrixoutputcommand.h @@ -33,26 +33,37 @@ public: string getCommandCategory() { return "OTU-Based Approaches"; } string getHelpString(); string getCitation() { return "http://www.mothur.org/wiki/Dist.shared"; } + string getDescription() { return "generate a distance matrix that describes the dissimilarity among multiple groups"; } + int execute(); void help() { m->mothurOut(getHelpString()); } private: - void printSims(ostream&); + struct linePair { + int start; + int end; + }; + vector lines; + + void printSims(ostream&, vector< vector >&); int process(vector); vector matrixCalculators; - vector< vector > simMatrix; + //vector< vector > simMatrix; InputData* input; vector lookup; string exportFileName, output, sharedfile; - int numGroups; + int numGroups, processors; ofstream out; bool abort, allLines; set labels; //holds labels to be used string outputFile, calc, groups, label, outputDir; vector Estimators, Groups, outputNames; //holds estimators to be used + int process(vector, string, string); + int driver(vector, int, int, vector< vector >&); + };