Writes the key's spanning tree as an Auspice v2 dataset, which the
Nextstrain viewer and auspice.us can display. Node names are made unique
and space-free (required by the schema); the original labels and each
lead's text are kept in node_attrs. div is the depth from the root.
Arguments
- key
A dimoose key.
- title
Dataset title; defaults to the key's description.
- file
Optional path to write to; if
NULL, the JSON is returned as a string.
Examples
js <- toAuspiceJSON(phylotreeKey("H2a"))