mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-14 13:43:09 +00:00
7bfbce94b0
* Added fq/lint module Additions: - fq/lint module, which checks paired end FASTQ files and confirms they are valid. Relates to #1967 * fq/lint linting * Correct Singularity image Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se> Co-authored-by: Maxime U. Garcia <maxime.garcia@scilifelab.se>
33 lines
924 B
Text
33 lines
924 B
Text
process FQ_LINT {
|
|
tag "$meta.id"
|
|
label 'process_low'
|
|
|
|
conda (params.enable_conda ? "bioconda::fq=0.9.1" : null)
|
|
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
|
|
'https://depot.galaxyproject.org/singularity/fq:0.9.1--h9ee0642_0':
|
|
'quay.io/biocontainers/fq:0.9.1--h9ee0642_0' }"
|
|
|
|
input:
|
|
tuple val(meta), path(fastq)
|
|
|
|
output:
|
|
tuple val(meta), path("*.fq_lint.txt"), emit: lint
|
|
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}"
|
|
"""
|
|
fq lint \\
|
|
$args \\
|
|
$fastq > ${prefix}.fq_lint.txt
|
|
|
|
cat <<-END_VERSIONS > versions.yml
|
|
"${task.process}":
|
|
fq: \$(echo \$(fq lint --version | sed 's/fq-lint //g'))
|
|
END_VERSIONS
|
|
"""
|
|
}
|