diff vsnp_statistics.py @ 21:377c1a96aae9 draft

Uploaded
author greg
date Tue, 24 Aug 2021 12:32:50 +0000
parents 1becb6606626
children b34843f09f9f
line wrap: on
line diff
--- a/vsnp_statistics.py	Thu Aug 12 17:08:20 2021 +0000
+++ b/vsnp_statistics.py	Tue Aug 24 12:32:50 2021 +0000
@@ -110,7 +110,9 @@
                    'Total Reads', 'All Mapped Reads', 'Unmapped Reads', 'Unmapped Reads Percentage of Total',
                    'Reference with Coverage', 'Average Depth of Coverage', 'Good SNP Count']
     with open(output_file, "w") as outfh:
-        outfh.write("%s\n" % "\t".join(columns))
+        # Make sure the header starts with a # so
+        # MultiQC can properly handle the output.
+        outfh.write("# %s\n" % "\t".join(columns))
         line_items = []
         # Get the current stats and associated files.
         # Get and output the statistics.