mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-13 05:13:09 +00:00
Add options to make samtools more flexible
This commit is contained in:
parent
8b3c16a518
commit
bfc13d3379
1 changed files with 12 additions and 3 deletions
|
@ -31,11 +31,20 @@ process IVAR_CONSENSUS {
|
||||||
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 |" : ""
|
def save_mpileup = options.save_mpileup ? "tee ${prefix}.mpileup |" : ""
|
||||||
|
def min_bq = options.min_bq ? "-Q ${options.min_bq}" : "-Q 0"
|
||||||
|
def max_depth = options.max_depth ? "-d ${options.max_depth}" : "-d 0"
|
||||||
|
def count_orphans = options.count_orphans ? "-A" : ""
|
||||||
|
def disable_baq = options.disable_baq ? "-B" : ""
|
||||||
|
def output_all_bases = options.output_all_bases ? "-aa" : ""
|
||||||
"""
|
"""
|
||||||
samtools mpileup \\
|
samtools mpileup \\
|
||||||
--fasta-ref $fasta
|
--fasta-ref $fasta \\
|
||||||
-aa -A -d 0 -Q 0 \\
|
$output_all_bases \\
|
||||||
|
$count_orphans \\
|
||||||
|
$disable_baq \\
|
||||||
|
$max_depth \\
|
||||||
|
$min_bq \\
|
||||||
$options.args2 \\
|
$options.args2 \\
|
||||||
$bam | \\
|
$bam | \\
|
||||||
$save_mpileup \\
|
$save_mpileup \\
|
||||||
|
|
Loading…
Reference in a new issue