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

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