Defined in: node_modules/.pnpm/betula-schema@0.6.0/node_modules/betula-schema/dist/types.d.ts:309
A phylogenetic (or other hierarchical) tree node, shared by picea, react-bio-viz, acacia, and iqtreeserver. The root of a tree is itself a Tree node; a whole tree and a single node use the same shape, so ‘type’ is optional and conventionally set only on a node transmitted as a standalone document (typically the root), not repeated on every nested child.
This interface was referenced by Betula’s JSON-Schema
via the definition “Tree”.
| Property |
Type |
Description |
type? |
"tree" |
Wire-format object-kind discriminator (see betula’s versioning policy). Optional; omit on nested children. |
id? |
string | number |
Optional node identifier. Not every producer assigns one at parse time (acacia/iqtreeserver derive ids separately); consumers must not assume it is present. |
name |
string |
Raw node label: a leaf name, or an internal-node label such as a bootstrap value or support string (e.g. picea’s “0.989”, IQ-TREE’s “95.3/88”). Kept as the original string for round-tripping; parse further only if you know the producer’s convention. |
length |
number |
Branch length leading to this node. |
children |
Tree[] |
Child nodes. Empty array for a leaf. |