mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
c9587d76e2
* Update dsh-bio to version 2.0.7, add support for compressed GFA 1.0 format * fix ci failures Co-authored-by: Chris Cheshire <chris.j.cheshire@gmail.com>
33 lines
952 B
Text
33 lines
952 B
Text
process DSHBIO_SPLITBED {
|
|
tag "${meta.id}"
|
|
label 'process_medium'
|
|
|
|
conda (params.enable_conda ? "bioconda::dsh-bio=2.0.7" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/dsh-bio:2.0.7--hdfd78af_0' :
|
|
'quay.io/biocontainers/dsh-bio:2.0.7--hdfd78af_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(bed)
|
|
|
|
output:
|
|
tuple val(meta), path("*.bed.gz"), emit: bed
|
|
path "versions.yml" , emit: versions
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
"""
|
|
dsh-bio \\
|
|
split-bed \\
|
|
$args \\
|
|
-p $prefix \\
|
|
-s '.bed.gz' \\
|
|
-i $bed
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
dshbio: \$(dsh-bio --version 2>&1 | grep -o 'dsh-bio-tools .*' | cut -f2 -d ' ')
|
|
END_VERSIONS
|
|
"""
|
|
}
|