Skip to content
Snippets Groups Projects
Commit 021311d9 authored by kdc715's avatar kdc715
Browse files

fix memory allocation for samtool multithreading rules

parent 4c04a11b
No related merge requests found
...@@ -96,7 +96,8 @@ rule name_sort_unsorted: ...@@ -96,7 +96,8 @@ rule name_sort_unsorted:
conda: conda:
os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml") os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml")
resources: resources:
mem_mb = resources["samtools"]["mem"], # mem_mb = resources["samtools"]["mem"],
mem_mb = lambda wildcards, input, threads, attempt: resources["samtools"]["mem"] * threads,
runtime = resources["samtools"]["time"] runtime = resources["samtools"]["time"]
threads: threads:
threads["multi"]["samtools"] threads["multi"]["samtools"]
...@@ -170,7 +171,8 @@ rule coordinate_sort_unsorted: ...@@ -170,7 +171,8 @@ rule coordinate_sort_unsorted:
conda: conda:
os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml") os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml")
resources: resources:
mem_mb = resources["samtools_25G"]["mem"], # mem_mb = resources["samtools_25G"]["mem"],
mem_mb = lambda wildcards, input, threads, attempt: resources["samtools"]["mem"] * threads,
runtime = resources["samtools_25G"]["time"] runtime = resources["samtools_25G"]["time"]
threads: threads:
threads["multi"]["samtools"] threads["multi"]["samtools"]
......
...@@ -60,7 +60,8 @@ if config["SICKLE"]=="no": ...@@ -60,7 +60,8 @@ if config["SICKLE"]=="no":
conda: conda:
os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml") os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml")
resources: resources:
mem_mb = resources["samtools"]["mem"], # mem_mb = resources["samtools"]["mem"],
mem_mb = lambda wildcards, input, threads, attempt: resources["samtools"]["mem"] * threads,
runtime = resources["samtools"]["time"] runtime = resources["samtools"]["time"]
threads: threads:
threads["multi"]["samtools"] threads["multi"]["samtools"]
...@@ -112,7 +113,8 @@ elif config["SICKLE"]=="yes": ...@@ -112,7 +113,8 @@ elif config["SICKLE"]=="yes":
conda: conda:
os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml") os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml")
resources: resources:
mem_mb = resources["samtools"]["mem"], # mem_mb = resources["samtools"]["mem"],
mem_mb = lambda wildcards, input, threads, attempt: resources["samtools"]["mem"] * threads,
runtime = resources["samtools"]["time"] runtime = resources["samtools"]["time"]
threads: threads:
threads["multi"]["samtools"] threads["multi"]["samtools"]
......
...@@ -58,7 +58,8 @@ if config["SICKLE"]=="no": ...@@ -58,7 +58,8 @@ if config["SICKLE"]=="no":
conda: conda:
os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml") os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml")
resources: resources:
mem_mb = resources["samtools"]["mem"], # mem_mb = resources["samtools"]["mem"],
mem_mb = lambda wildcards, input, threads, attempt: resources["samtools"]["mem"] * threads,
runtime = resources["samtools"]["time"] runtime = resources["samtools"]["time"]
threads: threads:
threads["multi"]["samtools"] threads["multi"]["samtools"]
...@@ -108,7 +109,8 @@ elif config["SICKLE"]=="yes": ...@@ -108,7 +109,8 @@ elif config["SICKLE"]=="yes":
output: output:
WORK_DIR + "/{sample}/non_ref.bam" WORK_DIR + "/{sample}/non_ref.bam"
resources: resources:
mem_mb = resources["samtools"]["mem"], # mem_mb = resources["samtools"]["mem"],
mem_mb = lambda wildcards, input, threads, attempt: resources["samtools"]["mem"] * threads,
runtime = resources["samtools"]["time"] runtime = resources["samtools"]["time"]
threads: threads:
threads["multi"]["samtools"] threads["multi"]["samtools"]
......
...@@ -150,7 +150,8 @@ rule samtools_remap_classified_human: ...@@ -150,7 +150,8 @@ rule samtools_remap_classified_human:
conda: conda:
os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml") os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml")
resources: resources:
mem_mb = resources["samtools"]["mem"], # mem_mb = resources["samtools"]["mem"],
mem_mb = lambda wildcards, input, threads, attempt: resources["samtools"]["mem"] * threads,
runtime = resources["samtools"]["time"] runtime = resources["samtools"]["time"]
threads: threads:
threads["multi"]["samtools"] threads["multi"]["samtools"]
...@@ -223,7 +224,8 @@ rule remapping_samsort_mates: ...@@ -223,7 +224,8 @@ rule remapping_samsort_mates:
conda: conda:
os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml") os.path.join(WORKFLOW_PATH,"snakemodules/envs/samtools.yml")
resources: resources:
mem_mb = resources["samtools"]["mem"], # mem_mb = resources["samtools"]["mem"],
mem_mb = lambda wildcards, input, threads, attempt: resources["samtools"]["mem"] * threads,
runtime = resources["samtools"]["time"] runtime = resources["samtools"]["time"]
threads: threads:
threads["multi"]["samtools"] threads["multi"]["samtools"]
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment