mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-11 04:33:10 +00:00
57b43ed3de
* Update meta.yml by fixing html pattern expected Fixed html pattern typo: Before: pattern: "*.thml" After fix: pattern: "*.html" * main.nf for bbmap_clumpify * meta.yml for bbmap_clumpify * bbmap/clumpify via Gitpod and @mahesh-panchal guide * small changes to tests * explicit mention of output file pattern - *.clumped.fastq.gz * Update modules/bbmap/clumpify/main.nf Co-authored-by: Mahesh Binzer-Panchal <mahesh.binzer-panchal@nbis.se> * Update modules/bbmap/clumpify/main.nf Accepted @mahesh-panchal suggestions Co-authored-by: Mahesh Binzer-Panchal <mahesh.binzer-panchal@nbis.se> Co-authored-by: Mahesh Binzer-Panchal <mahesh.binzer-panchal@nbis.se> Co-authored-by: Matthias De Smet <11850640+matthdsm@users.noreply.github.com>
38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
process BBMAP_CLUMPIFY {
|
|
tag "$meta.id"
|
|
label 'process_single'
|
|
label 'process_high_memory'
|
|
|
|
conda (params.enable_conda ? "bioconda::bbmap=38.98" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/bbmap:38.98--h5c4e2a8_1' :
|
|
'quay.io/biocontainers/bbmap:38.98--h5c4e2a8_1' }"
|
|
|
|
input:
|
|
tuple val(meta), path(reads)
|
|
|
|
output:
|
|
tuple val(meta), path('*.fastq.gz'), emit: reads
|
|
tuple val(meta), path('*.log') , emit: log
|
|
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}"
|
|
def raw = meta.single_end ? "in=$reads" : "in1=${reads[0]} in2=${reads[1]}"
|
|
def clumped = meta.single_end ? "out=${prefix}.clumped.fastq.gz" : "out1=${prefix}_1.clumped.fastq.gz out2=${prefix}_2.clumped.fastq.gz"
|
|
"""
|
|
clumpify.sh \\
|
|
$raw \\
|
|
$clumped \\
|
|
$args \\
|
|
&> ${prefix}.clumpify.log
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
bbmap: \$(bbversion.sh)
|
|
END_VERSIONS
|
|
"""
|
|
}
|