mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08:17 +00:00
Standaridse parameters
This commit is contained in:
parent
7ffe98ac8b
commit
599b264280
1 changed files with 14 additions and 4 deletions
|
@ -8,9 +8,11 @@ process GATK_INDELREALIGNER {
|
|||
'quay.io/biocontainers/gatk:3.5--hdfd78af_11' }"
|
||||
|
||||
input:
|
||||
tuple val(meta), path(bam), path(bai), path(intervals)
|
||||
tuple val(meta), path(fasta)
|
||||
tuple val(meta), path(known_vcf)
|
||||
tuple val(meta), path(input), path(index), path(intervals)
|
||||
path path(fasta)
|
||||
path(fai)
|
||||
path(dict)
|
||||
path(known_vcf)
|
||||
|
||||
output:
|
||||
tuple val(meta), path("*.bam"), emit: bam
|
||||
|
@ -24,9 +26,17 @@ process GATK_INDELREALIGNER {
|
|||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def known = known_vcf ? "-known ${known_vcf}" : ""
|
||||
|
||||
def avail_mem = 3
|
||||
if (!task.memory) {
|
||||
log.info '[GATK IndelRealigner] Available memory not known - defaulting to 3GB. Specify process memory requirements to change this.'
|
||||
} else {
|
||||
avail_mem = task.memory.giga
|
||||
}
|
||||
|
||||
"""
|
||||
gatk3 \\
|
||||
-T RealignerTargetCreator \\
|
||||
-T IndelRealigner \\
|
||||
-R ${fasta} \\
|
||||
-nt ${task.cpus}
|
||||
-I ${bam} \\
|
||||
|
|
Loading…
Reference in a new issue