mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-15 06:03:10 +00:00
32 lines
910 B
Text
32 lines
910 B
Text
process PORECHOP {
|
|
tag "$meta.id"
|
|
label 'process_medium'
|
|
|
|
conda (params.enable_conda ? "bioconda::porechop=0.2.4" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/porechop:0.2.4--py39h7cff6ad_2' :
|
|
'quay.io/biocontainers/porechop:0.2.4--py39h7cff6ad_2' }"
|
|
|
|
input:
|
|
tuple val(meta), path(reads)
|
|
|
|
output:
|
|
tuple val(meta), path("*.fastq.gz"), emit: reads
|
|
path "versions.yml" , emit: versions
|
|
|
|
script:
|
|
def args = task.ext.args ?: ''
|
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
|
"""
|
|
porechop \\
|
|
-i $reads \\
|
|
-t $task.cpus \\
|
|
$args \\
|
|
-o ${prefix}.fastq.gz
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
porechop: \$( porechop --version )
|
|
END_VERSIONS
|
|
"""
|
|
}
|