Change ternary expressions back to traditional format

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
Anders Goncalves da Silva 2021-02-15 19:56:22 -08:00 committed by GitHub
parent 3188b8e30e
commit 26189f4132
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,10 +29,10 @@ process IVAR_VARIANTS {
path "*.version.txt" , emit: version
script:
def software = getSoftwareName(task.process)
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
def save_mpileup = params.containsKey('save_mpileup') ? "tee ${prefix}.mpileup |" : ""
def gff = params.containsKey('gff') ? "-g ${params.get('gff')}" : ""
def software = getSoftwareName(task.process)
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
def save_mpileup = params.save_mpileup ? "tee ${prefix}.mpileup |" : ""
def features = params.gff ? "-g $gff" : ""
"""
samtools mpileup \\
$options.args2 \\