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

Tangletree genotype colouring #1785

Merged
merged 6 commits into from
Jun 10, 2024

Commits on Jun 10, 2024

  1. [tangletrees] check if genome maps are identical

    This property will be used in upcoming work to show genotype colourings
    on both trees
    jameshadfield committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    57f8fc7 View commit details
    Browse the repository at this point in the history
  2. [tangletrees] recompute data when loading via UI

    This particular method of loading a second tree is (I believe) rarely
    used and rarely developed -- see both the TODOs in the surrounding code
    and the (dev-only) redux immutability errors fixed in this commit.
    Still, we should support it!
    jameshadfield committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    07b7fc8 View commit details
    Browse the repository at this point in the history
  3. [tangletrees] store root-sequence of second tree

    In preparation for showing genotype colorings across multiple trees
    
    We don't (yet) consider root-sequences which are defined via
    sidecar files (i.e. not inline in the main JSON)
    
    We could improve memory efficiency if we compared the nuc/aa sequences
    for equality and used references to the main tree's root-sequence data,
    but as we're here only considering inlined root-sequences (i.e. small
    ones!) this implementation is simpler.
    jameshadfield committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    8440adb View commit details
    Browse the repository at this point in the history
  4. [tangletrees] show genotype coloring on both trees

    Includes some (overly!) strict conditionals. This functionality is
    particularly useful when comparing trees using the same (or very
    similar) sequences / sets of sequences to aid in understanding the
    different tree structures.
    
    Closes #1773
    jameshadfield committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    d540022 View commit details
    Browse the repository at this point in the history
  5. [bugfix] typo in tree visibility property

    Oh how TypeScript would have helped!
    
    This bug was found while debugging the ability to show genotype
    colorings on both trees (added in the parent commit) where the
    visibility of the second tree was `undefined` upon loading, leading to
    `createVisibleLegendValues` not considering the second tree and thus
    removing legend items which were only observed in the second tree.
    
    Bug introduced ~4 years ago via 391bca4
    although its effect was minor (and probably never noticed?)
    jameshadfield committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    a87c595 View commit details
    Browse the repository at this point in the history
  6. changelog

    jameshadfield committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    86ccfa1 View commit details
    Browse the repository at this point in the history