prune_strahler: Prune a neuron by removing segments with a given Strahler...

View source: R/ngraph.R

prune_strahlerR Documentation

Prune a neuron by removing segments with a given Strahler order

Description

Prune a neuron by removing segments with a given Strahler order

Usage

prune_strahler(x, orderstoprune = 1:2, ...)

Arguments

x

A neuron

orderstoprune

Integer indices of which Strahler orders to prune - defaults to the lowest two orders (1:2)

...

Additional arguments passed to as.neuron.data.frame

Value

The pruned neuron

See Also

strahler_order, spine, for finding the longest path in a neuron, prune for subsetting dotprops style neurons by spatial proximity, as.neuron.data.frame, which is used to generate the new neuron.

Examples

x=Cell07PNs[[1]]
pruned12=prune_strahler(x)
pruned1=prune_strahler(x, 1)
plot(x)
plot(pruned1, lwd=3, col='blue', add=TRUE)
plot(pruned12, lwd=3, col='red', add=TRUE)

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