Skip to content

Commit

Permalink
Account for filename if provided
Browse files Browse the repository at this point in the history
  • Loading branch information
aanil committed Jul 17, 2024
1 parent 152893f commit a297923
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions multiqc_ngi/multiqc_ngi.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,13 @@ def get_ngi_project_metadata(self, pid):
infix = 'qc'
else:
infix = 'pipeline'
#If a filename is provided
if config.filename:
infix = f"{infix}_{config.filename}"
config.data_dir_name = f"{config.filename}_{config.data_dir_name}"
config.nondefault_config['data_dir_name'] = config.data_dir_name
config.plot_dir_name = f"{config.filename}_plots"
config.nondefault_config['plot_dir_name'] = config.plot_dir_name
config.output_fn_name = f"{p_summary['project_name']}_{infix}_{config.output_fn_name}"
config.data_dir_name = f"{p_summary['project_name']}_{config.data_dir_name}"
log.debug(f"Renaming report filename to '{config.output_fn_name}'")
Expand Down

0 comments on commit a297923

Please sign in to comment.