Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in variable name in CHECKM/QA (plus some formatting fixes) #6680

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
31 changes: 15 additions & 16 deletions modules/nf-core/checkm/qa/main.nf
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
process CHECKM_QA {
tag "$meta.id"
tag "${meta.id}"
label 'process_low'

conda "${moduleDir}/environment.yml"
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/checkm-genome:1.2.1--pyhdfd78af_0' :
'biocontainers/checkm-genome:1.2.2--pyhdfd78af_0' }"
container "${workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
? 'https://depot.galaxyproject.org/singularity/checkm-genome:1.2.1--pyhdfd78af_0'
: 'biocontainers/checkm-genome:1.2.2--pyhdfd78af_0'}"

input:
tuple val(meta), path(analysis_dir), path(marker_file), path(coverage_file)
Expand All @@ -14,27 +13,27 @@ process CHECKM_QA {
output:
tuple val(meta), path("${prefix}.txt") , optional: true, emit: output
tuple val(meta), path("${prefix}.fasta"), optional: true, emit: fasta
path "versions.yml" , emit: versions
path "versions.yml", emit: versions

when:
task.ext.when == null || task.ext.when

script:
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"
suffix = task.ext.args?.matches(".*-o 9.*|.*--out_file 9.*") ? "fasta" : "txt"
def coverage = coverage_file ? "--coverage_file ${coverage_file}" : ""
def exclude = exclude_marker_file ? "--exclude_markers ${marker_filer}" : ""
def args = task.ext.args ?: ''
prefix = task.ext.prefix ?: "${meta.id}"
suffix = task.ext.args.matches(".*-o 9.*|.*--out_file 9.*") ? "fasta" : "txt"
def coverage = coverage_file ? "--coverage_file ${coverage_file}" : ""
def exclude = exclude_marker_file ? "--exclude_markers ${marker_file}" : ""
"""
checkm \\
qa \\
--threads ${task.cpus} \\
--file ${prefix}.${suffix} \\
$marker_file \\
$analysis_dir \\
$coverage \\
$exclude \\
$args
${marker_file} \\
${analysis_dir} \\
${coverage} \\
${exclude} \\
${args}

cat <<-END_VERSIONS > versions.yml
"${task.process}":
Expand Down
Loading