feat: nicer syntax (#1286)

* feat: nicer syntax

* feat: code polishing

* feat: code polishing
This commit is contained in:
Maxime U. Garcia 2022-02-11 16:07:52 +01:00 committed by GitHub
parent d1f33be04f
commit fafae11068
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,10 +29,11 @@ process MANTA_GERMLINE {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def input_files = input.collect{"--bam ${it}"}.join(' ')
def options_manta = target_bed ? "--callRegions $target_bed" : ""
"""
configManta.py \
--bam ${input.join(' --bam ')} \
${input_files} \
--reference $fasta \
--runDir manta \
$options_manta \