-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpaf_to_bed.nf
executable file
·42 lines (35 loc) · 1.33 KB
/
paf_to_bed.nf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
process PAF2BED {
tag "${meta.id}"
label 'process_low'
conda "conda-forge::coreutils=9.1"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/ubuntu:20.04' :
'docker.io/ubuntu:20.04' }"
input:
tuple val( meta ), path( file )
output:
tuple val( meta ), file( "*_punchlist.bed" ), emit: punchlist
path "versions.yml" , emit: versions
script:
def prefix = task.ext.prefix ?: "${meta.id}_${meta.type}_punchlist"
def VERSION = "9.1" // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
"""
paf_to_bed.sh ${file} ${prefix}.bed
cat <<-END_VERSIONS > versions.yml
"${task.process}":
paf_to_bed: \$(paf_to_bed.sh -v)
coreutils: $VERSION
END_VERSIONS
"""
stub:
def prefix = task.ext.prefix ?: "${meta.id}_${meta.type}_punchlist"
def VERSION = "9.1" // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
"""
touch ${prefix}.bed
cat <<-END_VERSIONS > versions.yml
"${task.process}":
paf_to_bed: \$(paf_to_bed.sh -v)
coreutils: $VERSION
END_VERSIONS
"""
}