Peddy update: delete png and add stub (#1180)

* delete png and add stub

* optional png file generation

Co-authored-by: Chris Cheshire <chris.j.cheshire@gmail.com>
This commit is contained in:
Annick Renevey 2022-01-24 10:28:55 +01:00 committed by GitHub
parent 550df3b006
commit dcce431d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
"""
}