Skip to content

Commit

Permalink
[mg] minor correction: setup "workflow.cores" as standard number of t…
Browse files Browse the repository at this point in the history
…hreads
  • Loading branch information
magodfroid committed Oct 26, 2023
1 parent b7d837c commit 413c85f
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
@@ -1,5 +1,5 @@
from pathlib import Path
import pandas as pd
from pathlib import Path
import os

# load and validate config stuff
Expand Down 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: num_threads
threads: workflow.cores
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: num_threads
threads: workflow.cores
shell:
'''
fastp \
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: num_threads
threads: workflow.cores
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: num_threads
threads: workflow.cores
shell:
'''
[ -e /tmp/{params.folder} ] && rm -r /tmp/{params.folder}
Expand Down

0 comments on commit 413c85f

Please sign in to comment.