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' }"
|
'quay.io/biocontainers/gatk:3.5--hdfd78af_11' }"
|
||||||
|
|
||||||
input:
|
input:
|
||||||
tuple val(meta), path(bam), path(bai), path(intervals)
|
tuple val(meta), path(input), path(index), path(intervals)
|
||||||
tuple val(meta), path(fasta)
|
path path(fasta)
|
||||||
tuple val(meta), path(known_vcf)
|
path(fai)
|
||||||
|
path(dict)
|
||||||
|
path(known_vcf)
|
||||||
|
|
||||||
output:
|
output:
|
||||||
tuple val(meta), path("*.bam"), emit: bam
|
tuple val(meta), path("*.bam"), emit: bam
|
||||||
|
@ -24,9 +26,17 @@ process GATK_INDELREALIGNER {
|
||||||
def args = task.ext.args ?: ''
|
def args = task.ext.args ?: ''
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def known = known_vcf ? "-known ${known_vcf}" : ""
|
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 \\
|
gatk3 \\
|
||||||
-T RealignerTargetCreator \\
|
-T IndelRealigner \\
|
||||||
-R ${fasta} \\
|
-R ${fasta} \\
|
||||||
-nt ${task.cpus}
|
-nt ${task.cpus}
|
||||||
-I ${bam} \\
|
-I ${bam} \\
|
||||||
|
|
Loading…
Reference in a new issue