mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
a0443e2c54
* Update main.nf * Update meta.yml * Re-add logos as not staged in a way that works with MultiQC config files * Update main.nf * Remove now unnecessary input channel * Remove unused channel from tests * Update hAMRonization to 1.1.1 and add hAMRonization farGene * Fix hamronizatio ntests * Prettier * Fix fargene linting * Correct file * Fix fargene output * Apply suggestions from code review Co-authored-by: Jasmin F <73216762+jasmezz@users.noreply.github.com> * Fix summarise tests * Prettier * Fix incorrect quotes in tags Co-authored-by: Jasmin F <73216762+jasmezz@users.noreply.github.com>
44 lines
1.2 KiB
Text
44 lines
1.2 KiB
Text
process HMMER_HMMBUILD {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::hmmer=3.3.2" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/hmmer:3.3.2--h87f3376_2':
|
|
'quay.io/biocontainers/hmmer:3.3.2--h1b792b2_1' }"
|
|
|
|
input:
|
|
tuple val(meta), path(alignment)
|
|
path mxfile
|
|
|
|
output:
|
|
tuple val(meta), path("*.hmm.gz"), emit: hmm
|
|
path "*.hmmbuild.txt", emit: hmmbuildout
|
|
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}"
|
|
def mxfileopt = mxfile ? "--mxfile ${mxfile}" : ""
|
|
|
|
"""
|
|
hmmbuild \\
|
|
$args \\
|
|
--cpu $task.cpus \\
|
|
-n ${prefix} \\
|
|
-o ${prefix}.hmmbuild.txt \\
|
|
${mxfileopt} \\
|
|
${prefix}.hmm \\
|
|
$alignment
|
|
|
|
gzip ${prefix}.hmm
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
hmmer: \$(echo \$(hmmbuild -h | grep HMMER | sed 's/# HMMER //' | sed 's/ .*//' 2>&1))
|
|
END_VERSIONS
|
|
"""
|
|
}
|