Skip to content

Commit

Permalink
print only 3 first fastqs in cat_fastqs
Browse files Browse the repository at this point in the history
  • Loading branch information
farchaab committed Oct 29, 2024
1 parent b188a7b commit 3d3ee46
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mess/workflow/rules/processing/reads.smk
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 3d3ee46

Please sign in to comment.