-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathassign_ancestral.nf
executable file
·35 lines (28 loc) · 1.09 KB
/
assign_ancestral.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
process ASSIGN_ANCESTRAL {
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/pandas:1.5.2' :
'biocontainers/pandas:1.5.2' }"
input:
tuple val(meta), path(comp_location)
path(fulltable)
output:
tuple val(meta), path("*bed") , emit: assigned_bed
path "versions.yml" , emit: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
"""
assign_anc.py -l $comp_location -f $fulltable -c ${prefix}_assigned.bed
cat <<-END_VERSIONS > versions.yml
"${task.process}":
python: \$(echo \$(python --version 2>&1) | sed 's/^.*python //; s/Using.*\$//')
pandas: \$(echo \$(pandas: python -c "import pandas as pd; print(pd.__version__)"))
assign_ancestral.py: \$(assign_ancestral.py --version | cut -d' ' -f2)
END_VERSIONS
"""
}