From f735010db57252e0c2a386cdaa34685c9bdba4a0 Mon Sep 17 00:00:00 2001 From: MarieLataretu <52002068+MarieLataretu@users.noreply.github.com> Date: Fri, 20 Dec 2024 16:39:11 +0100 Subject: [PATCH] skip removing small fastq.gz files after the length filter with --list or --sample --- modules/filter_fastq_by_length.nf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/filter_fastq_by_length.nf b/modules/filter_fastq_by_length.nf index 06a67c4..b3c54c7 100644 --- a/modules/filter_fastq_by_length.nf +++ b/modules/filter_fastq_by_length.nf @@ -31,7 +31,7 @@ process filter_fastq_by_length { ;; esac - if [ ${params.samples} == false ]; then + if [ ${params.samples} == false ] && [ ${params.list} == false ]; then find . -name "${name}_filtered.fastq.gz" -type 'f' -size -1500k -delete fi """