nf-core_modules/modules/ataqv/mkarv/main.nf
Björn Langer b5facb2db2
Ataqv mkarv (#1857)
* first draft

* fix test run

* Apply suggestions from code review

Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>

* Update tests/modules/ataqv/mkarv/test.yml

* Update tests/modules/ataqv/mkarv/test.yml

* Update tests/modules/ataqv/mkarv/test.yml

* Update tests/modules/ataqv/mkarv/test.yml

* Update tests/modules/ataqv/mkarv/test.yml

* Update modules/ataqv/mkarv/nextflow.config

* Delete nextflow.config

* Update tests/modules/ataqv/mkarv/test.yml

* fix linting

* fix linting

Co-authored-by: bjlang <>
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
2022-07-07 22:40:31 +02:00

35 lines
937 B
Text

process ATAQV_MKARV {
label 'process_medium'
conda (params.enable_conda ? "bioconda::ataqv=1.3.0" : null)
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/ataqv:1.3.0--py39hccc85d7_2':
'quay.io/biocontainers/ataqv:1.3.0--py39hccc85d7_2' }"
input:
path json
output:
path "html" , emit: html
path "versions.yml", emit: versions
when:
task.ext.when == null || task.ext.when
script:
def args = task.ext.args ?: ''
"""
mkarv \\
$args \\
--concurrency $task.cpus \\
--force \\
./html/ \\
${json.join(' ')}
cat <<-END_VERSIONS > versions.yml
"${task.process}":
# mkarv: \$( mkarv --version ) # Use this when version string has been fixed
ataqv: \$( ataqv --version )
END_VERSIONS
"""
}