mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
Standardise parameters (no tests yet until realigntarget creator ready)
This commit is contained in:
parent
599b264280
commit
de88adc926
2 changed files with 15 additions and 6 deletions
|
@ -9,20 +9,20 @@ process GATK_INDELREALIGNER {
|
|||
|
||||
input:
|
||||
tuple val(meta), path(input), path(index), path(intervals)
|
||||
path path(fasta)
|
||||
path(fasta)
|
||||
path(fai)
|
||||
path(dict)
|
||||
path(known_vcf)
|
||||
|
||||
output:
|
||||
tuple val(meta), path("*.bam"), emit: bam
|
||||
tuple val(meta), path("*.bam"), path("*.bai"), emit: bam
|
||||
path "versions.yml" , emit: versions
|
||||
|
||||
when:
|
||||
task.ext.when == null || task.ext.when
|
||||
|
||||
script:
|
||||
if ("$bam" == "${prefix}.bam") error "Input and output names are the same, set prefix in module configuration to disambiguate!"
|
||||
if ("$input" == "${prefix}.bam") error "Input and output names are the same, set prefix in module configuration to disambiguate!"
|
||||
def args = task.ext.args ?: ''
|
||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||
def known = known_vcf ? "-known ${known_vcf}" : ""
|
||||
|
@ -36,10 +36,11 @@ process GATK_INDELREALIGNER {
|
|||
|
||||
"""
|
||||
gatk3 \\
|
||||
-Xmx${avail_mem}g \\
|
||||
-T IndelRealigner \\
|
||||
-R ${fasta} \\
|
||||
-nt ${task.cpus}
|
||||
-I ${bam} \\
|
||||
-I ${input} \\
|
||||
-targetIntervals ${intervals} \\
|
||||
${known} \\
|
||||
-o ${prefix}.bam \\
|
||||
|
|
|
@ -19,11 +19,11 @@ input:
|
|||
description: |
|
||||
Groovy Map containing sample information
|
||||
e.g. [ id:'test', single_end:false ]
|
||||
- bam:
|
||||
- input:
|
||||
type: file
|
||||
description: Sorted and indexed BAM/CRAM/SAM file
|
||||
pattern: "*.bam"
|
||||
- bai:
|
||||
- index:
|
||||
type: file
|
||||
description: BAM index file
|
||||
pattern: "*.bai"
|
||||
|
@ -35,6 +35,14 @@ input:
|
|||
type: file
|
||||
description: Reference file used to generate BAM file
|
||||
pattern: ".{fasta,fa,fna}"
|
||||
- fai:
|
||||
type: file
|
||||
description: Index of reference file used to generate BAM file
|
||||
pattern: ".fai"
|
||||
- dict:
|
||||
type: file
|
||||
description: GATK dict file for reference
|
||||
pattern: ".dict"
|
||||
- known_vcf:
|
||||
type: file
|
||||
description: Optional input VCF file(s) with known indels
|
||||
|
|
Loading…
Reference in a new issue