mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 03:28:17 +00:00
90aef30f43
* Set process label to `process_single` for modules with no `task.cpus` usage * Fix tests of 'borked' modules * prettier * More modules are single-threaded and can use process_single * Adding process_single to hmmer/esl* modules * Fix failing tests * Prettier Co-authored-by: Matthieu Muffato <mm49@sanger.ac.uk> Co-authored-by: Daniel Lundin <erik.rikard.daniel@gmail.com>
38 lines
1.3 KiB
Text
38 lines
1.3 KiB
Text
process DEEPARG_DOWNLOADDATA {
|
|
label 'process_single'
|
|
|
|
conda (params.enable_conda ? "bioconda::deeparg=1.0.2" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/deeparg:1.0.2--pyhdfd78af_1' :
|
|
'quay.io/biocontainers/deeparg:1.0.2--pyhdfd78af_1' }"
|
|
/*
|
|
We have to force singularity to run with -B to allow reading of a problematic file with borked read-write permissions in an upstream dependency (theanos).
|
|
Original report: https://github.com/nf-core/funcscan/issues/23
|
|
*/
|
|
containerOptions { "${workflow.containerEngine}" == 'singularity' ? '-B $(which bash):/usr/local/lib/python2.7/site-packages/Theano-0.8.2-py2.7.egg-info/PKG-INFO' : '' }
|
|
|
|
|
|
input:
|
|
|
|
output:
|
|
path "db/" , emit: db
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def VERSION='1.0.2' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
|
|
"""
|
|
deeparg \\
|
|
download_data \\
|
|
$args \\
|
|
-o db/
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
deeparg: $VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|