2023-08-09 21:07:54 +00:00
|
|
|
process VIQUAS {
|
|
|
|
tag "${prefix}"
|
|
|
|
label 'process_high'
|
2023-09-26 13:27:22 +00:00
|
|
|
label 'viquas'
|
2023-08-09 21:07:54 +00:00
|
|
|
|
2023-08-09 23:05:22 +00:00
|
|
|
container 'code.millironx.com/millironx/haplotyper-battle-royale:viquas'
|
|
|
|
|
2023-08-09 21:07:54 +00:00
|
|
|
input:
|
2023-08-09 22:53:07 +00:00
|
|
|
tuple val(prefix), path(bam), path(bai)
|
2023-08-09 21:07:54 +00:00
|
|
|
path(reference)
|
|
|
|
|
|
|
|
output:
|
|
|
|
tuple val(prefix), path("*.fa")
|
|
|
|
|
2023-09-23 21:32:29 +00:00
|
|
|
publishDir "results/${task.process}", mode: 'copy'
|
2023-08-09 21:07:54 +00:00
|
|
|
|
2023-09-26 13:27:22 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2023-08-09 21:07:54 +00:00
|
|
|
script:
|
|
|
|
"""
|
|
|
|
viquas \\
|
|
|
|
${reference} \\
|
|
|
|
${bam}
|
|
|
|
"""
|
|
|
|
}
|