mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 05:43:08 +00:00
682f789f93
* Bump tool versions for modules required in viralrecon * Fix all the tests * Fix Prettier lint * Remove empty md5sums
42 lines
1.1 KiB
Text
42 lines
1.1 KiB
Text
process NEXTCLADE_DATASETGET {
|
|
tag "$dataset"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::nextclade=2.2.0" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/nextclade:2.2.0--h9ee0642_0' :
|
|
'quay.io/biocontainers/nextclade:2.2.0--h9ee0642_0' }"
|
|
|
|
input:
|
|
val dataset
|
|
val reference
|
|
val tag
|
|
|
|
output:
|
|
path "$prefix" , emit: dataset
|
|
path "versions.yml", emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
prefix = task.ext.prefix ?: "${dataset}"
|
|
def fasta = reference ? "--reference ${reference}" : ''
|
|
def version = tag ? "--tag ${tag}" : ''
|
|
"""
|
|
nextclade \\
|
|
dataset \\
|
|
get \\
|
|
$args \\
|
|
--name $dataset \\
|
|
$fasta \\
|
|
$version \\
|
|
--output-dir $prefix
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
nextclade: \$(echo \$(nextclade --version 2>&1) | sed 's/^.*nextclade //; s/ .*\$//')
|
|
END_VERSIONS
|
|
"""
|
|
}
|