2021-04-08 21:44:30 +00:00
|
|
|
process PLASMIDID {
|
|
|
|
tag "$meta.id"
|
|
|
|
label 'process_medium'
|
|
|
|
|
2021-04-26 10:40:38 +00:00
|
|
|
conda (params.enable_conda ? 'bioconda::plasmidid=1.6.5' : null)
|
2021-11-26 07:58:40 +00:00
|
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
|
|
'https://depot.galaxyproject.org/singularity/plasmidid:1.6.5--hdfd78af_0' :
|
|
|
|
'quay.io/biocontainers/plasmidid:1.6.5--hdfd78af_0' }"
|
2021-04-08 21:44:30 +00:00
|
|
|
|
|
|
|
input:
|
|
|
|
tuple val(meta), path(scaffold)
|
|
|
|
path fasta
|
|
|
|
|
|
|
|
output:
|
|
|
|
tuple val(meta), path("${prefix}/*final_results.html"), emit: html
|
|
|
|
tuple val(meta), path("${prefix}/*final_results.tab") , emit: tab
|
|
|
|
tuple val(meta), path("${prefix}/images/") , emit: images
|
|
|
|
tuple val(meta), path("${prefix}/logs/") , emit: logs
|
|
|
|
tuple val(meta), path("${prefix}/data/") , emit: data
|
|
|
|
tuple val(meta), path("${prefix}/database/") , emit: database
|
|
|
|
tuple val(meta), path("${prefix}/fasta_files/") , emit: fasta_files
|
|
|
|
tuple val(meta), path("${prefix}/kmer/") , emit: kmer
|
2021-10-01 13:04:56 +00:00
|
|
|
path "versions.yml" , emit: versions
|
2021-04-08 21:44:30 +00:00
|
|
|
|
|
|
|
script:
|
2021-12-07 14:00:43 +00:00
|
|
|
def args = task.ext.args ?: ''
|
|
|
|
prefix = task.ext.prefix ?: "${meta.id}"
|
2021-04-08 21:44:30 +00:00
|
|
|
"""
|
|
|
|
plasmidID \\
|
|
|
|
-d $fasta \\
|
|
|
|
-s $prefix \\
|
|
|
|
-c $scaffold \\
|
2021-11-26 07:58:40 +00:00
|
|
|
$args \\
|
2021-04-08 21:44:30 +00:00
|
|
|
-o .
|
|
|
|
|
|
|
|
mv NO_GROUP/$prefix ./$prefix
|
2021-09-27 08:41:24 +00:00
|
|
|
cat <<-END_VERSIONS > versions.yml
|
2021-11-26 07:58:40 +00:00
|
|
|
"${task.process}":
|
|
|
|
plasmidid: \$(echo \$(plasmidID --version 2>&1))
|
2021-09-27 08:41:24 +00:00
|
|
|
END_VERSIONS
|
2021-04-08 21:44:30 +00:00
|
|
|
"""
|
|
|
|
}
|