Skip to content

Produce auspice compatible JSONs #2

@trvrb

Description

@trvrb

@famulare ---

It's really exciting to see push for auspice in simulated data. However, I need to ask for some small additions to make this work. There are two possible entry points here:

  1. Generate node data JSON files for branch lengths and for internal traits. Each node in the tree including internal nodes needs a date attached to it, as well as branch_length and clock_length. To map locations, we also need a node data JSON that lists internal node states. We'd then stitch this together into an auspice-compatible JSON via augur export command.

  2. Directly generate auspice compatible JSON from simulation. This shouldn't be any harder really than generating the currently metadata tsv + timetree.nwk.

I'd definitely recommend 2. I've just made a stripped down minimal example of what to target here: https://github.com/nextstrain/auspice/tree/master/examples.

This should be pretty self-explanatory. You can replace country with puma or neighborhood. A couple relevant details:

  1. clade just needs to be an integer iterating through nodes in the tree. This should go away, but is here for now.
  2. meta.json needs geo to be populated with lat/longs. I believe @jotasolano has already calculated these centroids here somewhere: https://github.com/seattleflu/seattle-flu-js-prototype

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions