X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cooccurrencecommand.cpp;h=881e2f39dcd9c2fa104953a1712c04575b19278f;hb=b8a1ac74d3d4f9cd53f2a98cc6ea95f50860044b;hp=ef8c9eddce64e93092df8ed1031b37684f09fe38;hpb=16f9c4ab6f39769856b13e048eae2c8eaa413c02;p=mothur.git diff --git a/cooccurrencecommand.cpp b/cooccurrencecommand.cpp index ef8c9ed..881e2f3 100644 --- a/cooccurrencecommand.cpp +++ b/cooccurrencecommand.cpp @@ -200,7 +200,7 @@ int CooccurrenceCommand::execute(){ m->openOutputFile(outputFileName, out); outputNames.push_back(outputFileName); outputTypes["summary"].push_back(outputFileName); out.setf(ios::fixed, ios::floatfield); out.setf(ios::showpoint); - out << "metric\tlabel\tScore\tzScore\tstandardDeviation\n"; + out << "metric\tlabel\tScore\tzScore\tstandardDeviation\tnp_Pvalue\n"; //as long as you are not at the end of the file or done wih the lines you want while((lookup[0] != NULL) && ((allLines == 1) || (userLabels.size() != 0))) { @@ -569,7 +569,8 @@ int CooccurrenceCommand::getCooccurrence(vector& thisLookUp m->mothurOut("zscore: " + toString(zscore)); m->mothurOutEndLine(); m->mothurOut("standard deviation: " + toString(sd)); m->mothurOutEndLine(); - out << metric << '\t' << thisLookUp[0]->getLabel() << '\t' << nullMean << '\t' << zscore << '\t' << sd << endl; + m->mothurOut("non-parametric p-value: " + toString(pvalue)); m->mothurOutEndLine(); + out << metric << '\t' << thisLookUp[0]->getLabel() << '\t' << nullMean << '\t' << zscore << '\t' << sd << '\t' << pvalue << endl; return 0; }