22 lines
399 B
Text
22 lines
399 B
Text
process HAPLINK_VARIANTS {
|
|
cpus 2
|
|
memory '12.GB'
|
|
|
|
input:
|
|
tuple val(prefix), path(bam), path(bai)
|
|
path reference
|
|
|
|
output:
|
|
tuple val(prefix), path("*.vcf")
|
|
|
|
publishDir "results", mode: 'copy'
|
|
|
|
script:
|
|
"""
|
|
export JULIA_NUM_THREADS=${task.cpus}
|
|
haplink variants \\
|
|
"${reference}" \\
|
|
"${bam}" \\
|
|
> "${prefix}.vcf"
|
|
"""
|
|
}
|