X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=otuassociationcommand.cpp;fp=otuassociationcommand.cpp;h=0d41e63f3526bc9af4e3933d5f3337d62ebd0f2a;hb=4884e09a6f1f67f9a57aafcef82e248a1c633956;hp=eeefb41ffa9781aacad02a594cd4d61859631cb0;hpb=f55cf350ca6643f8eb070d8336e1957699a3f109;p=mothur.git diff --git a/otuassociationcommand.cpp b/otuassociationcommand.cpp index eeefb41..0d41e63 100644 --- a/otuassociationcommand.cpp +++ b/otuassociationcommand.cpp @@ -308,8 +308,7 @@ int OTUAssociationCommand::process(vector& lookup){ else if (method == "kendall") { coef = linear.calcKendall(xy[i], xy[k], sig); } else { m->mothurOut("[ERROR]: invalid method, choices are spearman, pearson or kendall."); m->mothurOutEndLine(); m->control_pressed = true; } - if (m->binLabelsInFile.size() != 0) { out << m->binLabelsInFile[i] << '\t' << m->binLabelsInFile[k] << '\t' << coef << '\t' << sig << endl; } - else { out << i+1 << '\t' << k+1 << '\t' << coef << '\t' << sig << endl; } + out << m->binLabelsInFile[i] << '\t' << m->binLabelsInFile[k] << '\t' << coef << '\t' << sig << endl; } } @@ -437,8 +436,7 @@ int OTUAssociationCommand::process(vector& lookup){ else if (method == "kendall") { coef = linear.calcKendall(xy[i], xy[k], sig); } else { m->mothurOut("[ERROR]: invalid method, choices are spearman, pearson or kendall."); m->mothurOutEndLine(); m->control_pressed = true; } - if (m->binLabelsInFile.size() != 0) { out << m->binLabelsInFile[i] << '\t' << m->binLabelsInFile[k] << '\t' << coef << '\t' << sig << endl; } - else { out << i+1 << '\t' << k+1 << '\t' << coef << '\t' << sig << endl; } + out << m->binLabelsInFile[i] << '\t' << m->binLabelsInFile[k] << '\t' << coef << '\t' << sig << endl; } }