add prefix

This commit is contained in:
SusiJo 2022-05-24 14:20:19 +02:00
parent 5db94ea0ee
commit 749edce069

View file

@ -21,6 +21,7 @@ process CNVKIT_REFERENCE {
script: script:
def args = task.ext.args ?: '' def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
""" """
cnvkit.py \\ cnvkit.py \\
@ -28,7 +29,7 @@ process CNVKIT_REFERENCE {
--fasta $fasta \\ --fasta $fasta \\
--targets $targets \\ --targets $targets \\
--antitargets $antitargets \\ --antitargets $antitargets \\
--output reference.cnn \\ --output ${prefix}.reference.cnn \\
$args $args
cat <<-END_VERSIONS > versions.yml cat <<-END_VERSIONS > versions.yml