Skip to content

Commit

Permalink
add thread param
Browse files Browse the repository at this point in the history
  • Loading branch information
dportik committed Jan 12, 2023
1 parent e9668ac commit 88a5a5d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Taxonomic-Profiling-Sourmash/Snakefile-sourmash
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ rule sourmash_gather:
gather_txt=os.path.join(out_dir, '2-gather', '{sample}.k{ksize}.gather.txt'),
params:
threshold_bp = sourmash_params.get('threshold_bp', '50000'),
threads: 1
threads: sourmash_params['threads']
resources:
mem_mb=lambda wildcards, attempt: attempt *100000,
time=10000,
Expand Down
7 changes: 7 additions & 0 deletions Taxonomic-Profiling-Sourmash/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,10 @@ sourmash:
- databases/genbank-2022.03-fungi.lineages.csv.gz
- databases/genbank-2022.03-protozoa.lineages.csv.gz
- databases/genbank-2022.03-viral.lineages.csv.gz

# sourmash is not multi-threaded so this is default set to 1.
# There may be cases where changing thread number helps with
# HPC resource allocation. The sourmash_gather step in particular
# can require substantial memory, and this thread number will only
# be applied to that rule.
threads: 1

0 comments on commit 88a5a5d

Please sign in to comment.