Skip to content

Commit

Permalink
fix: memory resources for bbmap (#123)
Browse files Browse the repository at this point in the history
* fix: add memory resources for bbmap

* set lower memm in bbmap workflow profile

* increasing memory for bmap

---------

Co-authored-by: Max Schubach <max.schubach@bih-charite.de>
Co-authored-by: Max Schubach <max.schubach@bihealth.de>
  • Loading branch information
3 people authored Sep 30, 2024
1 parent 7226f8d commit af93f58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion workflow/rules/assignment/mapping_bbmap.smk
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ rule assignment_mapping_bbmap:
"""
conda:
"../../envs/bbmap_samtools_htslib.yaml"
threads: 1
resources:
mem="4G",
input:
reads="results/assignment/{assignment}/fastq/merge_split{split}.join.fastq.gz",
check="results/assignment/{assignment}/design_check.done",
Expand All @@ -39,7 +42,8 @@ rule assignment_mapping_bbmap:
temp("results/logs/assignment/mapping.bbmap.{assignment}.{split}.log"),
shell:
"""
bbmap.sh in={input.reads} ref={input.reference} nodisk -t={threads} out={output.bam} &> {log};
bbmap.sh -eoom -Xmx{resources.mem} -t={threads} \
in={input.reads} ref={input.reference} nodisk out={output.bam} &> {log};
samtools sort -l 0 -@ {threads} {output.bam} > {output.sorted_bam} 2>> {log};
"""

Expand Down

0 comments on commit af93f58

Please sign in to comment.