Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cattle-flu] consistent colours #102

Merged
merged 5 commits into from
Nov 4, 2024
Merged

Commits on Oct 31, 2024

  1. Use per-build metadata files

    The previous implementation generated a metadata file for each subtype
    (i.e. before filtering) and then used that for all downstream rules.
    It's more common to (also) generate a post-subsampling metadata file
    and use this instead. This is both smaller and useful for debugging
    (as all the data in the TSV file are used in the build). It's also
    going to make generating colours for specific builds much easier,
    which I'll do in subsequent commits.
    jameshadfield committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    94ef772 View commit details
    Browse the repository at this point in the history
  2. Simplify metadata modifications

    This shifts the modification of metadata which is specific to the
    h5n1-cattle-outbreak/genome/default build to be downstream of the
    subsetted-metadata file, which is much simpler to reason with.
    
    We could consider doing something similar for the `add_h5_clade` rule,
    however this wouldn't allow us to use that data as a filtering criteria,
    and it seems plausible we'd want to do that one day.
    jameshadfield committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    a84e1cd View commit details
    Browse the repository at this point in the history
  3. rearrange snakefiles

    Make variables and functions defined in the snakefile available to
    custom rule files such as cattle-flu.smk. See
    <#100 (comment)>
    for more context.
    jameshadfield committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    6675e56 View commit details
    Browse the repository at this point in the history
  4. Consistent coloring for genome builds

    Uses our well-established pattern of a color-ordering file and a set of
    hexes to produce a well-ordered color pallet. Here we restrict the
    values within the generating script to better maximise the final
    color range (rather than setting colors for all divisions then having
    augur export subset them). This approach also ensures colors are
    consistent across "division" and "division_metadata" which aids
    interpretation of the data.
    
    Closes #101
    jameshadfield committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    85397ff View commit details
    Browse the repository at this point in the history
  5. [cattle-flu] consistent colours across segments

    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.
    jameshadfield committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    4823e7a View commit details
    Browse the repository at this point in the history