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
40 lines (33 loc) · 976 Bytes
/
main.nf
File metadata and controls
40 lines (33 loc) · 976 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
process STIMULUS_SPLIT_DATA {
tag "${meta.id}-${meta2.id}"
label 'process_low'
// 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(sub_config)
output:
tuple val(meta2), path("${prefix}_split"), emit: csv_with_split
path "versions.yml" , emit: versions
script:
prefix = task.ext.prefix ?: "${meta.id}-split-${meta2.id}"
"""
stimulus split-csv \
-c ${data} \
-y ${sub_config} \
-o ${prefix}_split
cat <<-END_VERSIONS > versions.yml
"${task.process}":
stimulus: \$(stimulus -v | cut -d ' ' -f 3)
END_VERSIONS
"""
stub:
prefix = task.ext.prefix ?: "${meta.id}-split-${meta2.id}"
"""
touch ${prefix}_split
cat <<-END_VERSIONS > versions.yml
"${task.process}":
stimulus: \$(stimulus -v | cut -d ' ' -f 3)
END_VERSIONS
"""
}