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

@ -30,6 +30,7 @@ process IVAR_CONSENSUS {
script:
def software = getSoftwareName(task.process)
def prefix = options.suffix ? "${meta.id}${options.suffix}" : "${meta.id}"
def save_mpileup = params.save_mpileup ? "tee ${prefix}.mpileup |" : ""
"""
samtools mpileup \\
-aa -A -d 0 -Q 0 \\