X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurmetastats.cpp;fp=mothurmetastats.cpp;h=f6a7800c3697833eeb9160330671804f13633bfb;hb=499f4ac6e321f9f03d4c3aa25c3b6880892c8b83;hp=4715de9b7ac6d8c9f14e4fd4575906c433ae2808;hpb=a935b75dd890da5ae7f09e5e6179f90ab2955348;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;