A neuron may have multiple subtrees and therefore multiple roots

Return the branchpoints of a neuron or graph

rootpoints(x, ...)

# S3 method for default
rootpoints(x, ...)

# S3 method for neuron
rootpoints(x, subtrees = 1, ...)

# S3 method for igraph
rootpoints(x, ...)

branchpoints(x, ...)

# S3 method for default
branchpoints(x, ...)

# S3 method for neuron
branchpoints(x, subtrees = 1, ...)

# S3 method for igraph
branchpoints(x, ...)

endpoints(x, ...)

# S3 method for neuron
endpoints(x, subtrees = 1, ...)

# S3 method for igraph
endpoints(x, ...)

# S3 method for default
endpoints(x, ...)

Arguments

x

Neuron or other object which might have roots

...

Further arguments passed to methods

subtrees

Integer index of the fully connected subtree in x$SubTrees. Only applicable when a neuron consists of multiple unconnected subtrees.

Value

Integer point number of root/branch point

Details

branchpoints.neuron returns a list if more than one subtree is specified

See also

Other neuron: neuron, ngraph, plot.dotprops, potential_synapses, prune, resample, spine, subset.neuron