X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracunweightedcommand.cpp;h=fbbc4f1de67cebeb1b9e57a4dce47f499e272f63;hb=edad2fa8defaa6856b3606a215bf64b91340eeb4;hp=ccd5aa4995392ab9f306fa986f6fc8169e08903a;hpb=c69e2e9749626cfbf1d6cb0125ae94f869e00b18;p=mothur.git diff --git a/unifracunweightedcommand.cpp b/unifracunweightedcommand.cpp index ccd5aa4..fbbc4f1 100644 --- a/unifracunweightedcommand.cpp +++ b/unifracunweightedcommand.cpp @@ -198,6 +198,8 @@ int UnifracUnweightedCommand::execute() { randomData.resize(numComp,0); //data[0] = unweightedscore //create new tree with same num nodes and leaves as users + if (numComp < processors) { processors = numComp; } + outSum << "Tree#" << '\t' << "Groups" << '\t' << "UWScore" <<'\t' << "UWSig" << endl; m->mothurOut("Tree#\tGroups\tUWScore\tUWSig"); m->mothurOutEndLine(); @@ -259,7 +261,7 @@ int UnifracUnweightedCommand::execute() { } //report progress - m->mothurOut("Iter: " + toString(j+1)); m->mothurOutEndLine(); +// m->mothurOut("Iter: " + toString(j+1)); m->mothurOutEndLine(); } for(int a = 0; a < numComp; a++) { @@ -430,7 +432,7 @@ void UnifracUnweightedCommand::createPhylipFile(int i) { out << name << '\t'; //output distances - for (int l = 0; l < globaldata->Groups.size(); l++) { out << dists[r][l] << '\t'; } + for (int l = 0; l < globaldata->Groups.size(); l++) { out << setprecision(11) << dists[r][l] << '\t'; } out << endl; }else{ //output distances