2023-09-25 23:46:38 +00:00
|
|
|
process PREDICTHAPLO {
|
|
|
|
tag "${prefix}"
|
|
|
|
label 'process_high'
|
|
|
|
|
|
|
|
container 'quay.io/biocontainers/predicthaplo:2.1.4--h9b88814_5'
|
|
|
|
|
|
|
|
input:
|
2023-09-26 13:06:43 +00:00
|
|
|
tuple val(prefix), path(bam), path(bai)
|
2023-09-25 23:46:38 +00:00
|
|
|
path(reference)
|
|
|
|
|
|
|
|
output:
|
|
|
|
tuple val(prefix), path("*.fa*")
|
|
|
|
|
|
|
|
publishDir "results/${task.process}", mode: 'copy'
|
|
|
|
|
|
|
|
script:
|
|
|
|
"""
|
|
|
|
predicthaplo \\
|
|
|
|
--sam "${bam}" \\
|
|
|
|
--reference "${reference}" \\
|
|
|
|
--prefix "${prefix}"
|
|
|
|
"""
|
|
|
|
}
|