Skip to content

Commit d9dc425

Browse files
committed
Prompt rerun on reference tree change
1 parent 44e2794 commit d9dc425

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

workflow/Snakefile

+5-3
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,17 @@ rule get_reference_tree:
6666
shadow: "shallow"
6767
output:
6868
tree_path = "data/public.all.masked.pb.gz"
69+
params:
70+
reference_tree = config["REFERENCE_TREE"]
6971
resources:
7072
mem_mb = 2000,
7173
runtime = 15
7274
retries: 3
7375
run:
74-
if config["REFERENCE_TREE"].startswith("https://"):
75-
download_file(config["REFERENCE_TREE"], output.tree_path)
76+
if params.reference_tree.startswith("https://"):
77+
download_file(params.reference_tree, output.tree_path)
7678
else:
77-
copy_file(config["REFERENCE_TREE"], output.tree_path)
79+
copy_file(params.reference_tree, output.tree_path)
7880

7981

8082
rule extract_records:

0 commit comments

Comments
 (0)