Skip to content

Commit

Permalink
[cattle-flu] consistent colours across segments
Browse files Browse the repository at this point in the history
It's possible segment-level builds will include a division not found
in the genome build, but in this case Auspice will use a grey colour
swatch which I think is acceptable.
  • Loading branch information
jameshadfield committed Oct 31, 2024
1 parent 85397ff commit 4823e7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rules/cattle-flu.smk
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ rule colors_genome:
# define the concept of whether this rule should run so this isn't trivial and is
# thus left as a to-do
input:
metadata = "results/{subtype}/{segment}/{time}/metadata.tsv",
metadata = "results/{subtype}/genome/{time}/metadata.tsv", # Always use the genome metadata, even for segment builds
ordering = "config/h5n1-cattle-outbreak/color_ordering.tsv",
schemes = "config/h5n1-cattle-outbreak/color_schemes.tsv",
colors = files.colors,
Expand All @@ -164,7 +164,6 @@ rule colors_genome:
duplications = "division=division_metadata",
wildcard_constraints:
subtype="h5n1-cattle-outbreak",
segment="genome",
time="default",
shell:
"""
Expand Down

0 comments on commit 4823e7a

Please sign in to comment.