Skip to content
Snippets Groups Projects
Commit 8e85251e authored by arq5x's avatar arq5x
Browse files

[BUG] fix extra TAB at EOL in the annotate tool.

parent 4b5d122d
No related branches found
No related tags found
No related merge requests found
...@@ -189,11 +189,14 @@ void BedAnnotate::ReportAnnotations() { ...@@ -189,11 +189,14 @@ void BedAnnotate::ReportAnnotations() {
int nonZeroBases = (length - zeroDepthCount); int nonZeroBases = (length - zeroDepthCount);
float fractCovered = (float) nonZeroBases / length; float fractCovered = (float) nonZeroBases / length;
if (_reportCounts == false && _reportBoth == false) if (_reportCounts == false && _reportBoth == false)
printf("%f\t", fractCovered); printf("%f", fractCovered);
else if (_reportCounts == true && _reportBoth == false) else if (_reportCounts == true && _reportBoth == false)
printf("%d\t", bedItr->counts[i]); printf("%d", bedItr->counts[i]);
else if (_reportCounts == false && _reportBoth == true) 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. // print newline for next feature.
printf("\n"); printf("\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment