mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 13:43:09 +00:00
98642619bd
* Fixing test.yml * hmmbuild passing tests * Output meta * Linting problem * Linting problem again * Fix prettier * Update modules/hmmer/hmmbuild/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Fix missing prefix * Accept mxfile param * Output gzipped hmm * Moved input file for test to modules branch * Update modules/hmmer/hmmbuild/meta.yml Co-authored-by: James A. Fellows Yates <jfy133@gmail.com> * Describe mxfile * Get LENG 80 check back Co-authored-by: James A. Fellows Yates <jfy133@gmail.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
|
|
"""
|
|
}
|