mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 22:23:09 +00:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
process PAIRTOOLS_DEDUP {
|
|
tag "$meta.id"
|
|
label 'process_high'
|
|
|
|
conda (params.enable_conda ? "bioconda::pairtools=0.3.0" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/pairtools:0.3.0--py37hb9c2fc3_5' :
|
|
'quay.io/biocontainers/pairtools:0.3.0--py37hb9c2fc3_5' }"
|
|
|
|
input:
|
|
tuple val(meta), path(input)
|
|
|
|
output:
|
|
tuple val(meta), path("*.pairs.gz") , emit: pairs
|
|
tuple val(meta), path("*.pairs.stat"), emit: stat
|
|
path "versions.yml" , emit: versions
|
|
|
|
when:
|
|
task.ext.when == null || task.ext.when
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
"""
|
|
pairtools dedup \\
|
|
$args \\
|
|
-o ${prefix}.pairs.gz \\
|
|
--output-stats ${prefix}.pairs.stat \\
|
|
$input
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
pairtools: \$(pairtools --version 2>&1 | sed 's/pairtools.*version //')
|
|
END_VERSIONS
|
|
"""
|
|
}
|