Skip to content

Commit

Permalink
Convert mem_mb value from gb to mb for select rules (#681)
Browse files Browse the repository at this point in the history
A few rules had been using the mem value directly from the config.yaml to set the mem_mb resource without converting from gb to mb (by multiplying by 1000)
  • Loading branch information
LLansing authored Jul 20, 2023
1 parent 1314e31 commit ed21325
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workflow/rules/bin_quality.smk
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ rule run_checkm2:
"logs/benchmarks/checkm2/{sample}_{binner}.tsv"
resources:
time=int(config["runtime"]["default"]),
mem_mb=config["mem"],
mem_mb=config["mem"] * 1000,
shell:
" checkm2 predict "
" --threads {threads} "
Expand Down Expand Up @@ -103,7 +103,7 @@ rule run_gunc:
"{sample}/logs/binning/{binner}/gunc.log",
resources:
time=int(config["runtime"]["default"]),
mem_mb=config["mem"],
mem_mb=config["mem"] * 1000,
shell:
" mkdir {output.folder} 2> {log}"
" ;\n"
Expand Down Expand Up @@ -141,7 +141,7 @@ rule run_busco:
"logs/benchmarks/busco/{sample}_{binner}.tsv"
resources:
time=int(config["runtime"]["default"]),
mem_mb=config["mem"],
mem_mb=config["mem"] * 1000,
shell:
" busco -i {input.fasta_dir} "
" --auto-lineage-prok "
Expand Down

0 comments on commit ed21325

Please sign in to comment.