From: westcott <westcott>
Date: Mon, 9 Mar 2009 12:42:42 +0000 (+0000)
Subject: fixed outputs in unifrac to look the same
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ebf7937893f84c4cb4549a29afe16fed3710a67b;p=mothur.git

fixed outputs in unifrac to look the same
---

diff --git a/unifracunweightedcommand.cpp b/unifracunweightedcommand.cpp
index dd1a3f9..b5e5926 100644
--- a/unifracunweightedcommand.cpp
+++ b/unifracunweightedcommand.cpp
@@ -40,20 +40,19 @@ int UnifracUnweightedCommand::execute() {
 		userData.resize(numComp,0);  //data[0] = unweightedscore 
 		randomData.resize(numComp,0); //data[0] = unweightedscore
 		//create new tree with same num nodes and leaves as users
-				
+		
+		outSum << "Tree#" << '\t' << "Groups" << '\t'  <<  "UWScore" <<'\t' << "UWSig" <<  endl;
+		cout << "Tree#" << '\t' << "Groups" << '\t'  <<  "UWScore" << '\t' << "UWSig" <<  endl;
+		
 		//get pscores for users trees
 		for (int i = 0; i < T.size(); i++) {
 			counter = 0;
 			unweightedFile = globaldata->getTreeFile()  + toString(i+1) + ".unweighted";
 			unweightedFileout = globaldata->getTreeFile() + "temp." + toString(i+1) + ".unweighted";
 			
-			//column headers
-//			outSum << "Tree# " << i+1 << endl;
-			outSum << "Tree#" << '\t' << "Groups" << '\t'  <<  "UWScore" <<'\t' << "UWSig" <<  endl;
-//			cout << "Tree# " << i+1 << endl;
-			cout << "Tree#" << '\t' << "Groups" << '\t'  <<  "UWScore" << '\t' << "UWSig" <<  endl;
-
-
+			outSum << i+1 << '\t';
+			cout << i+1 << '\t';
+			
 			//get unweighted for users tree
 			rscoreFreq.resize(numComp);  
 			rCumul.resize(numComp);