]> git.donarmstrong.com Git - mothur.git/blobdiff - mothurmetastats.cpp
working on pam
[mothur.git] / mothurmetastats.cpp
index 4715de9b7ac6d8c9f14e4fd4575906c433ae2808..f6a7800c3697833eeb9160330671804f13633bfb 100644 (file)
@@ -229,7 +229,7 @@ int MothurMetastats::runMetastats(string outputFileName, vector< vector<double>
                        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;