mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 13:43:09 +00:00
01d6d4c286
* Creation of Glimpse Chunk Add sub tools chunk with configuration and needed files for unitest. * Code linting correction * Prettier ran Newline deleted in nextflow.config * New final line and white spaces * Change Pytest.yml to work as a subtool. * Control for the parameters deleted. Control for the size/count of the window and buffer not needed. They have some defaults value. * Changed the different recommended part by @nvnieuwk Co-authored-by: nvnieuwk <101190534+nvnieuwk@users.noreply.github.com>
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
process GLIMPSE_CHUNK {
|
|
tag "$meta.id"
|
|
label 'process_medium'
|
|
|
|
conda (params.enable_conda ? "bioconda::glimpse-bio=1.1.1" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/glimpse-bio:1.1.1--h2ce4488_2':
|
|
'quay.io/biocontainers/glimpse-bio:1.1.1--hce55b13_1' }"
|
|
|
|
input:
|
|
tuple val(meta), path(input)
|
|
val region
|
|
|
|
output:
|
|
tuple val(meta), path("*.txt"), emit: chunk_chr
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
def args = task.ext.args ?: ""
|
|
def VERSION = '1.1.1' // WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
|
|
|
|
"""
|
|
GLIMPSE_chunk \\
|
|
$args \\
|
|
--input $input \\
|
|
--region $region \\
|
|
--thread $task.cpus \\
|
|
--output ${prefix}.txt
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
glimpse: $VERSION
|
|
END_VERSIONS
|
|
"""
|
|
}
|