From ebf7937893f84c4cb4549a29afe16fed3710a67b Mon Sep 17 00:00:00 2001 From: westcott Date: Mon, 9 Mar 2009 12:42:42 +0000 Subject: [PATCH] fixed outputs in unifrac to look the same --- unifracunweightedcommand.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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); -- 2.39.5