Skip to content

Commit 3d06f7d

Browse files
committed
Bumping up clairs-to allocated memory and providing half of allocted threads
1 parent 288c45c commit 3d06f7d

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

config/cluster/slurm.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
"threads": "24",
7777
"mem": "64G",
7878
"time": "1-18:00:00",
79-
"gres": "lscratch:800"
79+
"gres": "lscratch:1200"
8080
},
8181
"deepvariant": {
8282
"threads": "18",
@@ -297,7 +297,7 @@
297297
"threads": "24"
298298
},
299299
"clairs_tumor_only": {
300-
"mem": "64G",
300+
"mem": "120G",
301301
"time" : "1-00:00:00",
302302
"threads": "24"
303303
},

config/cluster/uge.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
"threads": "8"
288288
},
289289
"clairs_tumor_only": {
290-
"mem": "4G",
290+
"mem": "5G",
291291
"partition": "",
292292
"threads": "8"
293293
},

workflow/rules/somatic.smk

+6-2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def get_normal_pileup_table(wildcards):
5050
# Runs in tumor-only mode
5151
return []
5252

53+
5354
def get_somatic_tn_callers(wildcards):
5455
"""Returns somatic variants found with tumor-normal variant
5556
callers. For tumor-normal samples, extra somatic callers
@@ -706,7 +707,10 @@ rule clairs_tumor_only:
706707
genome = config['references']['GENOME'],
707708
outdir = join(workpath, "clairs", "somatic", "{name}"),
708709
threads:
709-
int(allocated("threads", "clairs_tumor_only", cluster)),
710+
# ClairS-TO over utilizes threads,
711+
# testing has shown it over utilizes
712+
# around 50% of the threads allocated
713+
max(int(int(allocated("threads", "clairs_tumor_only", cluster))/2.0), 2),
710714
container: config['images']['clairs-to']
711715
envmodules: config['tools']['rlang']
712716
shell: """
@@ -789,7 +793,7 @@ rule deepsomatic:
789793
# mechanism for deletion on exit
790794
if [ ! -d "{params.tmpdir}" ]; then mkdir -p "{params.tmpdir}"; fi
791795
tmp=$(mktemp -d -p "{params.tmpdir}")
792-
trap 'rm -rf "${{tmp}}"' EXIT
796+
trap 'du -sh "${{tmp}}"; rm -rf "${{tmp}}"' EXIT
793797
794798
run_deepsomatic \\
795799
--model_type={params.dv_model_type} \\

0 commit comments

Comments
 (0)