From dcce431d51f18b73ed53551522a74a7d4256058b Mon Sep 17 00:00:00 2001 From: Annick Renevey <47788523+rannick@users.noreply.github.com> Date: Mon, 24 Jan 2022 10:28:55 +0100 Subject: [PATCH] Peddy update: delete png and add stub (#1180) * delete png and add stub * optional png file generation Co-authored-by: Chris Cheshire --- modules/peddy/main.nf | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/modules/peddy/main.nf b/modules/peddy/main.nf index d64c3762..1aa02a4f 100644 --- a/modules/peddy/main.nf +++ b/modules/peddy/main.nf @@ -15,7 +15,7 @@ process PEDDY { tuple val(meta), path("*.html") , emit: html tuple val(meta), path("*.csv") , emit: csv tuple val(meta), path("*.peddy.ped"), emit: ped - tuple val(meta), path("*.png") , emit: png + tuple val(meta), path("*.png") , optional: true, emit: png path "versions.yml" , emit: versions script: @@ -34,4 +34,17 @@ process PEDDY { peddy: \$( peddy --version 2>&1 | sed 's/peddy, version //' ) END_VERSIONS """ + + stub: + """ + filename=\$(basename $vcf) + touch \$filename.ped_check.csv + touch \$filename.vs.html + touch \$filename.het_check.csv + touch \$filename.sex_check.csv + touch \$filename.peddy.ped + touch \$filename.html + + touch versions.yml + """ }