Skip to content

Commit

Permalink
Don't assume subclades are defined for all builds
Browse files Browse the repository at this point in the history
  • Loading branch information
huddlej committed Sep 18, 2023
1 parent 88b8938 commit 996bbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workflow/snakemake_rules/core.smk
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ rule subclades:
input:
tree = build_dir + "/{build_name}/{segment}/tree.nwk",
muts = build_dir + "/{build_name}/{segment}/muts.json",
clades = lambda wildcards: config["builds"][wildcards.build_name]["subclades"],
clades = lambda wildcards: config["builds"][wildcards.build_name].get("subclades"),
output:
node_data = build_dir + "/{build_name}/{segment}/subclades.json",
params:
Expand Down

0 comments on commit 996bbbb

Please sign in to comment.