tree_morphometry — GRAPH tree op

• Data kinds: table → table

• Call: import fullseye as fs; fs.ledger.tree_morphometry(tree) (to call the implementation directly, import treemorph; treemorph.tree_morphometry(tree); from the registry, opsgraph.get("tree_morphometry"))

Usage

Counts and lengths of a tree table (from tree_from_swc).

Returns nodes, edges, bifurcations (nodes with two or more children), tips (nodes with no child), cable_length (sum of segment lengths), max_path_length (longest root-to-node path along the tree) and max_radial (largest straight distance from the root).

Identities (checked inside, fail-closed): nodes == edges + 1, and tips == 1 + sum(children - 1) over the nodes that have children — tips are counted from the child counts directly, the right side from the branching nodes, so a bug in either count breaks the equality. A root with one child is not a tip.

Raises ValueError: not a tree table (see tree_from_swc).

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_swc_tree_truth — py -3.11 examples/poc_swc_tree_truth.py

• poc_worm_neurites_grow — py -3.11 examples/poc_worm_neurites_grow.py

• poc_worm_synapses_vs_neurites — py -3.11 examples/poc_worm_synapses_vs_neurites.py

Ops the type connects to (they accept table as input)

graph_edge_consensus · graph_core_persistence · tree_sholl · tree_run_length

Same category (tree)

tree_from_swc · tree_sholl · tree_run_length


*Provenance: treemorph.py — GRAPH operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.