-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmerge_btk_datasets.nf
39 lines (31 loc) · 1.1 KB
/
merge_btk_datasets.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
process MERGE_BTK_DATASETS {
tag "$meta.id"
label 'process_low'
conda "conda-forge::python=3.9"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/python:3.9' :
'biocontainers/python:3.9' }"
input:
tuple val(meta), path(create_btk_datasets)
tuple val(meta2), path(busco_btk_datasets)
output:
tuple val(meta), path("merged_datasets"), emit: merged_datasets
when:
task.ext.when == null || task.ext.when
script:
def prefix = task.ext.prefix ?: "${meta.id}"
def args = task.ext.args ?: ""
"""
mkdir -p merged_datasets/
merge_btk_datasets_V2.py \\
-m $create_btk_datasets \\
-o ./merged_datasets \\
-b $busco_btk_datasets \\
$args
cat <<-END_VERSIONS > versions.yml
"${task.process}":
python: \$(python --version | sed 's/Python //g')
create_btk_dataset: \$(general_purpose_functions.py --version | cut -d' ' -f2)
END_VERSIONS
"""
}