2023-09-23 21:40:04 +00:00
|
|
|
process CLIQUESNV {
|
|
|
|
tag "${prefix}"
|
|
|
|
label 'process_high'
|
2023-09-26 13:27:22 +00:00
|
|
|
label 'cliquesnv'
|
2023-09-23 21:40:04 +00:00
|
|
|
|
|
|
|
container 'quay.io/biocontainers/cliquesnv:2.0.3--hdfd78af_0'
|
|
|
|
|
|
|
|
input:
|
2023-09-26 13:06:43 +00:00
|
|
|
tuple val(prefix), path(bam), path(bai)
|
2023-09-23 21:40:04 +00:00
|
|
|
val(method)
|
|
|
|
|
|
|
|
output:
|
|
|
|
tuple val(prefix), path("*.json")
|
|
|
|
tuple val(prefix), path("*.fasta")
|
|
|
|
|
2023-10-19 02:40:08 +00:00
|
|
|
publishDir "${params.outdir}/${task.process}", mode: 'copy'
|
2023-09-23 21:40:04 +00:00
|
|
|
|
2023-09-26 13:27:22 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2023-09-23 21:40:04 +00:00
|
|
|
script:
|
|
|
|
def jmemstring = task.memory.toMega() + 'M'
|
|
|
|
"""
|
|
|
|
cliquesnv \\
|
|
|
|
-Xmx${jmemstring} \\
|
|
|
|
-threads ${task.cpus} \\
|
|
|
|
-m '${method}' \\
|
|
|
|
-in "${bam}" \\
|
|
|
|
-outDir .
|
|
|
|
"""
|
|
|
|
}
|