Package
axodendron 0.1.0
Analyze and visualize neuronal morphologies from SWC files.
Import
#import "@preview/axodendron:0.1.0": *Package metadata
- Version
- 0.1.0
- License
- MIT
- Entrypoint
- lib.typ
- Modules
- 1
- Public items
- 27
- Repository
- Repository
Modules 1
Public API 27
function analyze lib Compute summary metrics, section decomposition, tortuosity, root pathfunction cetz-annotate lib Overlay CeTZ leader labels on a completed render result. The CeTZ module isfunction cetz-label lib Construct a CeTZ leader label. `offset` and every `via` entry are relativefunction color-bar lib Construct a scalar color bar using the same named palette as the renderer.function diagnostics lib Return all validation diagnostics retained by a cell.function export-swc lib Export deterministic SWC with topological row order and sequential IDs.function from-text lib Parse and validate SWC source already held in memory.function label lib Construct a Typst-native node label annotation. `offset.x` and `offset.y`function legend lib Construct a compact categorical legend.function load lib Load and validate SWC input. Typst 0.15.0 and later may pass `path(...)`function marker lib Construct a node-anchored marker. If `body` is omitted, a circle is drawn.function metadata lib Return retained SWC header comments and recognized descriptive fields.function node-anchor lib Return one projected node from a render result. Coordinates `x` and `y`function path lib Extract the unique undirected path between two nodes in one component.function prune lib Remove nodes of the listed SWC kinds and their descendant subtrees.function render lib Render a radius-aware morphology as one WASM-generated SVG, then add labelsfunction reroot lib Reverse the parent chain so `node` becomes the root of its component.function resample lib Equal-arc-length resampling within topology- and type-bounded sections.function scale-bar lib Construct a physical scale bar. `value` is in the morphology's units.function select-kinds lib Select nodes of the listed SWC kinds without inventing bridging edges.function select-nodes lib Select exactly the listed nodes as an induced forest over original edges.function sholl-2d lib Exact 2D circle/segment Sholl intersections after physical orthographic projection.function sholl lib Exact 3D Sholl intersections. Radii and center use `cell.units`.function simplify lib Topology-preserving 3D Ramer–Douglas–Peucker simplification.function subtree lib Extract a node and all of its descendants.constant swc lib Functional public API dictionary for selective imports. Prefer importing theconstant version lib Package and plugin protocol version.