+
+/***********************************************************************/
+void SharedRAbundVector::printHeaders(ostream& output){
+ try {
+
+ output << "label\tGroup\tnumOtus\t";
+ if (m->sharedHeaderMode == "tax") {
+ for (int i = 0; i < numBins; i++) {
+
+ //if there is a bin label use it otherwise make one
+ string binLabel = "PhyloType" + toString(i+1);
+ if (i < m->currentBinLabels.size()) { binLabel = m->currentBinLabels[i]; }
+
+ output << binLabel << '\t';
+ }
+ output << endl;
+ }else {
+ for (int i = 0; i < numBins; i++) {
+ //if there is a bin label use it otherwise make one
+ string mybinLabel = "Otu" + toString(i+1);
+ if (i < m->currentBinLabels.size()) { mybinLabel = m->currentBinLabels[i]; }
+
+ output << mybinLabel << '\t';
+ }
+
+ output << endl;
+ }
+ m->printedHeaders = true;
+ }
+ catch(exception& e) {
+ m->errorOut(e, "SharedRAbundVector", "printHeaders");
+ exit(1);
+ }
+}