mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 02:58:17 +00:00
94619a3faf
* add annotate * add models * add compound * add score * update annotate recipe * update meta and main * main updates * add test for annotate * update all tests * refactor * update tests * fix conda issue * review suggestions
46 lines
1.3 KiB
Text
46 lines
1.3 KiB
Text
process GENMOD_ANNOTATE {
|
|
tag "$meta.id"
|
|
label 'process_medium'
|
|
|
|
conda (params.enable_conda ? "bioconda::genmod=3.7.4" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/genmod:3.7.4--pyh5e36f6f_0':
|
|
'quay.io/biocontainers/genmod:3.7.4--pyh5e36f6f_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(input_vcf)
|
|
|
|
output:
|
|
tuple val(meta), path("*_annotate.vcf"), emit: vcf
|
|
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}"
|
|
"""
|
|
genmod \\
|
|
annotate \\
|
|
$args \\
|
|
--outfile ${prefix}_annotate.vcf \\
|
|
$input_vcf
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
genmod: \$(echo \$(genmod --version 2>&1) | sed 's/^.*genmod version: //' ))
|
|
END_VERSIONS
|
|
"""
|
|
|
|
stub:
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
"""
|
|
touch ${prefix}_annotate.vcf
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
genmod: \$(echo \$(genmod --version 2>&1) | sed 's/^.*genmod version: //' ))
|
|
END_VERSIONS
|
|
"""
|
|
}
|