X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurmetastats.cpp;h=f6a7800c3697833eeb9160330671804f13633bfb;hb=250e3b11b1c9c1e1ad458ab6c7e71ac2e67e11d9;hp=4715de9b7ac6d8c9f14e4fd4575906c433ae2808;hpb=875ab4b2eec77b920e9fa0042f9a2aae2faff2b0;p=mothur.git diff --git a/mothurmetastats.cpp b/mothurmetastats.cpp index 4715de9..f6a7800 100644 --- a/mothurmetastats.cpp +++ b/mothurmetastats.cpp @@ -229,7 +229,7 @@ int MothurMetastats::runMetastats(string outputFileName, vector< vector if (m->control_pressed) { out.close(); return 0; } //if there are binlabels use them otherwise count. - if (m->binLabelsInFile.size() == row) { out << m->binLabelsInFile[i] << '\t'; } + if (i < m->currentSharedBinLabels.size()) { out << m->currentSharedBinLabels[i] << '\t'; } else { out << (i+1) << '\t'; } out << C1[i][0] << '\t' << C1[i][1] << '\t' << C1[i][2] << '\t' << C2[i][0] << '\t' << C2[i][1] << '\t' << C2[i][2] << '\t' << pvalues[i] << '\t' << qvalues[i] << endl;