Skip to content

Commit

Permalink
Replace '/' in section name with '_' when writing data to file
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikDanielsson committed Aug 10, 2021
1 parent 83af6d0 commit e2d23a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion multiqc/modules/custom_content/custom_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,9 @@ def add_cc_section(self, c_id, mod):
pconfig["sortRows"] = pconfig.get("sortRows", False)
headers = mod["config"].get("headers")
plot = table.plot(mod["data"], headers, pconfig)
self.write_data_file(mod["data"], "multiqc_{}".format(section_name.lower().replace(" ", "_")))
self.write_data_file(
mod["data"], "multiqc_{}".format(section_name.lower().replace(" ", "_").replace("/", "_"))
)

# Bar plot
elif mod["config"].get("plot_type") == "bargraph":
Expand Down

0 comments on commit e2d23a0

Please sign in to comment.