strahler_order: Find the Strahler order of each point in a neuron

View source: R/ngraph.R

strahler_orderR Documentation

Find the Strahler order of each point in a neuron

Description

The Strahler order will be 1 for each tip segment and then 1 + the maximum of the Strahler order of each parent segment for internal segments. Branch points will have the Strahler order of the closest segment to the root of which they are part.

Usage

strahler_order(x)

Arguments

x

A neuron

Details

It is vital that the root of the neuron is valid since this determines the flow direction for calculation of the Strahler order. At present the function is not defined for neurons with multiple subtrees.

Internally, this function uses segmentgraph to find a reduced segmentgraph for the neuron.

Value

A list containing

  • points Vector of integer Strahler orders for each point in the neuron

  • segments Vector of integer Strahler orders for each segment in the neuron

References

https://en.wikipedia.org/wiki/Strahler_number

See Also

prune_strahler, a segmentgraph (a form of ngraph) representation is used to calculate the Strahler order.


nat documentation built on May 29, 2024, 10:36 a.m.