2021-10-11 21:30:41 +00:00
|
|
|
process SRATOOLS_PREFETCH {
|
|
|
|
tag "$id"
|
|
|
|
label 'process_low'
|
|
|
|
|
|
|
|
conda (params.enable_conda ? 'bioconda::sra-tools=2.11.0' : null)
|
2021-11-26 07:58:40 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
2022-05-06 12:16:15 +00:00
|
|
|
'https://depot.galaxyproject.org/singularity/sra-tools:2.11.0--pl5321ha49a11a_3' :
|
|
|
|
'quay.io/biocontainers/sra-tools:2.11.0--pl5321ha49a11a_3' }"
|
2021-10-11 21:30:41 +00:00
|
|
|
|
|
|
|
input:
|
|
|
|
tuple val(meta), val(id)
|
2022-05-09 10:28:58 +00:00
|
|
|
path ncbi_settings
|
2021-10-11 21:30:41 +00:00
|
|
|
|
|
|
|
output:
|
2022-05-06 15:09:01 +00:00
|
|
|
tuple val(meta), path(id), emit: sra
|
2022-05-08 14:05:51 +00:00
|
|
|
path 'versions.yml' , emit: versions
|
2021-10-11 21:30:41 +00:00
|
|
|
|
2022-02-04 08:53:32 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2022-05-06 15:09:01 +00:00
|
|
|
shell:
|
|
|
|
args = task.ext.args ?: ''
|
|
|
|
args2 = task.ext.args2 ?: '5 1 100' // <num retries> <base delay in seconds> <max delay in seconds>
|
|
|
|
template 'retry_with_backoff.sh'
|
2021-10-11 21:30:41 +00:00
|
|
|
}
|