diff --git a/src/annotateBed/annotateBed.cpp b/src/annotateBed/annotateBed.cpp index 40d7ef457944fb189b232fc7d8fe803d61754dfa..8b7e301ef3719a698813e3f94f02709a43e51040 100644 --- a/src/annotateBed/annotateBed.cpp +++ b/src/annotateBed/annotateBed.cpp @@ -189,11 +189,14 @@ void BedAnnotate::ReportAnnotations() { int nonZeroBases = (length - zeroDepthCount); float fractCovered = (float) nonZeroBases / length; if (_reportCounts == false && _reportBoth == false) - printf("%f\t", fractCovered); + printf("%f", fractCovered); else if (_reportCounts == true && _reportBoth == false) - printf("%d\t", bedItr->counts[i]); + printf("%d", bedItr->counts[i]); else if (_reportCounts == false && _reportBoth == true) - printf("%d\t%f\t", bedItr->counts[i], fractCovered); + printf("%d\t%f", bedItr->counts[i], fractCovered); + + if (i != _annoFiles.size() - 1) + printf("\t"); } // print newline for next feature. printf("\n");