Skip to content

Commit c03ee41

Browse files
betteridiotdaviesrob
authored andcommitted
Maintaing stats output format
Changed the first comment line to maintain output similar to that produced by samtools stats. Fixes bug where the sanity check in parse_bamcheck1 would fail to detect the merged stats output as a valid file. Closes samtools#924
1 parent f9a74b8 commit c03ee41

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

misc/plot-bamstats

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,7 @@ sub merge_bamcheck
11841184
open($fh,'>',"$$opts{prefix}merge.bchk") or error("$$opts{prefix}merge.bchk: $!\n");
11851185
}
11861186

1187-
print $fh "# This file was produced by plot-bamstats, the command line was:\n# $$opts{args}\n#\n";
1187+
print $fh "# This file was produced by plot-bamstats and can be plotted using plot-bamstats\n# The command line was $$opts{args}\n";
11881188

11891189
for my $sec (@{$$opts{sections}})
11901190
{
@@ -1401,6 +1401,3 @@ sub create_html
14011401

14021402
close($fh);
14031403
}
1404-
1405-
1406-

0 commit comments

Comments
 (0)