From 3d3ee4643fce302182492504c1facd2664009cbe Mon Sep 17 00:00:00 2001 From: farchaab Date: Tue, 29 Oct 2024 15:36:24 +0100 Subject: [PATCH] print only 3 first fastqs in cat_fastqs --- mess/workflow/rules/processing/reads.smk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mess/workflow/rules/processing/reads.smk b/mess/workflow/rules/processing/reads.smk index e00e36c..cc996ed 100644 --- a/mess/workflow/rules/processing/reads.smk +++ b/mess/workflow/rules/processing/reads.smk @@ -346,10 +346,13 @@ rule cat_fastqs: params: dir=os.path.join(fastq_dir, "{sample}"), name="*{p}.fq.gz" if PAIRED else "*.fq.gz", + head=lambda wildcards, input: list(input)[:3], resources: mem_mb=config.resources.sml.mem, mem=str(config.resources.sml.mem) + "MB", time=config.resources.norm.time, + message: + "Concatenating {wildcards.sample} reads : {params.head} ... " shell: """ find {params.dir} -name "{params.name}" | xargs cat > {output}