Skip to content

Commit

Permalink
Minor fix to increade config file backwards compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
lczech committed Jul 16, 2024
1 parent 5a5bc75 commit 261a9a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion workflow/rules/annotation.smk
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ rule snpeff:
# For finding the chromosome names used by snpeff, add `-v` here
extra=config["params"]["snpeff"]["extra"],
resources:
mem_mb=config["params"]["snpeff"]["mem"],
# Use get() for backwards compatibilty with older config files pre v0.13.0
mem_mb=config["params"]["snpeff"].get("mem", 2000),
conda:
"../envs/snpeff.yaml"
wrapper:
Expand Down

0 comments on commit 261a9a8

Please sign in to comment.