Skip to content

Commit

Permalink
fix: fix cpu allocation bug, make it only possible to get 2 cpus per …
Browse files Browse the repository at this point in the history
…task
  • Loading branch information
rroutsong committed Feb 5, 2024
1 parent 60095f6 commit eaa0b8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,7 @@ def exec_pipeline(configs, dry_run=False, local=False):
top_env['SNK_CONFIG'] = str(config_file.absolute())
top_env['SINGULARITY_CACHEDIR'] = str(Path(this_config['out_to'], '.singularity').absolute())
this_cmd = [
"snakemake",
"-pr", "--cores", "all",
"snakemake", "-pr",
"--use-singularity",
"--rerun-incomplete",
"--keep-incomplete",
Expand Down
12 changes: 6 additions & 6 deletions workflow/demux.smk
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ rule bcl2fastq:
out_dir = config["out_to"] + "/demux",
container: config["resources"]["sif"] + "bcl2fastq.sif",
log: config["out_to"] + "/logs/bcl2fastq/" + config["run_ids"] + "_" + config["project"] + ".log",
threads: 75
threads: 34
resources:
mem_mb = int(64e3),
shell:
Expand All @@ -42,7 +42,7 @@ rule bcl2fastq:
--sample-sheet {input.samplesheet} \
--runfolder-dir {input.run_dir} \
--min-log-level=TRACE \
-r 16 -p 40 -w 16 \
-r 8 -p 16 -w 8 \
--fastq-compression-level 9 \
--no-lane-splitting \
-o {params.out_dir}
Expand Down Expand Up @@ -91,7 +91,7 @@ rule bclconvert:
top_unknown = expand("{out_to}/demux/Reports/Top_Unknown_Barcodes.csv", **demux_expand_args if config['bclconvert'] else demux_noop_args),
breadcrumb = expand("{out_to}/demux/.BC_DEMUX_COMPLETE", **demux_expand_args if config['bclconvert'] else demux_noop_args),
container: config["resources"]["sif"] + "weave_bclconvert_0.0.3.sif",
threads: 75
threads: 34
resources: mem_mb = int(64e3)
shell:
"""
Expand All @@ -102,9 +102,9 @@ rule bclconvert:
--sample-sheet {input.samplesheet} \
--fastq-gzip-compression-level 9 \
--bcl-sampleproject-subdirectories true \
--bcl-num-conversion-threads 24 \
--bcl-num-compression-threads 24 \
--bcl-num-decompression-threads 24 \
--bcl-num-conversion-threads 16 \
--bcl-num-compression-threads 8 \
--bcl-num-decompression-threads 8 \
--bcl-num-parallel-tiles 3 \
--no-lane-splitting true
touch {output.breadcrumb}
Expand Down

0 comments on commit eaa0b8f

Please sign in to comment.