From 40b3324ee4fcb80efb3459e78efbc3140d5e739a Mon Sep 17 00:00:00 2001
From: Kathryn Iverson <kd.iverson@gmail.com>
Date: Wed, 16 May 2012 13:54:52 -0400
Subject: [PATCH] updated output to include standard deviation

---
 cooccurrencecommand.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cooccurrencecommand.cpp b/cooccurrencecommand.cpp
index 6363f2a..aa553b4 100644
--- a/cooccurrencecommand.cpp
+++ b/cooccurrencecommand.cpp
@@ -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;
     }
-- 
2.39.5