Skip to content

Commit 58f8efe

Browse files
committed
Made container sources configurable
1 parent 01922df commit 58f8efe

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

config/config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,6 @@ alphafold_inference : >
3838
qos=high constraint=gpu=3090
3939
4040
card_order : [gpu=3090, gpu=A40, gpu=H100, gpu=A100]
41+
42+
prediction_container : "docker://kosinskilab/fold:latest"
43+
analysis_container : config["analysis_container"]

workflow/Snakefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ rule create_features:
131131
attempt = lambda wildcards, attempt: attempt,
132132
threads: 8, # everything is harcoded anyways ...
133133
container:
134-
"docker://kosinskilab/fold:latest",
134+
config["prediction_container"],
135135
shell:"""
136136
create_individual_features.py \
137137
--fasta_paths={input} \
@@ -158,7 +158,7 @@ checkpoint cluster_sequence_length:
158158
feature_directory = join(config["output_directory"], "features"),
159159
cluster_bin_size = config.get("clustering_bin_size", 150),
160160
container:
161-
"docker://kosinskilab/fold:latest",
161+
config["prediction_container"],
162162
script:
163163
"scripts/cluster_sequence_length.py"
164164

@@ -225,7 +225,7 @@ rule structure_inference:
225225
threads:
226226
config["alphafold_inference_threads"],
227227
container:
228-
"docker://kosinskilab/fold:latest",
228+
config["prediction_container"],
229229
shell:"""
230230
#MAXRAM=$(bc <<< "$(ulimit -m) / 1024.0")
231231
#GPUMEM=$(nvidia-smi --query-gpu=memory.total --format=csv,noheader,nounits | tail -1)
@@ -353,7 +353,7 @@ rule generate_report:
353353
[f"{k}={v}" for k, v in config["compute_stats_arguments"].items()]
354354
),
355355
container:
356-
"docker://kosinskilab/fold:latest",
356+
config["prediction_container"],
357357
shell:"""
358358
cd {params.prediction_dir}
359359
create_notebook.py \

0 commit comments

Comments
 (0)