forked from nf-core/mhcquant
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenms_idconflictresolver.nf
More file actions
46 lines (36 loc) · 1.28 KB
/
Copy pathopenms_idconflictresolver.nf
File metadata and controls
46 lines (36 loc) · 1.28 KB
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
43
44
45
46
process OPENMS_IDCONFLICTRESOLVER {
tag "$meta.id"
label 'process_single'
conda "bioconda::openms=3.3.0"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/openms:3.3.0--h0656172_8' :
'biocontainers/openms:3.3.0--h0656172_8' }"
input:
tuple val(meta), path(consensus)
output:
tuple val(meta), path("*.consensusXML"), emit: consensusxml
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
def prefix = task.ext.prefix ?: "${meta.id}_resolved"
"""
IDConflictResolver \\
-in $consensus \\
-out ${prefix}.consensusXML \\
-threads $task.cpus
cat <<-END_VERSIONS > versions.yml
"${task.process}":
openms: \$(echo \$(FileInfo --help 2>&1) | sed 's/^.*Version: //; s/-.*\$//' | sed 's/ -*//; s/ .*\$//')
END_VERSIONS
"""
stub:
def prefix = task.ext.prefix ?: "${meta.id}_resolved"
"""
touch ${prefix}.consensusXML
cat <<-END_VERSIONS > versions.yml
"${task.process}":
openms: \$(echo \$(FileInfo --help 2>&1) | sed 's/^.*Version: //; s/-.*\$//' | sed 's/ -*//; s/ .*\$//')
END_VERSIONS
"""
}