X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=summarysharedcommand.h;h=7a2a1909368fc9c71edbcbc90add7d3a966ac95d;hp=99ed5d039c9e95e6404731d092b81c2f824a0309;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=2009a1a1f47e7467094d844e7c07ab8ddf7bb447 diff --git a/summarysharedcommand.h b/summarysharedcommand.h index 99ed5d0..7a2a190 100644 --- a/summarysharedcommand.h +++ b/summarysharedcommand.h @@ -56,6 +56,8 @@ #include "memchord.h" #include "memeuclidean.h" #include "mempearson.h" +#include "sharedjsd.h" +#include "sharedrjsd.h" class SummarySharedCommand : public Command { @@ -67,7 +69,9 @@ public: vector setParameters(); string getCommandName() { return "summary.shared"; } string getCommandCategory() { return "OTU-Based Approaches"; } + string getHelpString(); + string getOutputPattern(string); string getCitation() { return "http://www.mothur.org/wiki/Summary.shared"; } string getDescription() { return "generate a summary file containing calculator values for each line in the OTU data and for all possible comparisons between groups"; } @@ -110,6 +114,7 @@ struct summarySharedData { unsigned long long end; MothurOut* m; string sumFile; + int count; summarySharedData(){} summarySharedData(string sf, MothurOut* mout, unsigned long long st, unsigned long long en, vector est, vector lu) { @@ -119,6 +124,7 @@ struct summarySharedData { end = en; Estimators = est; thisLookup = lu; + count=0; } }; /**************************************************************************************************/ @@ -212,6 +218,10 @@ static DWORD WINAPI MySummarySharedThreadFunction(LPVOID lpParam){ sumCalculators.push_back(new MemEuclidean()); }else if (pDataArray->Estimators[i] == "mempearson") { sumCalculators.push_back(new MemPearson()); + }else if (pDataArray->Estimators[i] == "jsd") { + sumCalculators.push_back(new JSD()); + }else if (pDataArray->Estimators[i] == "rjsd") { + sumCalculators.push_back(new RJSD()); } } } @@ -223,7 +233,7 @@ static DWORD WINAPI MySummarySharedThreadFunction(LPVOID lpParam){ vector subset; for (int k = pDataArray->start; k < pDataArray->end; k++) { // pass cdd each set of groups to compare - + pDataArray->count++; for (int l = 0; l < k; l++) { outputFileHandle << pDataArray->thisLookup[0]->getLabel() << '\t';