@@ -50,6 +50,7 @@ def get_normal_pileup_table(wildcards):
50
50
# Runs in tumor-only mode
51
51
return []
52
52
53
+
53
54
def get_somatic_tn_callers (wildcards ):
54
55
"""Returns somatic variants found with tumor-normal variant
55
56
callers. For tumor-normal samples, extra somatic callers
@@ -706,7 +707,10 @@ rule clairs_tumor_only:
706
707
genome = config ['references' ]['GENOME' ],
707
708
outdir = join (workpath , "clairs" , "somatic" , "{name}" ),
708
709
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 ),
710
714
container : config ['images' ]['clairs-to' ]
711
715
envmodules : config ['tools' ]['rlang' ]
712
716
shell : """
@@ -789,7 +793,7 @@ rule deepsomatic:
789
793
# mechanism for deletion on exit
790
794
if [ ! -d "{params.tmpdir}" ]; then mkdir -p "{params.tmpdir}"; fi
791
795
tmp=$(mktemp -d -p "{params.tmpdir}")
792
- trap 'rm -rf "${{tmp}}"' EXIT
796
+ trap 'du -sh "${{tmp}}"; rm -rf "${{tmp}}"' EXIT
793
797
794
798
run_deepsomatic \\
795
799
--model_type={params.dv_model_type} \\
0 commit comments