mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
bismark/report: allow missing input data (#400)
* bismark/report: allow missing data * bismark/summary: improve matching of process output
This commit is contained in:
parent
4a1571317d
commit
6c70d65ae6
2 changed files with 5 additions and 9 deletions
|
@ -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
|
||||
path "*.version.txt" , emit: version
|
||||
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
|
||||
"""
|
||||
|
|
|
@ -25,8 +25,8 @@ process BISMARK_SUMMARY {
|
|||
path(mbias)
|
||||
|
||||
output:
|
||||
path("*{html,txt}") , emit: summary
|
||||
path "*.version.txt", emit: version
|
||||
path "*report.{html,txt}", emit: summary
|
||||
path "*.version.txt" , emit: version
|
||||
|
||||
script:
|
||||
def software = getSoftwareName(task.process)
|
||||
|
|
Loading…
Reference in a new issue