hyperiax.from_newick¶
- hyperiax.from_newick(source, *, schema=None)[source]¶
Read a Newick tree (literal or file path) into a hyperiax
Tree.Branch lengths land on
tree.data['edge_length'](shape()) with the current default floating dtype unlessschemaoverrides it; the root edge length is whatever the Newick string reports (usually 0). Node names ride onTopology.names(static metadata), not intree.data.- Parameters:
- Return type:
- Returns:
A Tree whose schema always includes
edge_length(()) plus any extras requested.