X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurmetastats.cpp;fp=mothurmetastats.cpp;h=ae3ab802b2e4380c93655f2d6a6010beaf16f151;hb=d6c0a11d1cecfac18b323285e7ffadb7f58e848f;hp=ae822254c01ccdf7359ca319c44a2db5005f1fc4;hpb=731d19a6eaf81768ed35e4be25fbac5686a2a7a0;p=mothur.git diff --git a/mothurmetastats.cpp b/mothurmetastats.cpp index ae82225..ae3ab80 100644 --- a/mothurmetastats.cpp +++ b/mothurmetastats.cpp @@ -217,7 +217,7 @@ int MothurMetastats::runMetastats(string outputFileName, vector< vector if(qvalues[i] < threshold){ m->mothurOut("Feature " + toString((i+1)) + " is significant, q = "); cout << qvalues[i]; - m->mothurOutJustToLog(toString(pvalues[i])); m->mothurOutEndLine(); + m->mothurOutJustToLog(toString(qvalues[i])); m->mothurOutEndLine(); } } @@ -492,6 +492,12 @@ int MothurMetastats::calc_twosample_ts(vector& Pmatrix, int secondGroupi vector MothurMetastats::calc_qvalues(vector& pValues) { try { + /* cout << "x <- c(" << pValues[0]; + for (int l = 1; l < pValues.size(); l++){ + cout << ", " << pValues[l]; + } + cout << ")\n";*/ + int numRows = pValues.size(); vector qvalues(numRows, 0.0);