mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-23 19:48:16 +00:00
37 lines
1 KiB
Text
37 lines
1 KiB
Text
process DIAMOND_MAKEDB {
|
|
tag "$fasta"
|
|
label 'process_medium'
|
|
|
|
// Dimaond is limited to v2.0.9 because there is not a
|
|
// singularity version higher than this at the current time.
|
|
conda (params.enable_conda ? 'bioconda::diamond=2.0.9' : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/diamond:2.0.9--hdcc8f71_0' :
|
|
'quay.io/biocontainers/diamond:2.0.9--hdcc8f71_0' }"
|
|
|
|
input:
|
|
path fasta
|
|
|
|
output:
|
|
path "${fasta}.dmnd", emit: db
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
"""
|
|
diamond \\
|
|
makedb \\
|
|
--threads $task.cpus \\
|
|
--in $fasta \\
|
|
-d $fasta \\
|
|
$args
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
diamond: \$(diamond --version 2>&1 | tail -n 1 | sed 's/^diamond version //')
|
|
END_VERSIONS
|
|
"""
|
|
}
|