nf-core_modules/modules/msisensor2/scan/main.nf
James A. Fellows Yates a0443e2c54
Fixes incorrectly quoted tags (#2113)
* 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>
2022-09-27 20:37:56 +01:00

36 lines
999 B
Text

process MSISENSOR2_SCAN {
tag "$fasta"
label 'process_medium'
conda (params.enable_conda ? "bioconda::msisensor2=0.1" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/msisensor2:0.1--hd03093a_0':
'quay.io/biocontainers/msisensor2:0.1--hd03093a_0' }"
input:
path fasta
val output
output:
path output_path , emit: scan
path "versions.yml", emit: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
def inputs = fasta.collect{ "-d $it"}.join(" ")
output_path = output ?: "output.scan"
"""
msisensor2 scan \\
$args \\
$inputs \\
-o $output_path
cat <<-END_VERSIONS > versions.yml
"${task.process}":
msisensor2: \$(echo \$(msisensor2 2> >(grep Version) | sed 's/Version: v//g'))
END_VERSIONS
"""
}