Skip to content

Commit

Permalink
Merge pull request rhysnewell#171 from rhysnewell/set-pplacer-threads
Browse files Browse the repository at this point in the history
Set pplacer threads
  • Loading branch information
AroneyS authored Nov 15, 2023
2 parents 5067303 + d664178 commit 1457755
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion aviary/modules/annotation/annotation.smk
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ rule gtdbtk:
done = "data/gtdbtk/done"
params:
gtdbtk_folder = config['gtdbtk_folder'],
pplacer_threads = config["pplacer_threads"],
pplacer_threads = lambda wildcards, threads: min(threads, config["pplacer_threads"]),
extension = config['mag_extension']
conda:
"../../envs/gtdbtk.yaml"
Expand Down
14 changes: 7 additions & 7 deletions aviary/modules/binning/binning.smk
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ rule checkm_rosella:
input:
done = ancient("data/rosella_bins/done")
params:
pplacer_threads = config["pplacer_threads"],
pplacer_threads = lambda wildcards, threads: min(threads, config["pplacer_threads"]),
checkm2_db_path = config["checkm2_db_folder"],
bin_folder = "data/rosella_bins/",
extension = "fna",
Expand All @@ -422,7 +422,7 @@ rule checkm_metabat2:
input:
done = ancient("data/metabat_bins_2/done")
params:
pplacer_threads = config["pplacer_threads"],
pplacer_threads = lambda wildcards, threads: min(threads, config["pplacer_threads"]),
checkm2_db_path = config["checkm2_db_folder"],
bin_folder = "data/metabat_bins_2/",
extension = "fa",
Expand All @@ -447,7 +447,7 @@ rule checkm_semibin:
input:
done = ancient("data/semibin_bins/done")
params:
pplacer_threads = config["pplacer_threads"],
pplacer_threads = lambda wildcards, threads: min(threads, config["pplacer_threads"]),
checkm2_db_path = config["checkm2_db_folder"],
bin_folder = "data/semibin_bins/output_recluster_bins/",
extension = "fa",
Expand Down Expand Up @@ -485,7 +485,7 @@ rule refine_rosella:
output_folder = "data/rosella_refined/",
min_bin_size = config["min_bin_size"],
max_iterations = config["refinery_max_iterations"],
pplacer_threads = config["pplacer_threads"],
pplacer_threads = lambda wildcards, threads: min(threads, config["pplacer_threads"]),
max_contamination = 15,
final_refining = False
threads:
Expand Down Expand Up @@ -522,7 +522,7 @@ rule refine_metabat2:
output_folder = "data/metabat2_refined/",
min_bin_size = config["min_bin_size"],
max_iterations = config["refinery_max_iterations"],
pplacer_threads = config["pplacer_threads"],
pplacer_threads = lambda wildcards, threads: min(threads, config["pplacer_threads"]),
max_contamination = 15,
final_refining = False
log:
Expand Down Expand Up @@ -554,7 +554,7 @@ rule refine_semibin:
output_folder = "data/semibin_refined/",
min_bin_size = config["min_bin_size"],
max_iterations = config["refinery_max_iterations"],
pplacer_threads = config["pplacer_threads"],
pplacer_threads = lambda wildcards, threads: min(threads, config["pplacer_threads"]),
max_contamination = 15,
final_refining = False
log:
Expand Down Expand Up @@ -673,7 +673,7 @@ rule refine_dastool:
output_folder = "data/refined_bins/",
min_bin_size = config["min_bin_size"],
max_iterations = config["refinery_max_iterations"],
pplacer_threads = config["pplacer_threads"],
pplacer_threads = lambda wildcards, threads: min(threads, config["pplacer_threads"]),
max_contamination = 15,
final_refining = True
log:
Expand Down

0 comments on commit 1457755

Please sign in to comment.