forked from nf-core/deepmodeloptim
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.nf
More file actions
41 lines (34 loc) · 954 Bytes
/
main.nf
File metadata and controls
41 lines (34 loc) · 954 Bytes
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
process ENCODE_CSV {
tag "${meta.id}"
label 'process_medium'
// TODO: push image to nf-core quay.io
container "docker.io/mathysgrapotte/stimulus-py:dev"
input:
tuple val(meta), path(data)
tuple val(meta2), path(config)
output:
tuple val(meta2), path("${prefix}_encoded"), emit: encoded
path "versions.yml" , emit: versions
script:
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.split_id}-${meta2.transform_id}"
"""
stimulus encode-csv \
-d ${data} \
-y ${config} \
-o ${prefix}_encoded \
$args
cat <<-END_VERSIONS > versions.yml
"${task.process}":
stimulus: \$(stimulus -v | cut -d ' ' -f 3)
END_VERSIONS
"""
stub:
"""
echo passing check-model stub
cat <<-END_VERSIONS > versions.yml
"${task.process}":
stimulus: \$(stimulus -v | cut -d ' ' -f 3)
END_VERSIONS
"""
}