From da0d5e40972ee044776b84fe98e544e331c0cb78 Mon Sep 17 00:00:00 2001 From: Guillaume Poirier-Morency Date: Fri, 7 Jun 2024 12:13:17 -0700 Subject: [PATCH] multiqc: Add support for --sample-names --- bioluigi/tasks/multiqc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bioluigi/tasks/multiqc.py b/bioluigi/tasks/multiqc.py index 543fdd6..bf5983c 100644 --- a/bioluigi/tasks/multiqc.py +++ b/bioluigi/tasks/multiqc.py @@ -14,6 +14,8 @@ class GenerateReport(ScheduledExternalProgramTask): input_dirs = luigi.ListParameter() output_dir = luigi.Parameter() + sample_names = luigi.OptionalParameter(default=None, positional=False) + title = luigi.OptionalParameter(default=None, positional=False) comment = luigi.OptionalParameter(default=None, positional=False) @@ -21,6 +23,8 @@ class GenerateReport(ScheduledExternalProgramTask): def program_args(self): args = [cfg.multiqc_bin, '--outdir', self.output_dir] + if self.sample_names: + args.extend(['--sample-names', self.sample_names]) if self.title is not None: args.extend(['--title', self.title]) if self.comment is not None: