-
Notifications
You must be signed in to change notification settings - Fork 0
Description
@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:
-
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_lengthandclock_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 viaaugur exportcommand. -
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:
cladejust needs to be an integer iterating through nodes in the tree. This should go away, but is here for now.meta.jsonneedsgeoto be populated with lat/longs. I believe @jotasolano has already calculated these centroids here somewhere: https://github.com/seattleflu/seattle-flu-js-prototype