Apply suggestions from code review

Co-authored-by: FriederikeHanssen <Friederike.hanssen@qbic.uni-tuebingen.de>
This commit is contained in:
James A. Fellows Yates 2022-06-09 08:33:37 +02:00 committed by GitHub
parent 939653a47e
commit 70f7f07a37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ process GATK_INDELREALIGNER {
def prefix = task.ext.prefix ?: "${meta.id}"
def known = known_vcf ? "-known ${known_vcf}" : ""
if ("$input" == "${prefix}.bam") error "Input and output names are the same, set prefix in module configuration to disambiguate!"
if ("$bam" == "${prefix}.bam") error "Input and output names are the same, set prefix in module configuration to disambiguate!"
def avail_mem = 3
if (!task.memory) {
@ -40,7 +40,7 @@ process GATK_INDELREALIGNER {
-Xmx${avail_mem}g \\
-T IndelRealigner \\
-R ${fasta} \\
-I ${input} \\
-I ${bam} \\
--targetIntervals ${intervals} \\
${known} \\
-o ${prefix}.bam \\