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

export multiple trees #1450

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

export multiple trees #1450

wants to merge 3 commits into from

Commits on May 6, 2024

  1. [export] enforce tree naming standards

    Checking for duplicated node names and missing node names is in line
    with the schema. Previously some calls to `export v2` would be ok with
    missing node names (e.g. see the updated tests in `minify-output.t`) but
    any usage with metadata would result in an uncaught error.
    jameshadfield committed May 6, 2024
    Configuration menu
    Copy the full SHA
    14e32ed View commit details
    Browse the repository at this point in the history
  2. [export] allow multiple trees

    Multiple trees ("subtrees") have been available in Auspice since late
    2021¹ and part of the associated schema since early 2022². Despite this
    there was no way to produce such datasets within Augur itself, and
    despite the schema changes the associated `augur validate` command was
    never updated to allow them.
    
    This commit adds multi-tree inputs to `augur export v2` as well as
    allowing them to validate with our associated validation commands.
    
    ¹ <nextstrain/auspice#1442>
    ² <#851>
    jameshadfield committed May 6, 2024
    Configuration menu
    Copy the full SHA
    9313570 View commit details
    Browse the repository at this point in the history
  3. [export] refactor to always use a list of trees

    Always use a list of trees, even if it's a one-item list. This
    simplifies internal logic by avoiding the need to check data type on
    every reference. Requested via code review¹
    
    ¹ <#1450 (comment)>
    jameshadfield committed May 6, 2024
    Configuration menu
    Copy the full SHA
    c40b821 View commit details
    Browse the repository at this point in the history