2022-01-26 14:19:16 +00:00
|
|
|
def VERSION="1.0.2"
|
|
|
|
|
|
|
|
process DEEPARG_PREDICT {
|
|
|
|
tag "$meta.id"
|
|
|
|
label 'process_medium'
|
|
|
|
|
|
|
|
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' }"
|
|
|
|
|
|
|
|
input:
|
|
|
|
tuple val(meta), path(fasta), val(model)
|
2022-01-27 08:38:06 +00:00
|
|
|
path(db)
|
2022-01-26 14:19:16 +00:00
|
|
|
|
|
|
|
output:
|
|
|
|
tuple val(meta), path("*.align.daa") , emit: daa
|
|
|
|
tuple val(meta), path("*.align.daa.tsv") , emit: daa_tsv
|
|
|
|
tuple val(meta), path("*.mapping.ARG") , emit: arg
|
|
|
|
tuple val(meta), path("*.mapping.potential.ARG"), emit: potential_arg
|
|
|
|
path "versions.yml" , emit: versions
|
|
|
|
|
2022-02-04 08:53:32 +00:00
|
|
|
when:
|
|
|
|
task.ext.when == null || task.ext.when
|
|
|
|
|
2022-01-26 14:19:16 +00:00
|
|
|
script:
|
|
|
|
def args = task.ext.args ?: ''
|
|
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
|
|
"""
|
|
|
|
deeparg \\
|
|
|
|
predict \\
|
|
|
|
$args \\
|
|
|
|
-i $fasta \\
|
|
|
|
-o ${prefix} \\
|
|
|
|
-d $db \\
|
|
|
|
--model $model
|
|
|
|
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
|
|
"${task.process}":
|
|
|
|
deeparg: $VERSION
|
|
|
|
END_VERSIONS
|
|
|
|
"""
|
|
|
|
}
|