for (int k = 0; k < i; k++) {
if (m->control_pressed) { out.close(); return 0; }
-
- /*cout << m->binLabelsInFile[i] << " <- c(" << xy[i][0];
- for (int l = 1; l < xy[i].size(); l++){
- cout << ", " << xy[i][l];
- }
- cout << ")\n";
-
- cout << m->binLabelsInFile[k] << " <- c(" << xy[k][0];
- for (int l = 1; l < xy[k].size(); l++){
- cout << ", " << xy[k][l];
- }
- cout << ")\n";*/
double coef = 0.0;
double sig = 0.0;
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; }
- out << m->binLabelsInFile[i] << '\t' << m->binLabelsInFile[k] << '\t' << coef << '\t' << sig << endl;
+ out << m->binLabelsInFile[i] << '\t' << m->binLabelsInFile[k] << '\t' << coef << '\t' << sig << endl;
}
}
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; }
- out << m->binLabelsInFile[i] << '\t' << m->binLabelsInFile[k] << coef << '\t' << sig << endl;
+ out << m->binLabelsInFile[i] << '\t' << m->binLabelsInFile[k] << '\t' << coef << '\t' << sig << endl;
}
}