app.import.nextstrain

Parser for Nextstrain JSON exports.

Extracts the ‘tree’ object and converts it into both a Newick string (for display/export) and a parsed tree map (for direct positioning, avoiding a redundant Newick parse round-trip).

parse-nextstrain-json

(parse-nextstrain-json json-str)

Parses Nextstrain JSON and returns a map with tree data when successful.

Returns: - :newick-str - Newick serialization (for display/export) - :parsed-tree - tree map ready for tree/position-tree, avoiding the wasteful Newick → parse round-trip

Expected shape: top-level object with a ‘tree’ field. Each node should have optional :name, :node_attrs {:div …}, and :children.