From 5951e3da4a2d9792f485674f9cff677af77f566b Mon Sep 17 00:00:00 2001 From: magodfroid Date: Mon, 30 Oct 2023 11:26:05 +0100 Subject: [PATCH] [mg] reverted some workflow cores to num_threads + num_threads instead of workflow.cores in STAR_make_index --- workflow/Snakefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/workflow/Snakefile b/workflow/Snakefile index e688f32a..b08e5884 100644 --- a/workflow/Snakefile +++ b/workflow/Snakefile @@ -100,7 +100,7 @@ rule fastp_se: length_required = length_required_fastp, trim_tail1 = trim_tail1_fastp benchmark: log_dir / "benchmark.{sample}.fastp_se.txt" - threads: workflow.cores + threads: num_threads shell: ''' fastp \ @@ -144,7 +144,7 @@ rule fastp_pe: right_quality = 15, length_required = length_required_fastp benchmark: log_dir / "benchmark.{sample}.fastp_pe.txt" - threads: workflow.cores + threads: num_threads shell: ''' fastp \ @@ -201,7 +201,7 @@ rule STAR_make_index: output: directory(genome_dir / "STAR_index") benchmark: log_dir / "benchmark.STAR_make_index.txt" - threads: workflow.cores + threads: num_threads shell: ''' STAR \ @@ -263,7 +263,7 @@ if pipeline_config["mode"] == "se": folder = "{sample}", bam_prefix = lambda wildcards : align_dir / "{}.".format(wildcards.sample) benchmark: log_dir / "benchmark.{sample}.STAR_pe.txt" - threads: workflow.cores + threads: num_threads shell: ''' [ -e /tmp/{params.folder} ] && rm -r /tmp/{params.folder} @@ -304,7 +304,7 @@ if pipeline_config["mode"] == "pe": resources: load=100 benchmark: log_dir / "benchmark.{sample}.STAR_se.txt" - threads: workflow.cores + threads: num_threads shell: ''' [ -e /tmp/{params.folder} ] && rm -r /tmp/{params.folder}