X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracunweightedcommand.cpp;h=fbbc4f1de67cebeb1b9e57a4dce47f499e272f63;hb=edad2fa8defaa6856b3606a215bf64b91340eeb4;hp=634bf0caff8d279e259c64fb76f28737aaaa8219;hpb=0486bc2eed084ac387d2f59b6d23d13b2382daf7;p=mothur.git diff --git a/unifracunweightedcommand.cpp b/unifracunweightedcommand.cpp index 634bf0c..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(); @@ -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