bismark/report: allow missing input data (#400)

* bismark/report: allow missing data

* bismark/summary: improve matching of process output
This commit is contained in:
Patrick Hüther 2021-04-06 11:59:00 +02:00 committed by GitHub
parent 4a1571317d
commit 6c70d65ae6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 9 deletions

View file

@ -22,17 +22,13 @@ process BISMARK_REPORT {
tuple val(meta), path(align_report), path(dedup_report), path(splitting_report), path(mbias)
output:
tuple val(meta), path("*{html,txt}"), emit: report
tuple val(meta), path("*report.{html,txt}"), emit: report
path "*.version.txt" , emit: version
script:
def software = getSoftwareName(task.process)
"""
bismark2report \\
--alignment_report $align_report \\
--dedup_report $dedup_report \\
--splitting_report $splitting_report \\
--mbias_report $mbias
bismark2report $options.args
echo \$(bismark -v 2>&1) | sed 's/^.*Bismark Version: v//; s/Copyright.*\$//' > ${software}.version.txt
"""

View file

@ -25,7 +25,7 @@ process BISMARK_SUMMARY {
path(mbias)
output:
path("*{html,txt}") , emit: summary
path "*report.{html,txt}", emit: summary
path "*.version.txt" , emit: version
script: