]> git.donarmstrong.com Git - mothur.git/blobdiff - cooccurrencecommand.cpp
updated output to include standard deviation
[mothur.git] / cooccurrencecommand.cpp
index 6363f2a0bafec54c478317a6b33b44b336f95b2a..aa553b4903c10cecc582bd33dab6a130f25e4787 100644 (file)
@@ -180,7 +180,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\n";
+        out << "metric\tlabel\tScore\tzScore\tstandardDeviation\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))) {
@@ -543,7 +543,7 @@ int CooccurrenceCommand::getCooccurrence(vector<SharedRAbundVector*>& 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 << endl;
+        out << metric << '\t' << thisLookUp[0]->getLabel() << '\t' << nullMean << '\t' << zscore '\t' << sd << endl;
         
         return 0;
     }