Skip to content

Commit

Permalink
[mg] reverted some workflow cores to num_threads + num_threads instea…
Browse files Browse the repository at this point in the history
…d of workflow.cores in STAR_make_index
  • Loading branch information
magodfroid committed Oct 30, 2023
1 parent 0b47a08 commit 5951e3d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 5951e3d

Please sign in to comment.