Skip to content

Commit

Permalink
multiqc: Add support for --sample-names
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Jun 7, 2024
1 parent ba9f9d0 commit da0d5e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bioluigi/tasks/multiqc.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ 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)

force = luigi.BoolParameter(default=False, positional=False)

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:
Expand Down

0 comments on commit da0d5e4

Please sign in to comment.