Add function to enable output of mpileup

Co-authored-by: Harshil Patel <drpatelh@users.noreply.github.com>
This commit is contained in:
Anders Goncalves da Silva 2021-02-10 10:02:06 -08:00 committed by GitHub
parent 06770d5f02
commit e9aa037e7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,8 +28,9 @@ process IVAR_CONSENSUS {
path "*.version.txt" , emit: version path "*.version.txt" , emit: version
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.save_mpileup ? "tee ${prefix}.mpileup |" : ""
""" """
samtools mpileup \\ samtools mpileup \\
-aa -A -d 0 -Q 0 \\ -aa -A -d 0 -Q 0 \\